Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Apr 28, 2024
1 parent 3651f02 commit 1c65293
Show file tree
Hide file tree
Showing 23 changed files with 41 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/docs/src/components/LangChange.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div title="Change Language" class="dropdown dropdown-end">
<div tabindex="0" role="button" class="btn btn-ghost" aria-label="Language">
<svg
class="h-5 w-5 fill-current"
class="h-4 w-4 fill-current"
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
Expand Down
13 changes: 11 additions & 2 deletions src/docs/src/components/Navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
</div>
<div class="flex-0">
{#if showComponentsBtn}
<div class={`hidden flex-none items-center lg:block`}>
<div class="hidden flex-none items-center lg:block">
<a
data-sveltekit-preload-data
href="/components/"
Expand All @@ -122,6 +122,15 @@
{$t("components-btn")}
</a>
</div>

<div class="hidden flex-none items-center lg:block">
<a
data-sveltekit-preload-data
href="/store/"
class="btn btn-ghost drawer-button font-normal">
{$t("Store")}
</a>
</div>
{/if}
{#await import("./ThemeChange.svelte")}
<div class="btn btn-ghost cursor-wait">
Expand Down Expand Up @@ -156,7 +165,7 @@
{#await import("./LangChange.svelte")}
<div class="btn btn-ghost cursor-wait">
<svg
class="h-5 w-5 fill-current"
class="h-4 w-4 fill-current"
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
Expand Down
9 changes: 8 additions & 1 deletion src/docs/src/lib/data/pages.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
export const pagesThatDontNeedSidebar = ["/", "/blog/", "/blog/*/", "/store/", "/resources/*/"]
export const pagesThatDontNeedSidebar = [
"/",
"/components/",
"/blog/",
"/blog/*/",
"/store/",
"/resources/*/",
]

export const pages = [
{
Expand Down
4 changes: 2 additions & 2 deletions src/docs/src/routes/(docs)/components/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

<SEO title="Components" desc="Tailwind CSS component examples by daisyUI" />
<div class="flex flex-col-reverse justify-between gap-6 xl:flex-row">
<div class="flex flex-col gap-6 pt-10">
<div class="flex flex-col gap-6 ps-6 pt-10">
<div class="prose max-w-4xl flex-grow">
<h1><Translate text="All daisyUI components" /></h1>
<p>{Object.keys(components).length} <Translate text="components" /></p>
</div>
<div
class="not-prose grid grid-cols-1 gap-x-6 gap-y-12 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-2 xl:grid-cols-3">
class="not-prose grid grid-cols-1 gap-x-6 gap-y-12 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-4">
{#each components as { slug, title, desc }}
<a
class="card card-compact hover:bg-base-200 transition-all duration-200 hover:-translate-y-1"
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "العناصر",
"cta-2": "طريقة الاستعمال",
"components-btn": "العناصر",
"Store": "المتجر",
"change-theme-btn": "تصميم",
"all-components-btn": "جميع العناصر",
"components": "عناصر",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "কম্পোনেন্টস",
"cta-2": "কিভাবে ব্যাবহার করবেন?",
"components-btn": "কম্পোনেন্টস",
"Store": "স্টোর",
"change-theme-btn": "থিম",
"all-components-btn": "সবগুলো কম্পোনেন্টস দেখুন",
"components": "কম্পোনেন্টস",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "Komponenten",
"cta-2": "Wie wird es benutzt?",
"components-btn": "Komponenten",
"Store": "Speichern",
"change-theme-btn": "Thema",
"all-components-btn": "Alle Komponenten ansehen",
"components": "Komponenten",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "Components",
"cta-2": "How to use?",
"components-btn": "Components",
"Store": "Store",
"change-theme-btn": "Theme",
"all-components-btn": "See All Components",
"components": "Components",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "Componentes",
"cta-2": "¿Cómo utilizar?",
"components-btn": "Componentes",
"Store": "Tienda",
"change-theme-btn": "Tema",
"all-components-btn": "Ver componentes",
"components": "Componentes",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "کامپوننت‌ها",
"cta-2": "چگونه استفاده کنیم؟",
"components-btn": "کامپوننت‌ها",
"Store": "فروشگاه",
"change-theme-btn": "تم",
"all-components-btn": "همه‌ی کامپوننت‌ها را ببینید",
"components": "کامپوننت",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "Composants",
"cta-2": "Comment l'utiliser ?",
"components-btn": "Composants",
"Store": "Magasin",
"change-theme-btn": "Thème",
"all-components-btn": "Voir tous les composants",
"components": "Composants",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "Komponen",
"cta-2": "Cara pemakaian",
"components-btn": "Komponen",
"Store": "Toko",
"change-theme-btn": "Tema",
"all-components-btn": "Lihat semua komponen",
"components": "Komponen",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "Componenti",
"cta-2": "Come usare?",
"components-btn": "Componenti",
"Store": "Negozio",
"change-theme-btn": "Tema",
"all-components-btn": "Vedi tutti i componenti",
"components": "Componenti",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "コンポーネント",
"cta-2": "使い方を見る",
"components-btn": "コンポーネント",
"Store": "ストア",
"change-theme-btn": "テーマ",
"all-components-btn": "すべてのコンポーネントを表示",
"components": "コンポーネント",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "컴포넌트",
"cta-2": "시작하기",
"components-btn": "컴포넌트",
"Store": "스토어",
"change-theme-btn": "테마",
"all-components-btn": "모든 컴포넌트 보기",
"components": "컴포넌트 개수",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/ms.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "Komponen",
"cta-2": "Cara untuk guna?",
"components-btn": "Komponen",
"Store": "Simpan",
"change-theme-btn": "Tema",
"all-components-btn": "Lihat semua komponen",
"components": "Komponen",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "Komponenty",
"cta-2": "Jak używać?",
"components-btn": "Komponenty",
"Store": "Sklep",
"change-theme-btn": "Motyw",
"all-components-btn": "Zobacz wszystkie komponenty",
"components": "Komponenty",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "Componentes",
"cta-2": "Como utilizar?",
"components-btn": "Componentes",
"Store": "Loja",
"change-theme-btn": "Tema",
"all-components-btn": "Ver todos os componentes",
"components": "Componentes",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "Компоненты",
"cta-2": "Как пользоваться?",
"components-btn": "Компоненты",
"Store": "Магазин",
"change-theme-btn": "Темы",
"all-components-btn": "Все компоненты",
"components": "Компонентов",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "Компоненти",
"cta-2": "Як користуватися?",
"components-btn": "Компоненти",
"Store": "Store",
"change-theme-btn": "Теми",
"all-components-btn": "Всі Компоненти",
"components": "Компоненти",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "Các thành phần",
"cta-2": "Sử dụng thế nào?",
"components-btn": "Các thành phần",
"Store": "Cửa hàng",
"change-theme-btn": "Chủ đề",
"all-components-btn": "Xem tất cả các thành phần",
"components": "Components",
Expand Down
2 changes: 1 addition & 1 deletion src/docs/src/translation/zh_hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "组件",
"cta-2": "阅读使用方法",
"components-btn": "组件",
"Store": "商店",
"change-theme-btn": "主题",
"all-components-btn": "查看全部组件",
"components": "组件",
Expand Down Expand Up @@ -461,7 +462,6 @@
"Using <code>&lt;a&gt;</code> anchor links: A link adds a parameter to the URL and you only see the modal when the URL has that parameter": "使用 <code>&lt;a&gt;</code> 锚点链接:链接向 URL 添加一个参数,只有当 URL 具有该参数时,您才会看到模态框",
"This component is deprecated and will be removed in the next major version. Use <a class='link' href='/components/join/'>Join</a> instead.": "这个组件已经被弃用,并且将在下一个主要版本中被移除。请使用 <a class='link' href='/components/join/'>Join</a> 代替。",
"Playground": "示例",
"Store": "商店",
"Blog": "博客",
"Resources": "资源",
"Sponsors": "赞助商",
Expand Down
1 change: 1 addition & 0 deletions src/docs/src/translation/zh_hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cta-1-mobile": "元件",
"cta-2": "如何使用?",
"components-btn": "元件",
"Store": "商店",
"change-theme-btn": "主題",
"all-components-btn": "查看所有元件",
"components": "個元件",
Expand Down

0 comments on commit 1c65293

Please sign in to comment.