From de80bedaf385ef9b6d7140f5f61ae37f5619ace4 Mon Sep 17 00:00:00 2001
From: Chanatip Kowsurat <141796254+NhongSun@users.noreply.github.com>
Date: Thu, 26 Dec 2024 21:18:58 +0700
Subject: [PATCH] Sun/feat/navbar (#725)
* feat: navbar components
* feat: github mark
* feat: navbar option
* feat: border
* refactor: center nav items
* feat: add link to github mark
* feat: collapsible
* refactor: typography
* feat: responsive
* fix: import component
* refactor: collapsible
* fix: minor bugs
* feat: sidebar
* fix: navItems
* refactor: move files
* feat: story book
* fix: shorten display name
* refactor: shorten code
* fix: responsive
* fix: style
* refactor: move file
* fix: migrate to svelte 5
* fix: lint fix
* fix: lint fix + small bugs
* refactor: typography
* fix: small bugs
---
apps/web/src/routes/+page.svelte | 4 +
.../atom/collapsible/collapsible.svelte | 22 +++
.../src/components/atom/collapsible/index.ts | 7 +
.../src/components/organism/navbar/index.ts | 7 +
.../organism/navbar/navbar.stories.svelte | 41 ++++
.../components/organism/navbar/navbar.svelte | 184 ++++++++++++++++++
6 files changed, 265 insertions(+)
create mode 100644 packages/ui/src/components/atom/collapsible/collapsible.svelte
create mode 100644 packages/ui/src/components/atom/collapsible/index.ts
create mode 100644 packages/ui/src/components/organism/navbar/index.ts
create mode 100644 packages/ui/src/components/organism/navbar/navbar.stories.svelte
create mode 100644 packages/ui/src/components/organism/navbar/navbar.svelte
diff --git a/apps/web/src/routes/+page.svelte b/apps/web/src/routes/+page.svelte
index 31c7ab225..0510cb604 100644
--- a/apps/web/src/routes/+page.svelte
+++ b/apps/web/src/routes/+page.svelte
@@ -7,6 +7,7 @@
import { Input } from '@repo/ui/atom/input'
import { RecommendedTag } from '@repo/ui/atom/recommended-tag'
import { CourseCard } from '@repo/ui/molecule/course-card'
+ import { Navbar } from '@repo/ui/organism/navbar'
let counter = $state(0)
@@ -15,6 +16,9 @@
}
+
{item}
+ {/each} ++ ปี 2 ภาคฤดูร้อนที่ยาวมาก บลาบลา +
+{name}
++ 6XXXXXXXXX +
+