Skip to content

Commit 2b501f8

Browse files
committed
fixed the visiblity issues
1 parent 035b782 commit 2b501f8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/pages/More.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@ const MorePage: React.FC = () => {
151151
Back to Home
152152
</motion.button>
153153
</Link>
154-
<h2 className="text-3xl font-bold border-b-2 border-red-500 pb-2">
154+
<h2 className="text-3xl font-bold border-b-2 border-red-500 pb-2 text-gray-900 dark:text-gray-100">
155155
{page ? page.title : 'Page Not Found'}
156156
</h2>
157157
</div>
158158

159159
<div className="flex flex-col md:flex-row gap-8">
160160
{/* Sidebar Navigation */}
161161
<div className="md:w-1/4">
162-
<div className="bg-gray-50 p-4 rounded-lg shadow-md">
162+
<div className="bg-gray-50 dark:bg-gray-800 p-4 rounded-lg shadow-md">
163163
{/* Category Navigation */}
164164
<div className="mb-6">
165165
<h3 className="font-bold text-xl mb-2">Categories</h3>
@@ -171,7 +171,7 @@ const MorePage: React.FC = () => {
171171
className={`px-3 py-1 rounded-full text-sm ${
172172
activeCategory === category
173173
? 'bg-blue-600 text-white'
174-
: 'bg-gray-200 text-gray-700 hover:bg-gray-300'
174+
: 'bg-gray-200 text-gray-700 hover:bg-gray-300 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600'
175175
}`}
176176
>
177177
{category}
@@ -191,10 +191,10 @@ const MorePage: React.FC = () => {
191191
<li key={linkPage.slug}>
192192
<Link
193193
to={`/more/${linkPage.slug}`}
194-
className={`block p-2 rounded hover:bg-gray-100 transition ${
194+
className={`block p-2 rounded hover:bg-gray-100 dark:hover:bg-gray-700 transition ${
195195
linkPage.slug === page?.slug
196-
? 'bg-red-100 text-red-600 font-medium'
197-
: 'text-gray-700'
196+
? 'bg-red-100 text-red-600 font-medium dark:bg-red-900/40 dark:text-red-300'
197+
: 'text-gray-700 dark:text-gray-300'
198198
}`}
199199
>
200200
{linkPage.title}
@@ -213,7 +213,7 @@ const MorePage: React.FC = () => {
213213
transition={{ duration: 0.5 }}
214214
key={page?.slug}
215215
>
216-
<div className="bg-white rounded-lg shadow-md p-6">
216+
<div className="bg-white dark:bg-gray-900 rounded-lg shadow-md p-6 text-gray-900 dark:text-gray-100">
217217
{page ? (
218218
<div className="prose prose-lg max-w-none">
219219
<MarkdownRenderer

0 commit comments

Comments
 (0)