From 8dfe52ef1da114640f0f8d379ee802f15d64fdcb Mon Sep 17 00:00:00 2001 From: Ihsen Bouallegue Date: Tue, 23 Jan 2024 23:44:51 +0100 Subject: [PATCH] Update font and color styles --- src/app/globals.css | 76 +++++++++++++++++-------------- src/app/layout.tsx | 8 ++-- src/components/call-to-action.tsx | 2 +- src/components/footer.tsx | 2 +- src/components/header.tsx | 4 +- src/components/hero.tsx | 8 ++-- src/components/projects.tsx | 4 +- src/components/testimonials.tsx | 4 +- src/components/ui/button.tsx | 4 +- tailwind.config.ts | 4 ++ 10 files changed, 64 insertions(+), 52 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 54dc332..c7a2832 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -4,47 +4,55 @@ @layer base { :root { - --background: 0 0% 100%; - --foreground: 249 46% 8%; - --card: 0 0% 100%; - --card-foreground: 249 46% 8%; - --popover: 0 0% 100%; - --popover-foreground: 249 46% 8%; - --primary: 250 100% 15%; - --primary-foreground: 0 0% 100%; + --background: 248 100% 97%; + --foreground: 249 37% 7%; + --card: 248 100% 97%; + --card-foreground: 249 37% 7%; + --popover: 248 100% 97%; + --popover-foreground: 249 37% 7%; + --primary: 216 76% 82%; + --primary-foreground: 249 37% 7%; --secondary: 311 46% 86%; - --secondary-foreground: 249 46% 8%; - --muted: 0 0% 20%; - --muted-foreground: 249 46% 70%; - --accent: 310 46% 46%; - --accent-foreground: 0 0% 100%; + --secondary-foreground: 249 37% 7%; + --muted: 248 100% 20%; + --muted-foreground: 249 37% 70%; + --accent: 219 48% 65%; + --accent-foreground: 249 37% 7%; --destructive: 0 85% 60%; - --destructive-foreground: 249 46% 8%; - --border: 0 0% 20%; - --input: 0 0% 20%; - --ring: 310 46% 40%; + --destructive-foreground: 249 37% 7%; + --border: 248 100% 20%; + --input: 248 100% 20%; + --ring: 219 48% 40%; --radius: 0.5rem; } .dark { - --background: 246 100% 3%; - --foreground: 249 46% 92%; - --card: 0 0% 0%; - --card-foreground: 249 46% 92%; - --popover: 0 0% 0%; - --popover-foreground: 249 46% 92%; - --primary: 249 100% 85%; - --primary-foreground: 0 0% 0%; + --background: 248 100% 3%; + --foreground: 249 37% 93%; + --card: 248 100% 3%; + --card-foreground: 249 37% 93%; + --popover: 248 100% 3%; + --popover-foreground: 249 37% 93%; + --primary: 216 76% 18%; + --primary-foreground: 249 37% 93%; --secondary: 311 46% 14%; - --secondary-foreground: 249 46% 92%; - --muted: 0 0% 80%; - --muted-foreground: 249 46% 92%; - --accent: 310 46% 54%; - --accent-foreground: 0 0% 0%; + --secondary-foreground: 249 37% 93%; + --muted: 248 100% 80%; + --muted-foreground: 249 37% 93%; + --accent: 219 48% 35%; + --accent-foreground: 249 37% 93%; --destructive: 0 62% 30%; - --destructive-foreground: 248 45% 10%; - --border: 0 0% 60%; - --input: 0 0% 80%; - --ring: 310 46% 60%; + --destructive-foreground: 249 37% 10%; + --border: 248 100% 60%; + --input: 248 100% 80%; + --ring: 219 48% 60%; } +} + +h1, h2, h3, h4, h5, h6 { + font-family: var(--font-orbitron), sans-serif; +} + +body { + font-family: var(--font-plus-jakarta-sans), sans-serif; } \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 98ada86..9492ea9 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -3,7 +3,7 @@ import Header from "@/components/header"; import { ThemeProvider } from "@/components/theme-provider"; import { cn } from "@/lib/utils"; import type { Metadata } from "next"; -import { Plus_Jakarta_Sans } from "next/font/google"; +import { Orbitron, Plus_Jakarta_Sans } from "next/font/google"; import dynamic from "next/dynamic"; import "./globals.css"; @@ -14,8 +14,8 @@ const StarrySkyCanvas = dynamic( }, ); -const plusJakartaSans = Plus_Jakarta_Sans({ subsets: ["latin"] }); -// const orbitron = Orbitron({ subsets: ["latin"] }); +const plusJakartaSans = Plus_Jakarta_Sans({ subsets: ["latin"], variable:"--font-plus-jakarta-sans" }); +const orbitron = Orbitron({ subsets: ["latin"], variable:"--font-orbitron" }); export const metadata: Metadata = { title: "TUDSaT", @@ -30,7 +30,7 @@ export default function RootLayout({ return ( - +
{children} diff --git a/src/components/call-to-action.tsx b/src/components/call-to-action.tsx index 70bf931..ca486b7 100644 --- a/src/components/call-to-action.tsx +++ b/src/components/call-to-action.tsx @@ -6,7 +6,7 @@ import { buttonVariants } from "./ui/button"; export default function Example() { return (
-
+
+
logo
- Join Now + Membership
diff --git a/src/components/hero.tsx b/src/components/hero.tsx index 8862239..d8298fd 100644 --- a/src/components/hero.tsx +++ b/src/components/hero.tsx @@ -9,7 +9,7 @@ export default function Hero() { aria-hidden="true" >
-
+
-
+
diff --git a/src/components/testimonials.tsx b/src/components/testimonials.tsx index df49f8e..1ecef03 100644 --- a/src/components/testimonials.tsx +++ b/src/components/testimonials.tsx @@ -48,8 +48,8 @@ export default function Testimonials() { return (
-
-
+
+