@@ -3,68 +3,69 @@ import { Scroll } from "lucide-astro";
33---
44
55<div
6- class =" flex flex-col gap-6 rounded-2xl border border-purple-500/20 bg-purple-500/[0.02] p-6"
6+ class =" flex flex-col gap-6 rounded-2xl border border-purple-500/20 bg-purple-500/[0.02] p-6"
77>
8- <h3 class =" text-xl font-semibold text-purple-200" >Usage</h3 >
8+ <h3 class =" text-xl font-semibold text-purple-200" >Usage</h3 >
99
10- <div class =" flex flex-col gap-4" >
11- <p class =" text-purple-200/70" >
12- Locate your application's root component, then just import <code
13- ><b >cascarilla</b ></code
14- > as a regular node package. That's it 😎!
15- </p >
10+ <div class =" flex flex-col gap-4" >
11+ <p class =" text-purple-200/70" >
12+ Locate your application's root component, then just import <code
13+ ><b >cascarilla</b ></code
14+ > as a regular node package. That's it 😎!
15+ </p >
1616
17- <p class =" text-purple-200/70" >
18- This way your blessing will be displayed on your server logs or in the
19- browser's console, depending on where is your root component being
20- rendered.
21- </p >
17+ <p class =" text-purple-200/70" >
18+ This way your blessing will be displayed on your server logs or in
19+ the browser's console, depending on where is your root component
20+ being rendered.
21+ </p >
2222
23- <div class =" rounded-lg bg-black/50 p-4" >
24- <div class =" flex items-center justify-between" >
25- <code class =" text-pink-400" >
26- <span class =" text-purple-400" >import</span >
27- <span class =" text-green-400" >'cascarilla'</span >;
28- </code >
29- <button
30- class =" ml-2 rounded-md p-1 text-purple-400 hover:bg-purple-500/10 hover:text-purple-300"
31- id =" copy-import"
32- >
33- <Scroll class =" h-4 w-4" />
34- <span class =" sr-only" >Copy to clipboard</span >
35- </button >
36- </div >
23+ <div class =" rounded-lg bg-black/50 p-4" >
24+ <div class =" flex items-center justify-between" >
25+ <code class =" text-pink-400" >
26+ <span class =" text-purple-400" >import</span >
27+ <span class =" text-green-400" >'cascarilla'</span >;
28+ </code >
29+ <button
30+ class =" ml-2 rounded-md p-1 text-purple-400 hover:bg-purple-500/10 hover:text-purple-300"
31+ id =" copy-import"
32+ >
33+ <Scroll class =" h-4 w-4" />
34+ <span class =" sr-only" >Copy to clipboard</span >
35+ </button >
36+ </div >
37+ </div >
3738 </div >
38- </div >
3939
40- <div class =" flex flex-col gap-4" >
41- <p class =" text-purple-200/70" >
42- Alternatively you can also add an old school <b
43- ><code >{ " <script>" } </code ></b
44- > tag 📼 to your application's entry point, with a link to the <code
45- >cascarilla</code
46- > script, as shown below.
47- </p >
48- <p class =" text-purple-200/70" >
49- This ensure the blessings stay in the browser 😉.
50- </p >
51- <div class =" rounded-lg bg-black/50 p-4" >
52- <div class =" flex items-center justify-between" >
53- <code class =" text-pink-400" >
54- <span class =" text-purple-400" >{ " <script" } </span >
55- <span class =" text-green-400 break-all" >
56- src='https://cdn.jsdelivr.net/gh/CuCodersCommunity/cascarilla.js@script/cascarilla.js'
57- </span >
58- <span class =" text-purple-400" >{ " />" } </span >
59- </code >
60- <button
61- class =" ml-2 rounded-md p-1 text-purple-400 hover:bg-purple-500/10 hover:text-purple-300"
62- id =" copy-import"
63- >
64- <Scroll class =" h-4 w-4" />
65- <span class =" sr-only" >Copy to clipboard</span >
66- </button >
67- </div >
40+ <div class =" flex flex-col gap-4" >
41+ <p class =" text-purple-200/70" >
42+ Alternatively you can also add an old school <b
43+ ><code >{ " <script>" } </code ></b
44+ > tag 📼 to your application's entry point, with a link to the <code
45+ >cascarilla</code
46+ > script, as shown below.
47+ </p >
48+ <p class =" text-purple-200/70" >
49+ This ensure the blessings stay in the browser 😉.
50+ </p >
51+ <div class =" rounded-lg bg-black/50 p-4" >
52+ <div class =" flex items-center justify-between" >
53+ <code class =" text-pink-400" >
54+ <span class =" text-purple-400" >{ " <script" } </span >
55+ <span class =" text-green-400 break-all" >
56+ src='https://cdn.jsdelivr.net/gh/CuCodersCommunity/cascarilla.js@script/index.js'
57+ defer
58+ </span >
59+ <span class =" text-purple-400" >{ " />" } </span >
60+ </code >
61+ <button
62+ class =" ml-2 rounded-md p-1 text-purple-400 hover:bg-purple-500/10 hover:text-purple-300"
63+ id =" copy-import"
64+ >
65+ <Scroll class =" h-4 w-4" />
66+ <span class =" sr-only" >Copy to clipboard</span >
67+ </button >
68+ </div >
69+ </div >
6870 </div >
69- </div >
7071</div >
0 commit comments