Skip to content

Commit 91c0c23

Browse files
committed
feat: complete dark mode for home page
1 parent d4be5f6 commit 91c0c23

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

app/page.tsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ export default function Home() {
1717
const currentTools = tools.slice(indexOfFirstTool, indexOfLastTool)
1818

1919
return (
20-
<div className="min-h-screen bg-white">
20+
<div className="min-h-screen bg-white dark:bg-gray-900">
2121
{/* Hero Section */}
2222
<div className="container mx-auto px-4 py-20">
2323
<div className="text-center mb-16">
2424
<div className="inline-block mb-6">
25-
<Code2 className="w-20 h-20 text-black mx-auto" />
25+
<Code2 className="w-20 h-20 text-black dark:text-white mx-auto" />
2626
</div>
27-
<h1 className="text-6xl font-bold text-black mb-6">
27+
<h1 className="text-6xl font-bold text-black dark:text-white mb-6">
2828
IT Toolkit
2929
</h1>
3030
<div className="flex flex-col items-center justify-center gap-4 mb-6">
@@ -34,7 +34,7 @@ export default function Home() {
3434
duration={2500}
3535
/>
3636
</div>
37-
<p className="text-2xl text-gray-700 mb-8">
37+
<p className="text-2xl text-gray-700 dark:text-gray-300 mb-8">
3838
Bilgi İşlem Profesyonelleri için Pratik Araçlar
3939
</p>
4040
<div className="max-w-3xl mx-auto mb-12">
@@ -49,14 +49,14 @@ export default function Home() {
4949
href="https://github.com/ibidi"
5050
target="_blank"
5151
rel="noopener noreferrer"
52-
className="inline-flex items-center gap-2 bg-black text-white px-8 py-4 rounded-lg font-semibold hover:bg-gray-800 transition-colors"
52+
className="inline-flex items-center gap-2 bg-black dark:bg-white text-white dark:text-black px-8 py-4 rounded-lg font-semibold hover:bg-gray-800 dark:hover:bg-gray-200 transition-colors"
5353
>
5454
<Github size={20} />
5555
GitHub&apos;da Görüntüle
5656
</a>
5757
<Link
5858
href="#tools"
59-
className="inline-flex items-center gap-2 bg-white text-black border-2 border-black px-8 py-4 rounded-lg font-semibold hover:bg-gray-50 transition-colors"
59+
className="inline-flex items-center gap-2 bg-white dark:bg-gray-800 text-black dark:text-white border-2 border-black dark:border-white px-8 py-4 rounded-lg font-semibold hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors"
6060
>
6161
Araçları Keşfet
6262
<ArrowRight size={20} />
@@ -66,7 +66,7 @@ export default function Home() {
6666

6767
{/* Featured Tools */}
6868
<div id="tools">
69-
<h2 className="text-4xl font-bold text-black text-center mb-12">
69+
<h2 className="text-4xl font-bold text-black dark:text-white text-center mb-12">
7070
Tüm Araçlar
7171
</h2>
7272

@@ -75,23 +75,23 @@ export default function Home() {
7575
<Link
7676
key={tool.id}
7777
href={`/tool/${tool.id}`}
78-
className="group bg-white rounded-xl p-6 border-2 border-black hover:bg-black hover:text-white transition-all"
78+
className="group bg-white dark:bg-gray-800 rounded-xl p-6 border-2 border-black dark:border-white hover:bg-black dark:hover:bg-white hover:text-white dark:hover:text-black transition-all"
7979
>
8080
<div className="flex items-start justify-between mb-4">
8181
<div>
82-
<h3 className="text-xl font-bold text-black group-hover:text-white mb-2">
82+
<h3 className="text-xl font-bold text-black dark:text-white group-hover:text-white dark:group-hover:text-black mb-2">
8383
{tool.name}
8484
</h3>
85-
<span className="text-xs px-3 py-1 bg-gray-200 group-hover:bg-gray-700 text-black group-hover:text-white rounded-full">
85+
<span className="text-xs px-3 py-1 bg-gray-200 dark:bg-gray-700 group-hover:bg-gray-700 dark:group-hover:bg-gray-200 text-black dark:text-white group-hover:text-white dark:group-hover:text-black rounded-full">
8686
{tool.language}
8787
</span>
8888
</div>
8989
<span className="text-3xl">{categories[tool.category].icon}</span>
9090
</div>
91-
<p className="text-gray-600 group-hover:text-gray-300 text-sm mb-4 line-clamp-2">
91+
<p className="text-gray-600 dark:text-gray-400 group-hover:text-gray-300 dark:group-hover:text-gray-600 text-sm mb-4 line-clamp-2">
9292
{tool.description}
9393
</p>
94-
<div className="flex items-center text-sm font-medium text-black group-hover:text-white">
94+
<div className="flex items-center text-sm font-medium text-black dark:text-white group-hover:text-white dark:group-hover:text-black">
9595
Detayları Gör
9696
<ArrowRight className="ml-2 group-hover:translate-x-2 transition-transform" size={16} />
9797
</div>
@@ -105,7 +105,7 @@ export default function Home() {
105105
<button
106106
onClick={() => setCurrentPage(prev => Math.max(prev - 1, 1))}
107107
disabled={currentPage === 1}
108-
className="p-2 rounded-lg border-2 border-black text-black disabled:opacity-30 disabled:cursor-not-allowed hover:bg-black hover:text-white transition-colors"
108+
className="p-2 rounded-lg border-2 border-black dark:border-white text-black dark:text-white disabled:opacity-30 disabled:cursor-not-allowed hover:bg-black dark:hover:bg-white hover:text-white dark:hover:text-black transition-colors"
109109
>
110110
<ChevronLeft size={20} className="stroke-current" />
111111
</button>
@@ -114,10 +114,10 @@ export default function Home() {
114114
<button
115115
key={page}
116116
onClick={() => setCurrentPage(page)}
117-
className={`px-4 py-2 rounded-lg border-2 border-black font-semibold transition-colors ${
117+
className={`px-4 py-2 rounded-lg border-2 border-black dark:border-white font-semibold transition-colors ${
118118
currentPage === page
119-
? 'bg-black text-white'
120-
: 'bg-white text-black hover:bg-gray-100'
119+
? 'bg-black dark:bg-white text-white dark:text-black'
120+
: 'bg-white dark:bg-gray-800 text-black dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700'
121121
}`}
122122
>
123123
{page}
@@ -127,7 +127,7 @@ export default function Home() {
127127
<button
128128
onClick={() => setCurrentPage(prev => Math.min(prev + 1, totalPages))}
129129
disabled={currentPage === totalPages}
130-
className="p-2 rounded-lg border-2 border-black text-black disabled:opacity-30 disabled:cursor-not-allowed hover:bg-black hover:text-white transition-colors"
130+
className="p-2 rounded-lg border-2 border-black dark:border-white text-black dark:text-white disabled:opacity-30 disabled:cursor-not-allowed hover:bg-black dark:hover:bg-white hover:text-white dark:hover:text-black transition-colors"
131131
>
132132
<ChevronRight size={20} className="stroke-current" />
133133
</button>

0 commit comments

Comments
 (0)