Skip to content

Commit e4438d0

Browse files
committed
[Refactor]: layout and page components to use Next.js 13 progress bar
1 parent 1ee7084 commit e4438d0

File tree

5 files changed

+71
-15
lines changed

5 files changed

+71
-15
lines changed

app/layout.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Inter } from "next/font/google";
33
import "./globals.css";
44
import { Analytics } from "@vercel/analytics/react"
55
import NotificationComponent from "@/components/commons/Notification";
6+
import { Next13NProgress, Link } from "nextjs13-progress";
67

78
const inter = Inter({ subsets: ["latin"] });
89

@@ -34,6 +35,8 @@ export default function RootLayout({
3435
return (
3536
<html lang="en">
3637
<body className={inter.className}>
38+
{/* light green */}
39+
<Next13NProgress color="#10B981" height={5} />
3740
<header className="w-full shadow-md flex items-center justify-between px-4 py-6">
3841
<h1 className="text-lg font-semibold">
3942
QuickCv
@@ -62,10 +65,10 @@ export default function RootLayout({
6265
<nav>
6366
<ul className="flex space-x-4">
6467
<li>
65-
<a href="/about">About</a>
68+
<Link href="/about">About</Link>
6669
</li>
6770
<li>
68-
<a href="/contact">Contact</a>
71+
<Link href="/contact">Contact</Link>
6972
</li>
7073
</ul>
7174
</nav>

app/page.tsx

+36-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,43 @@
1+
import { Inter } from "next/font/google";
2+
import { Link } from "nextjs13-progress";
13

2-
import ResumeBuilder from '../components/resume-builder/ResumeBuilder';
3-
4-
4+
const inter = Inter({ subsets: ["latin"] });
55

66
export default function Home() {
7-
8-
// if path is not /resume-generator redirect to /resume-generator
9-
107
return (
11-
<main className="flex min-h-[200svh] sm:min-h-screen justify-start sm:justify-center px-4 py-2 gap-4 pb-4 flex-col sm:flex-row">
12-
<ResumeBuilder />
8+
<main className="flex min-h-[200svh] sm:min-h-screen justify-start sm:justify-center px-4 py-2 gap-4 pb-4 flex-col sm:flex-row">
9+
<section className="flex flex-col justify-center items-start max-w-2xl mx-auto">
10+
<h1 className="text-4xl font-bold mb-4">Welcome to QuickCv</h1>
11+
<p className="text-lg mb-6">
12+
QuickCv is a simple AI-powered CV builder designed to help you create
13+
an ATS-friendly resume in minutes. Whether you're a fresh graduate or
14+
a seasoned professional, our tool makes it easy to showcase your
15+
skills and experience.
16+
</p>
17+
<h2 className="text-2xl font-semibold mb-2">Features:</h2>
18+
<ul className="list-disc list-inside mb-6">
19+
<li>Create a resume in just a few clicks</li>
20+
<li>ATS-friendly design for better job application success</li>
21+
<li>Auto-save feature to keep your progress</li>
22+
<li>
23+
Multiple sections for personal information, education, work
24+
experience, and more
25+
</li>
26+
<li>Print and download options in PDF format</li>
27+
</ul>
28+
<h2 className="text-2xl font-semibold mb-2">Why Choose QuickCv?</h2>
29+
<p className="mb-6">
30+
Our user-friendly interface and AI assistance make resume building
31+
effortless, allowing you to focus on what truly matters - landing your
32+
dream job!
33+
</p>
34+
<Link
35+
href="/resume-generator"
36+
className="bg-green-500 text-white px-4 py-2 rounded-md hover:bg-green-600 transition duration-200"
37+
>
38+
Start Building Your Resume
39+
</Link>
40+
</section>
1341
</main>
1442
);
1543
}

next.config.mjs

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ const nextConfig = {
77
},
88
async redirects() {
99
return [
10-
{
11-
source: '/',
12-
destination: '/resume-generator',
13-
permanent: true,
14-
},
10+
1511
]
1612
}
1713
};

package-lock.json

+28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"highlight.js": "^11.10.0",
1818
"iconsax-react": "^0.0.8",
1919
"next": "^14.2.12",
20+
"nextjs13-progress": "^1.3.3",
2021
"react": "^18",
2122
"react-accessible-accordion": "^5.0.0",
2223
"react-dom": "^18",

0 commit comments

Comments
 (0)