From ed076c3edcb4447133cd6134e04514c6c602ee47 Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Wed, 28 May 2025 07:13:06 +0200 Subject: [PATCH] feat: update navbar and add footer, we have global css files now --- app.vue | 52 +++++++++-------------------- components/Footer.vue | 77 +++++++++++++++++++++++++++++++++++++++++++ components/Header.vue | 47 ++++++++++++++++++++++++++ nuxt.config.ts | 4 +++ public/global.css | 6 ++++ public/variables.css | 31 +++++++++++++++++ 6 files changed, 181 insertions(+), 36 deletions(-) create mode 100644 components/Footer.vue create mode 100644 components/Header.vue create mode 100644 public/global.css create mode 100644 public/variables.css diff --git a/app.vue b/app.vue index e9d3b90..d3a08ab 100644 --- a/app.vue +++ b/app.vue @@ -1,14 +1,9 @@ \ No newline at end of file diff --git a/components/Footer.vue b/components/Footer.vue new file mode 100644 index 0000000..8084402 --- /dev/null +++ b/components/Footer.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/components/Header.vue b/components/Header.vue new file mode 100644 index 0000000..940ac03 --- /dev/null +++ b/components/Header.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/nuxt.config.ts b/nuxt.config.ts index cb193ba..ca82a71 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -3,6 +3,10 @@ export default defineNuxtConfig({ compatibilityDate: '2024-11-01', devtools: { enabled: true }, modules: ['@nuxt/fonts', '@nuxt/image'], + css: [ + '@/public/variables.css', + '@/public/global.css' + ], app: { head: { title: 'Gorb - Open-Source Chat Platform', diff --git a/public/global.css b/public/global.css new file mode 100644 index 0000000..faf4c7c --- /dev/null +++ b/public/global.css @@ -0,0 +1,6 @@ +.pansexual-gradient { + background: linear-gradient(to right, #FE218C, #FED84E, #1CB3F7); + background-clip: text; + -webkit-text-fill-color: transparent; + -webkit-background-clip: text; +} \ No newline at end of file diff --git a/public/variables.css b/public/variables.css new file mode 100644 index 0000000..62aff2d --- /dev/null +++ b/public/variables.css @@ -0,0 +1,31 @@ +/* this file may want to be moved to a /styles folder, or /assets folder, or smth */ +:root { + --text-colour: #141210; + --background-colour: #f4ebe0; + --background-secondary-colour: #efe4db; + + --primary-colour: #f97635; + --secondary-colour: #cab39b; + --tertiary-colour: #e8ac84; + --accent-colour: #ed7a41; +} + +@media (prefers-color-scheme: dark) { + :root { + --text-colour: #efedec; + --background-colour: #201d19; + --background-secondary-colour: #1d1915; + + --primary-colour: #f97635; + --secondary-colour: #b35618; + --tertiary-colour: #7c4018; + --accent-colour: #cc764a; + } +} + +/* unchanging no matter the theme */ +:root { + --text-on-primary-colour: #fff; + --text-on-secondary-colour: #fff; + --text-on-accent-colour: #fff; +} \ No newline at end of file