From 401cac087e71eaf2b0bef5623134c8e03f42e8b6 Mon Sep 17 00:00:00 2001 From: sabotack Date: Sat, 23 Mar 2024 16:32:30 +0100 Subject: [PATCH 1/5] Cleanup project structure and add shadcn --- .github/workflows/main.yml | 3 + components.json | 17 +++ index.html | 6 + package-lock.json | 234 +++++++++++++++++------------- package.json | 10 +- src/App.tsx | 26 ++++ src/components/Navbar.tsx | 55 ++----- src/components/index.tsx | 5 +- src/components/theme-provider.tsx | 74 ++++++++++ src/constants/index.ts | 17 +++ src/containers/Header.tsx | 19 +++ src/containers/Hero.tsx | 14 ++ src/containers/index.tsx | 4 + src/index.css | 79 ++++++++++ src/lib/utils.ts | 6 + src/main.css | 56 ------- src/main.tsx | 24 +-- src/pages/About/About.tsx | 12 -- src/pages/About/index.tsx | 1 - src/pages/Home/Home.tsx | 25 ---- src/pages/Home/index.tsx | 1 - src/pages/Projects/Projects.tsx | 12 -- src/pages/Projects/index.tsx | 1 - tailwind.config.js | 163 +++++++++++++++++++-- tsconfig.json | 8 +- vite.config.ts | 6 + 26 files changed, 594 insertions(+), 284 deletions(-) create mode 100644 components.json create mode 100644 src/App.tsx create mode 100644 src/components/theme-provider.tsx create mode 100644 src/constants/index.ts create mode 100644 src/containers/Header.tsx create mode 100644 src/containers/Hero.tsx create mode 100644 src/containers/index.tsx create mode 100644 src/index.css create mode 100644 src/lib/utils.ts delete mode 100644 src/main.css delete mode 100644 src/pages/About/About.tsx delete mode 100644 src/pages/About/index.tsx delete mode 100644 src/pages/Home/Home.tsx delete mode 100644 src/pages/Home/index.tsx delete mode 100644 src/pages/Projects/Projects.tsx delete mode 100644 src/pages/Projects/index.tsx diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e9cad1a..39ea05e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,9 @@ name: Code Quality Checks on: + push: + branches: + - main pull_request: branches: - main diff --git a/components.json b/components.json new file mode 100644 index 0000000..b59e77e --- /dev/null +++ b/components.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "default", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "tailwind.config.js", + "css": "src/index.css", + "baseColor": "zinc", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils" + } +} diff --git a/index.html b/index.html index 84cb5f7..b765bd2 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,12 @@ + + +