Skip to content

Commit d2e0d69

Browse files
committed
add
1 parent c6c1662 commit d2e0d69

File tree

8 files changed

+3489
-10812
lines changed

8 files changed

+3489
-10812
lines changed

components/Footer.js

Lines changed: 46 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -35,43 +35,35 @@ export default function Footer() {
3535
<h4 className="text-lg font-semibold mb-6 text-white">Learning Path</h4>
3636
<ul className="space-y-3">
3737
<li>
38-
<Link href="/courses">
39-
<a className="text-gray-400 hover:text-white transition-colors flex items-center">
40-
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
41-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
42-
</svg>
43-
Learn Golang
44-
</a>
38+
<Link href="/courses" className="text-gray-400 hover:text-white transition-colors flex items-center">
39+
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
40+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
41+
</svg>
42+
Learn Golang
4543
</Link>
4644
</li>
4745
<li>
48-
<Link href="/projects">
49-
<a className="text-gray-400 hover:text-white transition-colors flex items-center">
50-
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
51-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
52-
</svg>
53-
Golang Projects
54-
</a>
46+
<Link href="/projects" className="text-gray-400 hover:text-white transition-colors flex items-center">
47+
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
48+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
49+
</svg>
50+
Golang Projects
5551
</Link>
5652
</li>
5753
<li>
58-
<Link href="/tutorials">
59-
<a className="text-gray-400 hover:text-white transition-colors flex items-center">
60-
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
61-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
62-
</svg>
63-
Tutorials
64-
</a>
54+
<Link href="/tutorials" className="text-gray-400 hover:text-white transition-colors flex items-center">
55+
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
56+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
57+
</svg>
58+
Tutorials
6559
</Link>
6660
</li>
6761
<li>
68-
<Link href="/roadmap">
69-
<a className="text-gray-400 hover:text-white transition-colors flex items-center">
70-
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
71-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
72-
</svg>
73-
Learning Roadmap
74-
</a>
62+
<Link href="/roadmap" className="text-gray-400 hover:text-white transition-colors flex items-center">
63+
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
64+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
65+
</svg>
66+
Learning Roadmap
7567
</Link>
7668
</li>
7769
</ul>
@@ -80,43 +72,35 @@ export default function Footer() {
8072
<h4 className="text-lg font-semibold mb-6 text-white">Resources</h4>
8173
<ul className="space-y-3">
8274
<li>
83-
<Link href="/playground">
84-
<a className="text-gray-400 hover:text-white transition-colors flex items-center">
85-
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
86-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
87-
</svg>
88-
Golang Playground
89-
</a>
75+
<Link href="/playground" className="text-gray-400 hover:text-white transition-colors flex items-center">
76+
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
77+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
78+
</svg>
79+
Golang Playground
9080
</Link>
9181
</li>
9282
<li>
93-
<Link href="/cheatsheet">
94-
<a className="text-gray-400 hover:text-white transition-colors flex items-center">
95-
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
96-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
97-
</svg>
98-
Golang Cheat Sheet
99-
</a>
83+
<Link href="/cheatsheet" className="text-gray-400 hover:text-white transition-colors flex items-center">
84+
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
85+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
86+
</svg>
87+
Golang Cheat Sheet
10088
</Link>
10189
</li>
10290
<li>
103-
<Link href="/forum">
104-
<a className="text-gray-400 hover:text-white transition-colors flex items-center">
105-
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
106-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
107-
</svg>
108-
Community Forum
109-
</a>
91+
<Link href="/forum" className="text-gray-400 hover:text-white transition-colors flex items-center">
92+
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
93+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
94+
</svg>
95+
Community Forum
11096
</Link>
11197
</li>
11298
<li>
113-
<Link href="/blog">
114-
<a className="text-gray-400 hover:text-white transition-colors flex items-center">
115-
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
116-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
117-
</svg>
118-
Blog
119-
</a>
99+
<Link href="/blog" className="text-gray-400 hover:text-white transition-colors flex items-center">
100+
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
101+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
102+
</svg>
103+
Blog
120104
</Link>
121105
</li>
122106
</ul>
@@ -143,14 +127,14 @@ export default function Footer() {
143127
<div className="flex flex-col md:flex-row justify-between items-center">
144128
<p>© {new Date().getFullYear()} GolangMastery. All rights reserved.</p>
145129
<div className="flex space-x-6 mt-4 md:mt-0">
146-
<Link href="/privacy">
147-
<a className="text-gray-500 hover:text-gray-300 transition-colors">Privacy Policy</a>
130+
<Link href="/privacy" className="text-gray-500 hover:text-gray-300 transition-colors">
131+
Privacy Policy
148132
</Link>
149-
<Link href="/terms">
150-
<a className="text-gray-500 hover:text-gray-300 transition-colors">Terms of Service</a>
133+
<Link href="/terms" className="text-gray-500 hover:text-gray-300 transition-colors">
134+
Terms of Service
151135
</Link>
152-
<Link href="/contact">
153-
<a className="text-gray-500 hover:text-gray-300 transition-colors">Contact Us</a>
136+
<Link href="/contact" className="text-gray-500 hover:text-gray-300 transition-colors">
137+
Contact Us
154138
</Link>
155139
</div>
156140
</div>

components/Header.js

Lines changed: 29 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -26,46 +26,37 @@ export default function Header() {
2626
<header className={`sticky top-0 z-50 bg-white ${isScrolled ? 'shadow-md' : 'shadow-sm'} transition-shadow duration-300`}>
2727
<div className="container mx-auto px-4 py-4">
2828
<div className="flex justify-between items-center">
29-
<Link href="/">
30-
<a className="flex items-center space-x-2 group">
31-
<div className="w-10 h-10 bg-blue-600 rounded-lg flex items-center justify-center text-white font-bold text-xl group-hover:bg-blue-700 transition-colors">G</div>
32-
<div className="font-bold text-xl text-gray-800 group-hover:text-blue-600 transition-colors">GolangMastery</div>
33-
</a>
29+
<Link href="/" className="flex items-center space-x-2 group">
30+
<div className="w-10 h-10 bg-blue-600 rounded-lg flex items-center justify-center text-white font-bold text-xl group-hover:bg-blue-700 transition-colors">G</div>
31+
<div className="font-bold text-xl text-gray-800 group-hover:text-blue-600 transition-colors">GolangMastery</div>
3432
</Link>
3533

3634
{/* Desktop Navigation */}
3735
<nav className="hidden md:flex items-center space-x-8">
38-
<Link href="/courses">
39-
<a className={`font-medium ${isActive('/courses')
36+
<Link href="/courses"
37+
className={`font-medium ${isActive('/courses')
4038
? 'text-blue-600'
4139
: 'text-gray-600 hover:text-blue-600'} transition-colors`}>
42-
Learn
43-
</a>
40+
Learn
4441
</Link>
45-
<Link href="/projects">
46-
<a className={`font-medium ${isActive('/projects')
42+
<Link href="/projects"
43+
className={`font-medium ${isActive('/projects')
4744
? 'text-blue-600'
4845
: 'text-gray-600 hover:text-blue-600'} transition-colors`}>
49-
Projects
50-
</a>
46+
Projects
5147
</Link>
52-
<Link href="/pricing">
53-
<a className={`font-medium ${isActive('/pricing')
48+
<Link href="/pricing"
49+
className={`font-medium ${isActive('/pricing')
5450
? 'text-blue-600'
5551
: 'text-gray-600 hover:text-blue-600'} transition-colors`}>
56-
Pricing
57-
</a>
52+
Pricing
5853
</Link>
5954
<div className="flex items-center space-x-4 ml-4">
60-
<Link href="/login">
61-
<a className="text-gray-600 hover:text-blue-600 font-medium transition-colors">
62-
Log In
63-
</a>
55+
<Link href="/login" className="text-gray-600 hover:text-blue-600 font-medium transition-colors">
56+
Log In
6457
</Link>
65-
<Link href="/register">
66-
<a className="bg-blue-600 text-white px-5 py-2 rounded-md hover:bg-blue-700 transition-colors font-medium shadow-sm hover:shadow">
67-
Join For Free
68-
</a>
58+
<Link href="/register" className="bg-blue-600 text-white px-5 py-2 rounded-md hover:bg-blue-700 transition-colors font-medium shadow-sm hover:shadow">
59+
Join For Free
6960
</Link>
7061
</div>
7162
</nav>
@@ -90,44 +81,37 @@ export default function Header() {
9081
<nav className="md:hidden mt-4 py-4 border-t border-gray-200">
9182
<ul className="space-y-4">
9283
<li>
93-
<Link href="/courses">
94-
<a className={`block font-medium ${isActive('/courses')
84+
<Link href="/courses"
85+
className={`block font-medium ${isActive('/courses')
9586
? 'text-blue-600'
9687
: 'text-gray-600 hover:text-blue-600'} transition-colors`}>
97-
Learn
98-
</a>
88+
Learn
9989
</Link>
10090
</li>
10191
<li>
102-
<Link href="/projects">
103-
<a className={`block font-medium ${isActive('/projects')
92+
<Link href="/projects"
93+
className={`block font-medium ${isActive('/projects')
10494
? 'text-blue-600'
10595
: 'text-gray-600 hover:text-blue-600'} transition-colors`}>
106-
Projects
107-
</a>
96+
Projects
10897
</Link>
10998
</li>
11099
<li>
111-
<Link href="/pricing">
112-
<a className={`block font-medium ${isActive('/pricing')
100+
<Link href="/pricing"
101+
className={`block font-medium ${isActive('/pricing')
113102
? 'text-blue-600'
114103
: 'text-gray-600 hover:text-blue-600'} transition-colors`}>
115-
Pricing
116-
</a>
104+
Pricing
117105
</Link>
118106
</li>
119107
<li className="pt-4 border-t border-gray-100">
120-
<Link href="/login">
121-
<a className="block text-gray-600 hover:text-blue-600 font-medium transition-colors">
122-
Log In
123-
</a>
108+
<Link href="/login" className="block text-gray-600 hover:text-blue-600 font-medium transition-colors">
109+
Log In
124110
</Link>
125111
</li>
126112
<li className="pt-2">
127-
<Link href="/register">
128-
<a className="block bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition-colors font-medium text-center shadow-sm">
129-
Join For Free
130-
</a>
113+
<Link href="/register" className="block bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition-colors font-medium text-center shadow-sm">
114+
Join For Free
131115
</Link>
132116
</li>
133117
</ul>

next.config.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ const nextConfig = {
1212
unoptimized: true,
1313
dangerouslyAllowSVG: true,
1414
},
15+
// For static site export
1516
output: 'export',
16-
// If your repository name is 'golangmastery.githhub.io', basePath and assetPrefix are usually not needed
17-
// when deploying to USERNAME.github.io/REPOSITORY_NAME if REPOSITORY_NAME is the same as in the URL.
18-
// However, if deploying to a custom domain or the root USERNAME.github.io, they are not needed.
17+
// Remove these if not needed for your deployment
1918
// assetPrefix: process.env.NODE_ENV === 'production' ? '/golangmastery.githhub.io' : undefined,
2019
// basePath: process.env.NODE_ENV === 'production' ? '/golangmastery.githhub.io' : undefined,
2120
};

0 commit comments

Comments
 (0)