From 0e75609668e934a94fbbb0ecc80b4d7034e2732b Mon Sep 17 00:00:00 2001 From: RezHackXYZ Date: Sat, 31 May 2025 08:38:04 +0530 Subject: [PATCH] added nav --- src/routes/+layout.svelte | 15 ++++++++++++++- src/routes/nav.svelte | 13 +++++++++++++ src/routes/tailwind.css | 23 +++++++++++++++++++---- 3 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 src/routes/nav.svelte diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 7a687d6..8441cef 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,4 +1,5 @@ -
{@render children()}
+
+ + + {@render children()} +
diff --git a/src/routes/nav.svelte b/src/routes/nav.svelte new file mode 100644 index 0000000..c875388 --- /dev/null +++ b/src/routes/nav.svelte @@ -0,0 +1,13 @@ + +
+ +
diff --git a/src/routes/tailwind.css b/src/routes/tailwind.css index 555c97a..f745326 100644 --- a/src/routes/tailwind.css +++ b/src/routes/tailwind.css @@ -3,11 +3,26 @@ @import "tailwindcss"; :root { - @apply bg-gray-950 text-white; + @apply bg-gray-950 font-[Sour_Gummy] text-white; } .btn { - @apply cursor-pointer rounded border-2 border-white bg-gray-600 px-4 py-2 font-bold text-white transition-all hover:scale-105 hover:-rotate-5 hover:bg-gray-500 hover:shadow-lg; + @apply flex cursor-pointer items-center gap-1 rounded border-2 border-white bg-gray-600 px-4 py-2 font-bold text-white transition-all hover:scale-105 hover:bg-gray-500 hover:shadow-lg; + + &.compact { + @apply px-1 py-0.5; + } + + &.circular { + @apply rounded-full; + &.compact { + @apply px-0.75 py-0.75; + } + } + + &.dull { + @apply border-gray-700 bg-transparent text-gray-700 hover:bg-gray-700 hover:text-white; + } &.green { @apply bg-green-600 hover:bg-green-500; @@ -15,5 +30,5 @@ } .card { - @apply shadow-[4px_4px_0px_0px_white] hover:-translate-0.5 hover:shadow-[6px_6px_0px_0px_white] active:translate-0.5 active:shadow-[2px_2px_0px_0px_white] cursor-pointer border-2 border-gray-700 bg-gray-800 p-4 rounded transition-all; -} \ No newline at end of file + @apply cursor-pointer rounded border-2 border-gray-700 bg-gray-800 p-4 shadow-[4px_4px_0px_0px_white] transition-all hover:-translate-0.5 hover:shadow-[6px_6px_0px_0px_white] active:translate-0.5 active:shadow-[2px_2px_0px_0px_white]; +}