Skip to content

Commit 073989b

Browse files
committed
docs: homepage update
1 parent 437e674 commit 073989b

File tree

11 files changed

+29
-12
lines changed

11 files changed

+29
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,4 +643,4 @@
643643
},
644644
"./package.json": "./package.json"
645645
}
646-
}
646+
}

src/lib/list-group/ListgroupItem.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { tv } from "tailwind-variants";
55
import { type ListgroupItemProps as Props, listGroupItem } from ".";
66
7-
let { children, onclick, active, current, disabled, name, Icon, href, currentClass = "text-white bg-primary-700 dark:text-white dark:bg-gray-800", normalClass, disabledClass = "text-gray-900 bg-gray-100 dark:bg-gray-600 dark:text-gray-400", liClass = "py-2 px-4 w-full text-sm font-medium list-none first:rounded-t-lg last:rounded-b-lg", class: className, aClasss, btnClass, iconClass="me-2.5 h-5 w-5", ...restProps }: Props = $props();
7+
let { children, onclick, active, current, disabled, name, Icon, href, currentClass = "text-white bg-primary-700 dark:text-white dark:bg-gray-800", normalClass, disabledClass = "text-gray-900 bg-gray-100 dark:bg-gray-600 dark:text-gray-400", liClass = "py-2 px-4 w-full text-sm font-medium list-none first:rounded-t-lg last:rounded-b-lg", class: className, aClasss, btnClass, iconClass = "me-2.5 h-5 w-5", ...restProps }: Props = $props();
88
99
active = getContext("active");
1010

src/routes/+page.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { P } from "$lib";
2+
import { P, A } from "$lib";
33
import HighlightCompo from "./utils/HighlightCompo.svelte";
44
import H1 from "./utils/H1.svelte";
55
import H2 from "./utils/H2.svelte";
@@ -35,4 +35,9 @@
3535
<H3>Tailwind</H3>
3636
<P>Add the following to tailwind.config.js:</P>
3737

38+
<H3>SVG Icons</H3>
39+
<P>If you are using any icons from <A href="https://svelte-svg-icons.codewithshin.com/">Svelte SVG Icon Sets</A>, you need to update the content in tailwind.config.js. For example, if you are using Flowbite-Svelte-Icons and Svelte-Animated-Icons:</P>
40+
41+
<HighlightCompo class="mb-8" codeLang="js" code={modules["./md/svg-icons.md"] as string} />
42+
3843
<HighlightCompo class="mb-8" codeLang="json" code={modules["./md/tailwind-config.md"] as string} />

