From bc89d83a5314af55bf9dce6985723a3eed3d5ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Alexander=20Str=C3=B8mseng?= Date: Wed, 20 Mar 2024 16:38:33 +0100 Subject: [PATCH] 145 update tailwind color definitions to new design (#156) * rewrite tailwind config to use hex colors, and update color definitions * fix tailwind config, update to new colors * remove light mode * remove old generated strapi rest api types * remvoe rest api generate types script * rename typegen scripts * update navbar colors, remove old unused code * fix footer responsive design and colors * run prettier * remove old rest api code --- frontend/package.json | 4 +- frontend/src/app/globals.css | 88 +- frontend/src/app/layout.tsx | 18 +- frontend/src/app/page.tsx | 6 +- frontend/src/components/ExternalLink.tsx | 5 +- frontend/src/components/Footer.tsx | 6 +- frontend/src/components/Navbar.tsx | 20 +- frontend/src/components/map/MyCustomMap.tsx | 2 +- frontend/src/components/ntnu/NTNULogo.tsx | 20 +- .../src/components/ntnu/NTNULogoImage.tsx | 26 - frontend/src/components/theme-provider.tsx | 9 - frontend/src/components/ui/dropdown-menu.tsx | 6 +- frontend/src/components/ui/hero.tsx | 2 +- frontend/src/components/ui/table.tsx | 4 +- frontend/src/lib/strapi.ts | 63 - frontend/src/types/strapi.ts | 3643 ----------------- frontend/tailwind.config.ts | 53 +- package.json | 1 - 18 files changed, 96 insertions(+), 3880 deletions(-) delete mode 100644 frontend/src/components/ntnu/NTNULogoImage.tsx delete mode 100644 frontend/src/components/theme-provider.tsx delete mode 100644 frontend/src/lib/strapi.ts delete mode 100644 frontend/src/types/strapi.ts diff --git a/frontend/package.json b/frontend/package.json index 5fad7fb..3edc0bc 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,8 +9,8 @@ "lint": "next lint", "prettierWrite": "npx prettier . --write", "prettierCheck": "npx prettier . --check", - "compile": "graphql-codegen", - "watch": " graphql-codegen -w" + "compileTypes": "graphql-codegen", + "watchTypes": " graphql-codegen -w" }, "dependencies": { "@apollo/client": "^3.9.0-alpha.5", diff --git a/frontend/src/app/globals.css b/frontend/src/app/globals.css index 2427c3e..dbee394 100644 --- a/frontend/src/app/globals.css +++ b/frontend/src/app/globals.css @@ -4,72 +4,52 @@ @layer base { :root { - --card: 0 0% 100%; - --card-foreground: 222.2 84% 4.9%; + /* Shadcn Colors */ - --popover: 0 0% 100%; - --popover-foreground: 222.2 84% 4.9%; + /* Background color for */ + --card: #000000; + --card-foreground: #ffffff; - --secondary: 210 40% 96.1%; - --secondary-foreground: 222.2 47.4% 11.2%; + /* Background color for popovers such as , , */ + --popover: #000000; + --popover-foreground: #ffffff; - --muted: 0 0% 96.08%; - --muted-foreground: 215.4 16.3% 46.9%; + /* Primary colors for