File tree Expand file tree Collapse file tree 5 files changed +26
-22
lines changed
Expand file tree Collapse file tree 5 files changed +26
-22
lines changed Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import { HighlightSvelte } from ' svelte-highlight' ;
33 import ' svelte-highlight/styles/github-dark.css' ;
4- import { formatCode , copyToClipboard } from ' ../../helpers.js' ;
4+ import { formatCode } from ' ../../helpers.js' ;
55 import CopyToClipboard from ' ./CopyToClipboard.svelte' ;
66
77 interface Props {
1414 </script >
1515
1616<div
17- class ="rounded-md border border-gray-800 overflow-clip bg-neutral-950 max- w-full lg:max-w-4xl {classes }"
17+ class ="rounded-md border border-gray-800 overflow-clip bg-neutral-950 w-full lg:max-w-4xl {classes }"
1818 data-interactive-cursor =" hidden"
1919>
2020 <div class =" flex justify-between items-center px-3 py-2" >
2828 />
2929 </div >
3030
31- <HighlightSvelte code ={formatCode (code )} class =" font-mono text-sm" />
31+ <HighlightSvelte code ={formatCode (code )} class =" flex font-mono text-sm max-w-full " />
3232</div >
Original file line number Diff line number Diff line change 1111 Thanks for checking out the<br />Svelte Interactive Cursor
1212 </p >
1313 <p class =" text-gray-400 mt-4" >
14- If you find this project useful, consider <a
15- href =" https://github.com/LoStis-World/svelte-interactive-cursor"
16- class =" text-gray-300 underline underline-offset-2 hover:text-white"
17- rel =" noreferrer noopener"
18- title =" Star on GitHub" >starring it on GitHub</a
19- >.
14+ <span >Feel free to contribute by opening an issue or submitting a pull request.</span >
15+ <span >Visit the project on GitHub to learn more.</span >
2016 </p >
2117 <p class =" text-gray-400" >
2218 You might also be interested in exploring our other projects on GitHub.
Original file line number Diff line number Diff line change 4646 ]}
4747>
4848 <div
49- class =" h-full overflow-y-auto pt-64 min-h-screen pb-32 lg:py -16 flex flex-col justify-center 2xl:items-end items-center px-8 2xl:pr-16"
49+ class =" h-full 2xl: overflow-y-auto lg: pt-64 min-h-screen pb-32 lg:pb -16 flex flex-col justify-center 2xl:items-end items-center px-6 2xl:pr-16"
5050 >
5151 <h1 class =" font-extrabold text-5xl lg:text-8xl text-center 2xl:text-right text-white mb-16" >
5252 <span class =" drop-shadow-lg" >Svelte</span >
6060 engaging and visually appealing.
6161 </p >
6262
63- <div class =" flex flex-wrap justify-center gap-4 lg:max-w-lg max-w-md mt-8 " >
63+ <div class =" flex flex-col items-center justify-center gap-4 mt-8 overflow-clip max-w-full " >
6464 {#each itemsToCopy as { text }, idx (idx )}
65- <div class =" flex w-full rounded-md shadow-sm" >
66- <pre class =" bg-gray-900 p-2 rounded-l-md text-xs md:text-sm flex w-full overflow-auto " >
65+ <div class =" flex rounded-md shadow-sm w-full max-w-full overflow-auto " >
66+ <pre class =" flex bg-gray-900 p-2 rounded-l-md text-xs flex-1 w-full" >
6767 <code >{@html text }</code >
6868 </pre >
6969 <button
8080 viewBox =" 0 0 24 24"
8181 stroke-width =" 2"
8282 stroke =" currentColor"
83- class =" h-full "
83+ class =" size-5 "
8484 >
8585 <path
8686 stroke-linecap =" round"
Original file line number Diff line number Diff line change 3434 ]}
3535 data-interactive-cursor =" cardarea"
3636>
37- <header class =" mb-16" >
37+ <header class =" mb-16 max-w-full " >
3838 <ShowCode
3939 code ={` <script>
4040 import InteractiveCursor from '@lostisworld/svelte-interactive-cursor';
142142 sectionDefaultOptions
143143 ]}
144144>
145- <header >
145+ <header class = " max-w-full " >
146146 <ShowCode
147147 code ={`
148148 <script>
209209 </ul >
210210</section >
211211
212- <section class ={[ ' flex justify-center flex-col items-center 2xl:items-start px-6 lg:px-16' , sectionDefaultOptions ]}>
212+ <section
213+ class ={[
214+ ' flex justify-center flex-col items-center 2xl:items-start px-6 lg:px-16 max-w-full' ,
215+ sectionDefaultOptions
216+ ]}
217+ >
213218 <ShowCode
214219 code ={`
215220 <script>
236241 />
237242 ` }
238243 />
239- <h2 class =" text-2xl text-center 2xl:text-left text-white font-extrabold lg:text-6xl lg:leading-tight text-pretty"
244+ <h2
245+ class =" text-2xl text-center 2xl:text-left text-white font-extrabold lg:text-6xl lg:leading-tight text-pretty"
240246 data-interactive-cursor =" mixblend"
241247 >
242248 This package enhances user experience by providing a customizable and interactive cursor.<br
246252 </h2 >
247253</section >
248254
249- <section class =" bg-gray-900 py-32 px-6 2xl:items-start lg:px-16" >
255+ <section class =" bg-gray-900 py-32 px-6 2xl:items-start lg:px-16 max-w-full " >
250256 <ShowCode
251257 code ={`
252258 <script>
311317 </InteractiveCursor>
312318 ` }
313319 />
314- <h2 class =" text-2xl md:text-4xl text-center 2xl:text-left text-white font-bold leading-relaxed mb-16" >
320+ <h2
321+ class =" text-2xl md:text-4xl text-center 2xl:text-left text-white font-bold leading-relaxed mb-16"
322+ >
315323 Creating a new way to interact with your elements!<br /> With Svelte Interactive Cursor
316324 </h2 >
317325 <Slider images ={cards } />
Original file line number Diff line number Diff line change 1010 let showCode = $state (false );
1111 </script >
1212
13- <div class =" flex flex-col items-center 2xl:items-start" >
13+ <div class =" flex flex-col items-center 2xl:items-start max-w-full " >
1414 <button
1515 type =" button"
1616 class ={[
4848 </button >
4949
5050 {#if showCode }
51- <div transition:slide class =" mb-16" >
51+ <div transition:slide class =" mb-16 max-w-full overflow-clip " >
5252 <Codeblock {code } />
5353 </div >
5454 {/if }
You can’t perform that action at this time.
0 commit comments