src/routes/components/accordion/examples/Icon.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<AccordionItem>
88
{#snippet header()}
99
<span class="flex gap-2 text-base">
10-
<CartFlowbite/>
10+
<CartFlowbite />
1111
<span>My Header 1</span>
1212
</span>
1313
{/snippet}

src/routes/components/tabs/examples/AnimatedIcons.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<TabItem>
2020
{#snippet titleSlot()}
2121
<div class="flex items-center gap-2">
22-
<GridFlowbite/>
22+
<GridFlowbite />
2323
Dashboard
2424
</div>
2525
{/snippet}

src/routes/components/toast/examples/PushNotification.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Toast align={false}>
77
<span class="font-semibold text-gray-900 dark:text-white">New notification</span>
88
<div class="mt-3 flex items-center">
9-
<Avatar src="/images/profile-picture-3.webp" alt="Bonnie Green"/>
9+
<Avatar src="/images/profile-picture-3.webp" alt="Bonnie Green" />
1010
<div class="ms-3">
1111
<h4 class="text-sm font-semibold text-gray-900 dark:text-white">Bonnie Green</h4>
1212
<div class="text-sm font-normal">commented on your photo</div>

src/routes/components/toast/examples/ToastMessage.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="flex h-[180px] flex-col items-center">
66
<Toast align={false} iconClass="w-10 h-10 rounded-full">
77
{#snippet icon()}
8-
<Avatar src="/images/profile-picture-1.webp" alt="Jese Leos"/>
8+
<Avatar src="/images/profile-picture-1.webp" alt="Jese Leos" />
99
{/snippet}
1010
<div class="ms-3 text-sm font-normal">
1111
<span class="mb-1 text-sm font-semibold text-gray-900 dark:text-white">Jese Leos</span>

src/routes/forms/checkbox/examples/Advanced.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88
<p class="mb-5 text-lg font-medium text-gray-900 dark:text-white">Choose technology:</p>
99
<div class="grid w-full gap-6 md:grid-cols-3">
1010
<Checkbox custom>
11-
<button class="w-full cursor-pointer rounded-lg border-2 border-gray-200 bg-white p-5 font-normal text-gray-500 hover:bg-gray-50 hover:text-gray-600 peer-checked:border-primary-600 peer-checked:text-gray-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300 dark:peer-checked:text-gray-300 text-left">
11+
<button class="w-full cursor-pointer rounded-lg border-2 border-gray-200 bg-white p-5 text-left font-normal text-gray-500 hover:bg-gray-50 hover:text-gray-600 peer-checked:border-primary-600 peer-checked:text-gray-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300 dark:peer-checked:text-gray-300">
1212
<React />
1313
<p class="w-full text-lg font-semibold">React Js</p>
1414
<p class="w-full text-sm">A JavaScript library for building user interfaces.</p>
1515
</button>
1616
</Checkbox>
1717
<Checkbox custom>
18-
<button class="w-full cursor-pointer rounded-lg border-2 border-gray-200 bg-white p-5 font-normal text-gray-500 hover:bg-gray-50 hover:text-gray-600 peer-checked:border-primary-600 peer-checked:text-gray-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300 dark:peer-checked:text-gray-300 text-left">
18+
<button class="w-full cursor-pointer rounded-lg border-2 border-gray-200 bg-white p-5 text-left font-normal text-gray-500 hover:bg-gray-50 hover:text-gray-600 peer-checked:border-primary-600 peer-checked:text-gray-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300 dark:peer-checked:text-gray-300">
1919
<Vue />
2020
<p class="w-full text-lg font-semibold">Vue Js</p>
2121
<p class="w-full text-sm">Vue.js is an model–view front end JavaScript framework.</p>
2222
</button>
2323
</Checkbox>
2424
<Checkbox custom>
25-
<button class="w-full cursor-pointer rounded-lg border-2 border-gray-200 bg-white p-5 font-normal text-gray-500 hover:bg-gray-50 hover:text-gray-600 peer-checked:border-primary-600 peer-checked:text-gray-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300 dark:peer-checked:text-gray-300 text-left">
25+
<button class="w-full cursor-pointer rounded-lg border-2 border-gray-200 bg-white p-5 text-left font-normal text-gray-500 hover:bg-gray-50 hover:text-gray-600 peer-checked:border-primary-600 peer-checked:text-gray-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300 dark:peer-checked:text-gray-300">
2626
<Angular />
2727
<p class="w-full text-lg font-semibold">Angular</p>
2828
<p class="w-full text-sm">A TypeScript-based web application framework.</p>

src/routes/md/svg-icons.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import type { Config } from 'tailwindcss';
2+
3+
export default {
4+
content: [
5+
'./src/**/*.{html,js,svelte,ts}',
6+
'./node_modules/svelte-5-ui-lib/**/*.{html,js,svelte,ts}',
7+
'./node_modules/flowbite-svelte-icons/**/*.{html,js,svelte,ts}',
8+
'./node_modules/svelte-animated-icons/**/*.{html,js,svelte,ts}'
9+
],
10+
// more code
11+
},
12+
} satisfies Config;

src/routes/typography/image/examples/Enhanced.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
import MyImage from "./garnished.webp?enhanced";
44
</script>
55

6-
<ImgEnhanced src={MyImage} alt="An alt text" caption="This is a caption" sizes="100vw"/>
6+
<ImgEnhanced src={MyImage} alt="An alt text" caption="This is a caption" sizes="100vw" />

0 commit comments

Comments
 (0)