From 32feb92ca3c201cf8f32073f6e704e989f41b127 Mon Sep 17 00:00:00 2001 From: angkyakdifp <123062882+angkyakdifp@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:44:48 +0800 Subject: [PATCH] Add Navbar and Home Page (#6) Co-authored-by: Rafael Kristoforus Yanto <132446500+izruff@users.noreply.github.com> --- app/components/navbar.tsx | 25 +++++++++ app/layout.tsx | 2 + app/page.tsx | 115 +++----------------------------------- package-lock.json | 4 +- package.json | 17 ++++-- 5 files changed, 50 insertions(+), 113 deletions(-) create mode 100644 app/components/navbar.tsx diff --git a/app/components/navbar.tsx b/app/components/navbar.tsx new file mode 100644 index 0000000..d02cd00 --- /dev/null +++ b/app/components/navbar.tsx @@ -0,0 +1,25 @@ +import Link from 'next/link'; + +const Navbar = () => { + return ( + + ); +}; + +export default Navbar; \ No newline at end of file diff --git a/app/layout.tsx b/app/layout.tsx index 6ff776b..30da54e 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,6 +1,7 @@ import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; +import Navbar from "./components/navbar"; import { Suspense } from "react"; import ModalOverlay from "./components/modal-overlay"; import Link from "next/link"; @@ -20,6 +21,7 @@ export default function RootLayout({ return ( + {children} diff --git a/app/page.tsx b/app/page.tsx index 5705d4e..2252e43 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -2,112 +2,15 @@ import Image from "next/image"; export default function Home() { return ( -
-
-

- Get started by editing  - app/page.tsx -

-
- - By{" "} - Vercel Logo - -
-
- -
- Next.js Logo -
- -
- -

- Docs{" "} - - -> - -

-

- Find in-depth information about Next.js features and API. -

-
- - -

- Learn{" "} - - -> - -

-

- Learn about Next.js in an interactive course with quizzes! -

-
- - -

- Templates{" "} - - -> - -

-

- Explore starter templates for Next.js. -

-
- - -

- Deploy{" "} - - -> - -

-

- Instantly deploy your Next.js site to a shareable URL with Vercel. -

-
+
+
+

+ Coming Soon: NUANSA 2025 +

+
); -} +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 193db1a..1fccb19 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,8 +7,9 @@ "": { "name": "nuansa-web", "version": "0.1.0", + "license": "ISC", "dependencies": { - "next": "14.2.5", + "next": "^14.2.5", "react": "^18", "react-dom": "^18" }, @@ -3166,6 +3167,7 @@ "version": "14.2.5", "resolved": "https://registry.npmjs.org/next/-/next-14.2.5.tgz", "integrity": "sha512-0f8aRfBVL+mpzfBjYfQuLWh2WyAwtJXCRfkPF4UJ5qd2YwrHczsrSzXU4tRMV0OAxR8ZJZWPFn6uhSC56UTsLA==", + "license": "MIT", "dependencies": { "@next/env": "14.2.5", "@swc/helpers": "0.5.5", diff --git a/package.json b/package.json index 119c7c5..2d3ee28 100644 --- a/package.json +++ b/package.json @@ -9,18 +9,23 @@ "lint": "next lint" }, "dependencies": { + "next": "^14.2.5", "react": "^18", - "react-dom": "^18", - "next": "14.2.5" + "react-dom": "^18" }, "devDependencies": { - "typescript": "^5", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", + "eslint": "^8", + "eslint-config-next": "14.2.5", "postcss": "^8", "tailwindcss": "^3.4.1", - "eslint": "^8", - "eslint-config-next": "14.2.5" - } + "typescript": "^5" + }, + "description": "This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).", + "main": "index.js", + "keywords": [], + "author": "", + "license": "ISC" }