|
76 | 76 | </div>
|
77 | 77 | </div>
|
78 | 78 |
|
79 |
| - {% block markdown_example %} |
80 |
| - <div class="p-4 markdown-container background-glass shadow-blur shadow-blur--rainbow mt-5 row" data-controller="markdown"> |
81 |
| - <div class="col-12 col-md-5"> |
82 |
| - <textarea rows="3" class="form-control" aria-label="Type markdown into this box" |
83 |
| - data-markdown-target="input" |
84 |
| - >Writing JavaScript is a **dream** with Stimulus 🤩</textarea> |
85 |
| - </div> |
86 |
| - <div class="col-12 col-md-2 d-flex justify-content-center align-items-center py-3"> |
87 |
| - <button class="btn btn-dark" data-action="markdown#render"> |
88 |
| - Convert <twig:Icon name="arrow-right"/> |
89 |
| - </button> |
90 |
| - </div> |
91 |
| - <div class="col-12 col-md-5"> |
92 |
| - <div style="min-height: 86px;" class="markdown-form-render-container p-2" data-markdown-target="preview"> |
93 |
| - <small class="fw-light">(click "Convert")</small> |
| 79 | + <div class="shadow-blur shadow-blur--rainbow mt-5" style="--shadow-bottom: 2rem;"> |
| 80 | + <div class="DemoContainer py-2 px-4 d-flex justify-content-center"> |
| 81 | + <small style="opacity: 80%;">And you have a Markdown live convertor!</small> |
| 82 | + </div> |
| 83 | + <div class="DemoContainer-inner p-4"> |
| 84 | + {% block markdown_example %} |
| 85 | + <div class="d-flex align-items-stretch row" data-controller="markdown"> |
| 86 | + <div class="col d-flex"> |
| 87 | + <textarea |
| 88 | + rows="2" class="form-control p-3" |
| 89 | + aria-label="Type markdown into this box" |
| 90 | + autocomplete="off" |
| 91 | + data-markdown-target="input" |
| 92 | + data-action="markdown#render" |
| 93 | + >Writing _JavaScript_ is... a **dream** with Stimulus 🤩</textarea> |
| 94 | + </div> |
| 95 | + <div class="col d-flex"> |
| 96 | + <div class="markdown-form-render-container p-3" data-markdown-target="preview"> |
| 97 | + <small><- Write something in the textarea!</small> |
| 98 | + </div> |
| 99 | + </div> |
94 | 100 | </div>
|
95 |
| - </div> |
| 101 | + {% endblock %} |
96 | 102 | </div>
|
97 |
| - {% endblock %} |
| 103 | + <div class="arrow" style="transform:scaleY(-1) translateY(20%);margin-bottom: -1rem;"></div> |
| 104 | + </div> |
98 | 105 |
|
99 | 106 | <p class="eyebrows" style="margin: 111px 0 0;">Packages</p>
|
100 | 107 | <div class="d-md-flex justify-content-md-between text-center align-items-center text-md-start">
|
|
107 | 114 | <div class="row mt-3 mt-md-5">
|
108 | 115 | <div style="display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));">
|
109 | 116 | {% for package in packages %}
|
110 |
| - <twig:PackageBox :package="package" titleTag="h3" /> |
| 117 | + <twig:Package:PackageBox package="{{ package }}" titleTag="h3" /> |
111 | 118 | {% endfor %}
|
112 | 119 | </div>
|
113 | 120 | </div>
|
|
0 commit comments