Skip to content

Commit 22e60c8

Browse files
authored
Merge pull request #70 from 1234-ad/fix/footer-on-all-pages
Fix: Display footer on all pages
2 parents 5efe993 + ebeb6b9 commit 22e60c8

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

src/App.tsx

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -89,33 +89,31 @@ function App() {
8989
</main>
9090

9191
{/* Footer */}
92-
{currentPage === 'home' && (
93-
<footer className="bg-gray-900 text-white py-12">
94-
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
95-
<div className="flex items-center justify-center mb-6">
96-
<div className="bg-gradient-to-r from-purple-600 to-blue-600 text-white p-2 rounded-lg mr-3">
97-
<span className="font-bold text-xl">CT</span>
98-
</div>
99-
<div>
100-
<h3 className="text-xl font-bold">Can I Try This?</h3>
101-
<p className="text-gray-400 text-sm">Real Challenges, Real Skills</p>
102-
</div>
103-
</div>
104-
<p className="text-gray-400 mb-6 max-w-2xl mx-auto">
105-
A safe space to explore real-world challenges in design, development, writing, data, and more.
106-
</p>
107-
<div className="flex justify-center space-x-6 mb-8">
108-
<button onClick={() => handleNavigate('challenges')} className="text-gray-400 hover:text-white transition-colors">Challenges</button>
109-
<button onClick={() => handleNavigate('projects')} className="text-gray-400 hover:text-white transition-colors">Projects</button>
110-
<button onClick={() => handleNavigate('blog')} className="text-gray-400 hover:text-white transition-colors">Blog</button>
111-
<button onClick={() => handleNavigate('community')} className="text-gray-400 hover:text-white transition-colors">Community</button>
92+
<footer className="bg-gray-900 text-white py-12">
93+
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
94+
<div className="flex items-center justify-center mb-6">
95+
<div className="bg-gradient-to-r from-purple-600 to-blue-600 text-white p-2 rounded-lg mr-3">
96+
<span className="font-bold text-xl">CT</span>
11297
</div>
113-
<div className="border-t border-gray-800 pt-8 text-gray-400">
114-
<p>&copy; 2024 Can I Try This? All rights reserved.</p>
98+
<div>
99+
<h3 className="text-xl font-bold">Can I Try This?</h3>
100+
<p className="text-gray-400 text-sm">Real Challenges, Real Skills</p>
115101
</div>
116102
</div>
117-
</footer>
118-
)}
103+
<p className="text-gray-400 mb-6 max-w-2xl mx-auto">
104+
A safe space to explore real-world challenges in design, development, writing, data, and more.
105+
</p>
106+
<div className="flex justify-center space-x-6 mb-8">
107+
<button onClick={() => handleNavigate('challenges')} className="text-gray-400 hover:text-white transition-colors">Challenges</button>
108+
<button onClick={() => handleNavigate('projects')} className="text-gray-400 hover:text-white transition-colors">Projects</button>
109+
<button onClick={() => handleNavigate('blog')} className="text-gray-400 hover:text-white transition-colors">Blog</button>
110+
<button onClick={() => handleNavigate('community')} className="text-gray-400 hover:text-white transition-colors">Community</button>
111+
</div>
112+
<div className="border-t border-gray-800 pt-8 text-gray-400">
113+
<p>&copy; 2024 Can I Try This? All rights reserved.</p>
114+
</div>
115+
</div>
116+
</footer>
119117
<ScrollToTop />
120118
</div>
121119
</ThemeProvider>

0 commit comments

Comments
 (0)