Skip to content

Commit 2ccad86

Browse files
committed
prettier
1 parent 9adf996 commit 2ccad86

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

kit/src/lib/Tip.svelte

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,41 @@
1111
<div
1212
class="course-tip {color === 'orange'
1313
? 'course-tip-orange'
14-
: ''} bg-gradient-to-br dark:bg-gradient-to-r before:border-{color}-500 dark:before:border-{color}-800 from-{color}-50 dark:from-gray-900 to-white dark:to-gray-950 border border-{color}-50 text-{color}-700 dark:text-gray-400"
14+
: ''} bg-gradient-to-br dark:bg-gradient-to-r before:border-{color}-500 dark:before:border-{color}-800 from-{color}-50 border to-white dark:from-gray-900 dark:to-gray-950 border-{color}-50 text-{color}-700 dark:text-gray-400"
1515
>
1616
<div class="flex items-center gap-2">
1717
{#if warning}
18-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-4 -mt-0.5 flex-shrink-0"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>
18+
<svg
19+
xmlns="http://www.w3.org/2000/svg"
20+
width="20"
21+
height="20"
22+
viewBox="0 0 24 24"
23+
fill="none"
24+
stroke="currentColor"
25+
stroke-width="2"
26+
stroke-linecap="round"
27+
stroke-linejoin="round"
28+
class="-mt-0.5 h-4 w-4 flex-shrink-0"
29+
><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" /><path
30+
d="M12 9v4"
31+
/><path d="M12 17h.01" /></svg
32+
>
1933
{:else}
20-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-4 -mt-0.5 flex-shrink-0"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>
34+
<svg
35+
xmlns="http://www.w3.org/2000/svg"
36+
width="20"
37+
height="20"
38+
viewBox="0 0 24 24"
39+
fill="none"
40+
stroke="currentColor"
41+
stroke-width="2"
42+
stroke-linecap="round"
43+
stroke-linejoin="round"
44+
class="-mt-0.5 h-4 w-4 flex-shrink-0"
45+
><path
46+
d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"
47+
/><path d="M9 18h6" /><path d="M10 22h4" /></svg
48+
>
2149
{/if}
2250
<div class="flex-1">
2351
<slot />

0 commit comments

Comments
 (0)