|
28 | 28 | </script> |
29 | 29 |
|
30 | 30 | <section |
31 | | - class={['flex flex-col justify-center items-center', sectionDefaultOptions]} |
| 31 | + class={[ |
| 32 | + 'flex flex-col justify-center items-center 2xl:items-start px-6 lg:px-16', |
| 33 | + sectionDefaultOptions |
| 34 | + ]} |
32 | 35 | data-interactive-cursor="cardarea" |
33 | 36 | > |
34 | | - <header class="container mb-16"> |
| 37 | + <header class="mb-16"> |
35 | 38 | <ShowCode |
36 | 39 | code={` |
37 | 40 | <script> |
|
115 | 118 | </InteractiveCursor> |
116 | 119 | `} |
117 | 120 | /> |
118 | | - <h2 class="text-4xl text-center text-white font-bold leading-relaxed"> |
| 121 | + <h2 class="text-4xl text-center 2xl:text-left text-white font-bold leading-relaxed"> |
119 | 122 | Creating a new way to interact with your elements!<br /> With Svelte Interactive Cursor |
120 | 123 | </h2> |
121 | | - <p class="text-center mt-4"> |
| 124 | + <p class="text-center 2xl:text-left mt-4"> |
122 | 125 | Enhance your experience with interactive cursor styles based on the hovered element. |
123 | 126 | </p> |
124 | 127 | </header> |
|
134 | 137 | </div> |
135 | 138 | </section> |
136 | 139 |
|
137 | | -<section class={['flex justify-center flex-col items-center bg-gray-200', sectionDefaultOptions]}> |
138 | | - <header class="container"> |
| 140 | +<section |
| 141 | + class={[ |
| 142 | + 'flex justify-center flex-col items-center 2xl:items-start bg-gray-200 px-6 lg:px-16', |
| 143 | + sectionDefaultOptions |
| 144 | + ]} |
| 145 | +> |
| 146 | + <header> |
139 | 147 | <ShowCode |
140 | 148 | code={` |
141 | 149 | <script> |
|
164 | 172 | /> |
165 | 173 | `} |
166 | 174 | /> |
167 | | - <h2 class="text-center text-indigo-600 text-4xl font-bold leading-relaxed text-balance mb-16"> |
| 175 | + <h2 |
| 176 | + class="text-center 2xl:text-left text-indigo-600 text-4xl font-bold leading-relaxed text-balance mb-16" |
| 177 | + > |
168 | 178 | Hover over the navigation and add items to the <strong>useDataElementRect</strong> to dynamically |
169 | 179 | obtain the element's dimensions. |
170 | 180 | </h2> |
171 | 181 | </header> |
172 | 182 | <ul |
173 | | - class="container flex justify-center shadow-lg shadow-gray-400 rounded-md text-gray-700 p-6 border-t border-white" |
| 183 | + class="flex justify-center shadow-lg shadow-gray-400 rounded-md text-gray-700 p-6 border-t border-white" |
174 | 184 | > |
175 | 185 | <li> |
176 | 186 | <button class="px-6 py-2 hover:text-indigo-600 uppercase" data-interactive-cursor="navitem" |
|
200 | 210 | </ul> |
201 | 211 | </section> |
202 | 212 |
|
203 | | -<section class={['flex justify-center flex-col items-center container', sectionDefaultOptions]}> |
| 213 | +<section |
| 214 | + class={[ |
| 215 | + 'flex justify-center flex-col items-center 2xl:items-start px-6 lg:px-16', |
| 216 | + sectionDefaultOptions |
| 217 | + ]} |
| 218 | +> |
204 | 219 | <ShowCode |
205 | 220 | code={` |
206 | 221 | <script> |
|
229 | 244 | /> |
230 | 245 | <h2 |
231 | 246 | data-interactive-cursor="mixblend" |
232 | | - class="text-3xl text-center text-white font-extrabold lg:text-6xl lg:leading-tight text-pretty" |
| 247 | + class="text-3xl text-center 2xl:text-left text-white font-extrabold lg:text-6xl lg:leading-tight text-pretty" |
233 | 248 | > |
234 | 249 | This package enhances user experience by providing a customizable and interactive cursor.<br |
235 | 250 | />It is perfect for adding unique cursor effects to your Svelte applications, making them more |
|
238 | 253 | </h2> |
239 | 254 | </section> |
240 | 255 |
|
241 | | -<section class="bg-gray-900 py-32"> |
| 256 | +<section class="bg-gray-900 py-32 px-6 2xl:items-start lg:px-16"> |
242 | 257 | <ShowCode |
243 | 258 | code={` |
244 | 259 | <script> |
|
303 | 318 | </InteractiveCursor> |
304 | 319 | `} |
305 | 320 | /> |
306 | | - <h2 class="text-4xl text-center text-white font-bold leading-relaxed mb-16"> |
| 321 | + <h2 class="text-4xl text-center 2xl:text-left text-white font-bold leading-relaxed mb-16"> |
307 | 322 | Creating a new way to interact with your elements!<br /> With Svelte Interactive Cursor |
308 | 323 | </h2> |
309 | 324 | <Slider images={cards} /> |
|
0 commit comments