Skip to content

Commit 884bdc1

Browse files
fixes text visibilty in dark mode
1 parent 035b782 commit 884bdc1

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

src/pages/More.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const MorePage: React.FC = () => {
132132
className="text-blue-600 hover:underline mb-2 inline-block"
133133
>
134134
<motion.button
135-
className="mb-6 px-4 py-2 flex items-center text-blue-600 hover:text-blue-700 transition-colors rounded-md hover:bg-blue-50"
135+
className="mb-6 px-4 py-2 flex items-center text-blue-600 hover:text-blue-700 transition-colors rounded-md hover:bg-blue-50 dark:hover:bg-gray-800"
136136
whileHover={{ scale: 1.05 }}
137137
whileTap={{ scale: 0.95 }}
138138
>
@@ -159,10 +159,12 @@ const MorePage: React.FC = () => {
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">
165-
<h3 className="font-bold text-xl mb-2">Categories</h3>
165+
<h3 className="font-bold text-xl mb-2 dark:text-gray-100">
166+
Categories
167+
</h3>
166168
<div className="flex flex-wrap gap-2">
167169
{categories.map((category) => (
168170
<button
@@ -181,7 +183,7 @@ const MorePage: React.FC = () => {
181183
</div>
182184

183185
{/* Page Links */}
184-
<h3 className="font-bold text-xl mb-4">
186+
<h3 className="font-bold text-xl mb-4 text-gray-900 dark:text-gray-100">
185187
{activeCategory === 'All'
186188
? 'All Pages'
187189
: activeCategory + ' Pages'}
@@ -191,10 +193,10 @@ const MorePage: React.FC = () => {
191193
<li key={linkPage.slug}>
192194
<Link
193195
to={`/more/${linkPage.slug}`}
194-
className={`block p-2 rounded hover:bg-gray-100 transition ${
196+
className={`block p-2 rounded hover:bg-gray-100 dark:hover:bg-gray-700 dark:transition ${
195197
linkPage.slug === page?.slug
196-
? 'bg-red-100 text-red-600 font-medium'
197-
: 'text-gray-700'
198+
? 'bg-red-100 text-red-600 font-medium dark:hover:bg-red-200'
199+
: 'text-gray-700 dark:text-gray-100'
198200
}`}
199201
>
200202
{linkPage.title}
@@ -213,7 +215,7 @@ const MorePage: React.FC = () => {
213215
transition={{ duration: 0.5 }}
214216
key={page?.slug}
215217
>
216-
<div className="bg-white rounded-lg shadow-md p-6">
218+
<div className="bg-white dark:bg-gray-900 rounded-lg shadow-md p-6 text-gray-800 dark:text-gray-100">
217219
{page ? (
218220
<div className="prose prose-lg max-w-none">
219221
<MarkdownRenderer

src/utils/MarkdownRenderer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,9 @@ const MarkdownRenderer: React.FC<MarkdownRendererProps> = ({
355355
blockquote: ({ children, ...props }) => (
356356
<blockquote
357357
{...props}
358-
className="border-l-3 border-blue-500 bg-blue-50 pl-5 pr-5 py-2 my-4 italic text-blue-800 rounded-r-2xl shadow-sm hover:shadow-md transition-shadow duration-200 "
358+
className={
359+
'border-l-3 border-blue-500 dark:border-blue-400 bg-blue-50 dark:bg-gray-800/40 pl-5 pr-5 py-2 my-4 italic text-blue-800 dark:text-blue-100 rounded-r-2xl shadow-sm dark:shadow-none hover:shadow-md transition-shadow duration-200'
360+
}
359361
>
360362
<div className="relative z-10">{children}</div>
361363
</blockquote>

0 commit comments

Comments
 (0)