From b0270874aff894082e699218b67711053a903edd Mon Sep 17 00:00:00 2001 From: Ourai Lin Date: Thu, 12 Sep 2024 03:06:44 +0800 Subject: [PATCH] chore(site): move `globals.css` into `shared` --- .knosys/sites/default/package.json | 3 +-- .knosys/sites/default/src/app/layout.tsx | 3 ++- .knosys/sites/default/src/app/page.tsx | 1 + .knosys/sites/default/src/{app => shared/styles}/globals.css | 0 .knosys/sites/default/tsconfig.json | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) rename .knosys/sites/default/src/{app => shared/styles}/globals.css (100%) diff --git a/.knosys/sites/default/package.json b/.knosys/sites/default/package.json index d770824ce..604445464 100644 --- a/.knosys/sites/default/package.json +++ b/.knosys/sites/default/package.json @@ -21,7 +21,6 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint", - "gen": "next export" + "lint": "next lint" } } diff --git a/.knosys/sites/default/src/app/layout.tsx b/.knosys/sites/default/src/app/layout.tsx index 5dcf8b65c..9ae6139d4 100644 --- a/.knosys/sites/default/src/app/layout.tsx +++ b/.knosys/sites/default/src/app/layout.tsx @@ -1,5 +1,6 @@ import type { Metadata } from "next"; -import "./globals.css"; + +import "@/styles/globals.css"; export const metadata: Metadata = { title: 'OpenBuild Web3 前端训练营', diff --git a/.knosys/sites/default/src/app/page.tsx b/.knosys/sites/default/src/app/page.tsx index 01f97a19e..fa5f7ce7e 100644 --- a/.knosys/sites/default/src/app/page.tsx +++ b/.knosys/sites/default/src/app/page.tsx @@ -1,4 +1,5 @@ import Image from "next/image"; + import poster from './poster.jpg'; export default function Home() { diff --git a/.knosys/sites/default/src/app/globals.css b/.knosys/sites/default/src/shared/styles/globals.css similarity index 100% rename from .knosys/sites/default/src/app/globals.css rename to .knosys/sites/default/src/shared/styles/globals.css diff --git a/.knosys/sites/default/tsconfig.json b/.knosys/sites/default/tsconfig.json index 7b2858930..0590f281b 100644 --- a/.knosys/sites/default/tsconfig.json +++ b/.knosys/sites/default/tsconfig.json @@ -18,7 +18,7 @@ } ], "paths": { - "@/*": ["./src/*"] + "@/*": ["./src/shared/*"] } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],