From 0fd0c273711220e8ed4b95e9b30f8e5b20486412 Mon Sep 17 00:00:00 2001 From: Manthan Mallikarjun Date: Sun, 24 Nov 2024 16:06:53 -0800 Subject: [PATCH] remove daisyui --- package.json | 1 - pnpm-lock.yaml | 47 -------------------------- src/app/_components/footer/index.tsx | 32 ------------------ src/app/_components/navbar/index.tsx | 50 ---------------------------- src/app/globals.css | 7 ---- src/app/layout.tsx | 4 --- tailwind.config.ts | 7 +--- 7 files changed, 1 insertion(+), 147 deletions(-) delete mode 100644 src/app/_components/footer/index.tsx delete mode 100644 src/app/_components/navbar/index.tsx diff --git a/package.json b/package.json index 23a965a..108cd7b 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "@types/react": "^18.3.10", "@types/react-dom": "^18.3.0", "concurrently": "^9.0.1", - "daisyui": "^4.12.10", "eslint": "^9.15.0", "husky": "^9.1.7", "lefthook": "^1.7.18", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4af3dc0..f28a046 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,9 +44,6 @@ importers: concurrently: specifier: ^9.0.1 version: 9.0.1 - daisyui: - specifier: ^4.12.10 - version: 4.12.10(postcss@8.4.47) eslint: specifier: ^9.15.0 version: 9.15.0(jiti@1.21.6) @@ -982,12 +979,6 @@ packages: } engines: { node: ">= 8" } - css-selector-tokenizer@0.8.0: - resolution: - { - integrity: sha512-Jd6Ig3/pe62/qe5SBPTN8h8LeUg/pT4lLgtavPf7updwwHpvFzxvOQBHYj2LZDMjUnBzgvIUSjRcf6oT5HzHFg==, - } - cssesc@3.0.0: resolution: { @@ -1002,20 +993,6 @@ packages: integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==, } - culori@3.3.0: - resolution: - { - integrity: sha512-pHJg+jbuFsCjz9iclQBqyL3B2HLCBF71BwVNujUYEvCeQMvV97R59MNK3R2+jgJ3a1fcZgI9B3vYgz8lzr/BFQ==, - } - engines: { node: ^12.20.0 || ^14.13.1 || >=16.0.0 } - - daisyui@4.12.10: - resolution: - { - integrity: sha512-jp1RAuzbHhGdXmn957Z2XsTZStXGHzFfF0FgIOZj3Wv9sH7OZgLfXTRZNfKVYxltGUOBsG1kbWAdF5SrqjebvA==, - } - engines: { node: ">=16.9.0" } - data-view-buffer@1.0.1: resolution: { @@ -1354,12 +1331,6 @@ packages: integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==, } - fastparse@1.1.2: - resolution: - { - integrity: sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ==, - } - fastq@1.17.1: resolution: { @@ -3776,26 +3747,10 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 - css-selector-tokenizer@0.8.0: - dependencies: - cssesc: 3.0.0 - fastparse: 1.1.2 - cssesc@3.0.0: {} csstype@3.1.3: {} - culori@3.3.0: {} - - daisyui@4.12.10(postcss@8.4.47): - dependencies: - css-selector-tokenizer: 0.8.0 - culori: 3.3.0 - picocolors: 1.1.0 - postcss-js: 4.0.1(postcss@8.4.47) - transitivePeerDependencies: - - postcss - data-view-buffer@1.0.1: dependencies: call-bind: 1.0.7 @@ -4100,8 +4055,6 @@ snapshots: fast-levenshtein@2.0.6: {} - fastparse@1.1.2: {} - fastq@1.17.1: dependencies: reusify: 1.0.4 diff --git a/src/app/_components/footer/index.tsx b/src/app/_components/footer/index.tsx deleted file mode 100644 index 3116e94..0000000 --- a/src/app/_components/footer/index.tsx +++ /dev/null @@ -1,32 +0,0 @@ -"use cache"; -import Link from "next/link"; - -export async function Footer() { - const year = new Date().getFullYear(); - - return ( -
-
-
- -
-
-
- ); -} diff --git a/src/app/_components/navbar/index.tsx b/src/app/_components/navbar/index.tsx deleted file mode 100644 index ae959df..0000000 --- a/src/app/_components/navbar/index.tsx +++ /dev/null @@ -1,50 +0,0 @@ -"use client"; - -import { HomeIcon, MenuIcon } from "lucide-react"; -import Link from "next/link"; -import { usePathname } from "next/navigation"; -import { twMerge } from "tailwind-merge"; - -export function Navbar() { - const pathname = usePathname(); - - const menu = ( - <> -
  • - - - Home - -
  • - - ); - - return ( -
    -
    -
    -
    - - TODO - -
    -
    -
    -
      {menu}
    -
    -
    -
    - - - -
      - {menu} -
    -
    -
    -
    -
    -
    -
    - ); -} diff --git a/src/app/globals.css b/src/app/globals.css index 14ace19..aa9c25f 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -16,10 +16,3 @@ @apply font-display; } } - -@layer components { - label:has(> input:required) .label-text::after { - content: " *"; - @apply text-error; - } -} diff --git a/src/app/layout.tsx b/src/app/layout.tsx index ad1bcb4..c1ac2ef 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,8 +1,6 @@ import type { Metadata } from "next"; import { Inter, Inter_Tight as InterTight } from "next/font/google"; import { twMerge } from "tailwind-merge"; -import { Footer } from "./_components/footer"; -import { Navbar } from "./_components/navbar"; import "./globals.css"; const inter = Inter({ @@ -32,9 +30,7 @@ export default function RootLayout({ className={twMerge(inter.variable, interTight.variable, "h-full")} > -
    {children}
    -