diff --git a/.vscode/settings.json b/.vscode/settings.json index 1095b25..860f8ff 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,16 @@ { "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.fixAll": "always" + "source.fixAll": "always", + "source.organizeImports": "always" + }, + "files.associations": { + "*.css": "tailwindcss" + }, + "typescript.tsdk": "node_modules\\typescript\\lib", + "workbench.editor.customLabels.patterns": { + "**/src/app/**/page.tsx": "${dirname} - Page", + "**/src/app/**/layout.tsx": "${dirname} - Layout", + "**/src/components/**/index.tsx": "${dirname} - Component" } } diff --git a/next.config.mjs b/next.config.mjs index 4678774..08e7827 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,8 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + experimental: { + typedRoutes: true, + }, +}; export default nextConfig; diff --git a/package.json b/package.json index 2b119b9..7ed34c7 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev", + "dev": "next dev -p 30001", "build": "next build", "start": "next start", "lint": "next lint", diff --git a/src/app/favicon.ico b/src/app/favicon.ico deleted file mode 100644 index 718d6fe..0000000 Binary files a/src/app/favicon.ico and /dev/null differ diff --git a/src/app/fonts/GeistMonoVF.woff b/src/app/fonts/GeistMonoVF.woff deleted file mode 100644 index f2ae185..0000000 Binary files a/src/app/fonts/GeistMonoVF.woff and /dev/null differ diff --git a/src/app/fonts/GeistVF.woff b/src/app/fonts/GeistVF.woff deleted file mode 100644 index 1b62daa..0000000 Binary files a/src/app/fonts/GeistVF.woff and /dev/null differ diff --git a/src/app/globals.css b/src/app/globals.css index 13d40b8..b5c61c9 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,27 +1,3 @@ @tailwind base; @tailwind components; @tailwind utilities; - -:root { - --background: #ffffff; - --foreground: #171717; -} - -@media (prefers-color-scheme: dark) { - :root { - --background: #0a0a0a; - --foreground: #ededed; - } -} - -body { - color: var(--foreground); - background: var(--background); - font-family: Arial, Helvetica, sans-serif; -} - -@layer utilities { - .text-balance { - text-wrap: balance; - } -} diff --git a/src/app/layout.tsx b/src/app/layout.tsx index c4caa13..df6fbe0 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,33 +1,11 @@ import type { Metadata } from "next"; -import localFont from "next/font/local"; - -import Example from "@/components/example"; +import { Suspense } from "react"; import "./globals.css"; -[].forEach((item) => { - console.log(item); -}); - -const firstName = "cj"; -const lastName = "patoilo"; -const fullName = `${firstName} ${lastName}`; -console.log(fullName); - -const geistSans = localFont({ - src: "./fonts/GeistVF.woff", - variable: "--font-geist-sans", - weight: "100 900", -}); -const geistMono = localFont({ - src: "./fonts/GeistMonoVF.woff", - variable: "--font-geist-mono", - weight: "100 900", -}); - export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: "Next.js Starter App", + description: "A basic starter for next.js", }; export default function RootLayout({ @@ -36,12 +14,15 @@ export default function RootLayout({ children: React.ReactNode; }>) { return ( - - - {children} - + + + + + + {children} ); diff --git a/src/app/page.tsx b/src/app/page.tsx index a7bfc6a..1260095 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,101 +1,3 @@ -import Image from "next/image"; - -export default function Home() { - return ( -
-
- Next.js logo -
    -
  1. - Get started by editing{" "} - - src/app/page.tsx - - . -
  2. -
  3. Save and see your changes instantly.
  4. -
- -
- - Vercel logomark - Deploy now - - - Read our docs - -
-
- -
- ); +export default async function Home() { + return

A simple starter for Next.js

; } diff --git a/src/components/ExampleThing.tsx b/src/components/ExampleThing.tsx deleted file mode 100644 index 7b045c4..0000000 --- a/src/components/ExampleThing.tsx +++ /dev/null @@ -1,3 +0,0 @@ -export default function Example() { - return

Example

; -}