From a2f033b933a2e1166d0fecf19ccfb2ce55417e79 Mon Sep 17 00:00:00 2001 From: Chulinuwu Date: Fri, 13 Sep 2024 17:02:09 +0700 Subject: [PATCH 1/7] feat:List/Reponsive Dont Sure variant or color? --- src/lib/components/List/List.svelte | 31 ++++++++++++++++++++++++++++ src/lib/components/Playground.svelte | 27 ++++++++++++++++++++++++ src/styles/tailwind/list.ts | 7 +++++++ 3 files changed, 65 insertions(+) create mode 100644 src/lib/components/List/List.svelte create mode 100644 src/styles/tailwind/list.ts diff --git a/src/lib/components/List/List.svelte b/src/lib/components/List/List.svelte new file mode 100644 index 0000000..a18dfe2 --- /dev/null +++ b/src/lib/components/List/List.svelte @@ -0,0 +1,31 @@ + + + +
{title}
+ +
{formatDate(createdAt)} โดย {createdBy}
+ +
+ + diff --git a/src/lib/components/Playground.svelte b/src/lib/components/Playground.svelte index 2e3b403..f9a36c7 100644 --- a/src/lib/components/Playground.svelte +++ b/src/lib/components/Playground.svelte @@ -5,6 +5,7 @@ import Modal from '$lib/components/Modal/Modal.svelte'; import Footer from '$lib/components/Footer/Footer.svelte'; import { modalShow } from './Modal/store'; + import List from './List/List.svelte'; modalShow.set(false); @@ -160,6 +161,32 @@ {/if} +
+

List

+ + + + +
+