-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b6b467
commit b97f815
Showing
7 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// generate a topbar component for my website | ||
// it has a title, a search bar, and a button | ||
// using the daisyUI framework | ||
// in mobile view, the button should be hidden | ||
// in desktop view, the search bar should be hidden | ||
|
||
export default function Topbar() { | ||
return ( | ||
<div class="top-0 z-50 fixed w-full bg-primary text-primary-content"> | ||
<div class="container mx-auto flex items-center justify-between p-4"> | ||
<h1 class="text-2xl font-bold">Arcane Tome</h1> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ | |
"tailwindcss": "npm:[email protected]", | ||
"tailwindcss/": "npm:/[email protected]/", | ||
"tailwindcss/plugin": "npm:/[email protected]/plugin.js", | ||
"daisyui" : "npm:[email protected]", | ||
"$std/": "https://deno.land/[email protected]/", | ||
"@/": "./" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { PageProps } from "$fresh/server.ts"; | ||
import Topbar from "@/components/Topbar.tsx"; | ||
|
||
export default function Layout({ Component, state }: PageProps) { | ||
return ( | ||
<div class="layout bg-base-100"> | ||
<Topbar /> | ||
<div class="pt-16"> | ||
<Component /> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,57 @@ | ||
import { type Config } from "tailwindcss"; | ||
import daisyui from "daisyui"; | ||
|
||
export default { | ||
content: [ | ||
"{routes,islands,components}/**/*.{ts,tsx,js,jsx}", | ||
], | ||
plugins: [ | ||
// @ts-expect-error | ||
daisyui, | ||
], | ||
daisyui: { | ||
themes: [ | ||
"emerald", | ||
{ | ||
"arcane": { | ||
"primary": "#6d0b74", | ||
"primary-focus": "#410745", | ||
"primary-content": "#ffffff", | ||
|
||
"secondary": "#007ebd", | ||
"secondary-focus": "#005c8a", | ||
"secondary-content": "#ffffff", | ||
|
||
"accent": "#f8860d", | ||
"accent-focus": "#cb6c06", | ||
"accent-content": "#ffffff", | ||
|
||
"neutral": "#1e2734", | ||
"neutral-focus": "#111827", | ||
"neutral-content": "#ffffff", | ||
|
||
"base-100": "#ffffff", | ||
"base-200": "#f9fafb", | ||
"base-300": "#ced3d9", | ||
"base-content": "#1e2734", | ||
|
||
"info": "#1c92f2", | ||
"success": "#009485", | ||
"warning": "#ff9900", | ||
"error": "#ff5724", | ||
|
||
"--rounded-box": "1rem", | ||
"--rounded-btn": ".5rem", | ||
"--rounded-badge": "1.9rem", | ||
|
||
"--animation-btn": ".25s", | ||
"--animation-input": ".2s", | ||
|
||
"--btn-text-case": "uppercase", | ||
"--navbar-padding": ".5rem", | ||
"--border-btn": "1px", | ||
}, | ||
}, | ||
], | ||
}, | ||
} satisfies Config; |