From 3c28f1da603246f90f120dfa326f2cb68c1c151c Mon Sep 17 00:00:00 2001 From: nguyenlam0306 Date: Wed, 17 Jan 2024 10:43:32 +0700 Subject: [PATCH 1/3] CheckSource --- package-lock.json | 4 ++-- src/app/(auth)/login/page.jsx | 6 +++++ src/app/about/page.jsx | 7 ++++++ src/app/admin/page.jsx | 6 +++++ src/app/blog/[slug]/layout.jsx | 9 ++++++++ src/app/blog/[slug]/page.jsx | 6 +++++ src/app/blog/page.jsx | 6 +++++ src/app/contact/page.jsx | 6 +++++ src/app/error.jsx | 6 +++++ src/app/globals.css | 9 ++++++++ src/app/layout.js | 21 ++++++++++------- src/app/loading.jsx | 5 ++++ src/app/not-found.jsx | 14 ++++++++++++ src/app/page.jsx | 2 +- src/components/footer/Footer.jsx | 5 ++++ src/components/navbar/Navbar.jsx | 15 ++++++++++++ src/components/navbar/links/Links.jsx | 33 +++++++++++++++++++++++++++ 17 files changed, 149 insertions(+), 11 deletions(-) create mode 100644 src/app/(auth)/login/page.jsx create mode 100644 src/app/about/page.jsx create mode 100644 src/app/admin/page.jsx create mode 100644 src/app/blog/[slug]/layout.jsx create mode 100644 src/app/blog/[slug]/page.jsx create mode 100644 src/app/blog/page.jsx create mode 100644 src/app/contact/page.jsx create mode 100644 src/app/error.jsx create mode 100644 src/app/loading.jsx create mode 100644 src/app/not-found.jsx create mode 100644 src/components/footer/Footer.jsx create mode 100644 src/components/navbar/Navbar.jsx create mode 100644 src/components/navbar/links/Links.jsx diff --git a/package-lock.json b/package-lock.json index d257486b3..d5bca6c14 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "next14githubstarter", + "name": "next14starter", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "next14githubstarter", + "name": "next14starter", "version": "0.1.0", "dependencies": { "next": "14.0.4", diff --git a/src/app/(auth)/login/page.jsx b/src/app/(auth)/login/page.jsx new file mode 100644 index 000000000..65cde80f2 --- /dev/null +++ b/src/app/(auth)/login/page.jsx @@ -0,0 +1,6 @@ +const LoginPage = () => { +return ( +
LoginPage
); + +} +export default LoginPage \ No newline at end of file diff --git a/src/app/about/page.jsx b/src/app/about/page.jsx new file mode 100644 index 000000000..facfda56c --- /dev/null +++ b/src/app/about/page.jsx @@ -0,0 +1,7 @@ +const AboutPage = () => { +return ( +
AboutPage
+ ); + +} +export default AboutPage \ No newline at end of file diff --git a/src/app/admin/page.jsx b/src/app/admin/page.jsx new file mode 100644 index 000000000..70cadc76a --- /dev/null +++ b/src/app/admin/page.jsx @@ -0,0 +1,6 @@ +const AdminPage = () => { +return ( +
AdminPage
); + +} +export default AdminPage \ No newline at end of file diff --git a/src/app/blog/[slug]/layout.jsx b/src/app/blog/[slug]/layout.jsx new file mode 100644 index 000000000..8d9bd1834 --- /dev/null +++ b/src/app/blog/[slug]/layout.jsx @@ -0,0 +1,9 @@ +const BlogLayout = ({children}) => { + return ( +
+

This is the Blog Layout

+ {children} +
+ ) + } + export default BlogLayout \ No newline at end of file diff --git a/src/app/blog/[slug]/page.jsx b/src/app/blog/[slug]/page.jsx new file mode 100644 index 000000000..e7c89c72d --- /dev/null +++ b/src/app/blog/[slug]/page.jsx @@ -0,0 +1,6 @@ +const SingleBlogPage = () => { + return ( +
SingleBlogPage
); + + } + export default SingleBlogPage \ No newline at end of file diff --git a/src/app/blog/page.jsx b/src/app/blog/page.jsx new file mode 100644 index 000000000..4d862e8e2 --- /dev/null +++ b/src/app/blog/page.jsx @@ -0,0 +1,6 @@ +const BlogPage = () => { +return ( +
BlogPage
); + +} +export default BlogPage \ No newline at end of file diff --git a/src/app/contact/page.jsx b/src/app/contact/page.jsx new file mode 100644 index 000000000..0cbfc4d57 --- /dev/null +++ b/src/app/contact/page.jsx @@ -0,0 +1,6 @@ +const ContactPage = () => { +return ( +
ContactPage
); + +} +export default ContactPage \ No newline at end of file diff --git a/src/app/error.jsx b/src/app/error.jsx new file mode 100644 index 000000000..c43992ca5 --- /dev/null +++ b/src/app/error.jsx @@ -0,0 +1,6 @@ +"use client" +const Error = () => { + return (
Error
); + } + + export default Error; \ No newline at end of file diff --git a/src/app/globals.css b/src/app/globals.css index e69de29bb..06d771909 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -0,0 +1,9 @@ +body { + background-color: black; + color: white; +} + +a { + text-decoration: none; + color: inherit; +} \ No newline at end of file diff --git a/src/app/layout.js b/src/app/layout.js index e680e139d..6126aa428 100644 --- a/src/app/layout.js +++ b/src/app/layout.js @@ -1,17 +1,22 @@ import { Inter } from 'next/font/google' import './globals.css' - +import Navbar from '@/components/navbar/Navbar' +import Footer from '@/components/footer/Footer' const inter = Inter({ subsets: ['latin'] }) export const metadata = { - title: 'Next App', - description: 'Next.js starter app', + title: 'Next App', + description: 'Next.js starter app', } export default function RootLayout({ children }) { - return ( - - {children} - - ) + return ( + + + + {children} +