feat(blog) change foreground color in dark mode

This commit is contained in:
lumither committed 2025-10-21 21:50:41 -04:00
1 parent f1d43e6799
commit 7205faddbe
7 files changed
+12 -8

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ function BlogPostCard({ post, highlightSelector }: Props) {
<div className={ `w-full` }>
<Card
as={ Link } href={ `/blog/post/${ post.identifier }` }
className={ `group w-full` }
className={ `group w-full dark:bg-[#353540]` }
isPressable
isHoverable
>
+5 -1
View File
@@ -3,6 +3,7 @@
import React from 'react';
import { Chip } from '@nextui-org/react';
import { useRouter, useSearchParams } from 'next/navigation';
import { cn } from '@/src/utils';
interface TagChipProps {
tagName: string,
@@ -37,7 +38,10 @@ const TagChip = ({ tagName, isHighlighted }: TagChipProps) => {
className="cursor-pointer relative"
>
<Chip
className={ 'hover:border-amber-400 hover:dark:border-amber-700 transition-all' }
className={ cn(
'hover:border-amber-400 hover:dark:border-amber-700 transition-all ',
!isHighlighted && 'dark:border-amber-50/25'
) }
variant={ 'bordered' }
color={ isHighlighted ? 'warning' : 'default' }
>{ tagName }</Chip>
@@ -12,7 +12,7 @@ const ButtonGoBack = () => {
<Button
startContent={ <IoArrowBackOutline /> }
variant={ 'light' }
onClick={ () => router.back() }
onPress={ () => router.back() }
>
{ 'Back' }
</Button>
@@ -33,7 +33,7 @@ const Footer = (props: Props) => {
return (
<div className={ `w-full` }>
<div className={ 'flex transition bg-zinc-300/80 dark:bg-gray-600/25' }>
<div className={ 'flex transition bg-zinc-300/80 dark:bg-[#1c1c22]/50' }>
<div className={ `p-8 w-full overflow-hidden` }>
<div className={ 'relative' }>
<FaCreativeCommons
@@ -12,9 +12,9 @@ const MinifyPostCard = (props: Props) => {
const { post, desc } = props;
const img_url = post['header_img'] as string;
return (
<div className={ 'w-full transition hover:brightness-75' }>
<div className={ 'w-full transition hover:brightness-90' }>
<Card isFooterBlurred
className="w-full h-[300px] shadow-none border-0 rounded-none overflow-hidden"
className="w-full h-[300px] shadow-none border-0 rounded-none overflow-hidden dark:bg-[#353540]"
as={ Link }
isPressable
href={ `/blog/post/${ post['identifier'] }` }
@@ -16,7 +16,7 @@ async function PostCard(props: Props) {
return (
<div>
<Card className={ `max-w-full relative` }>
<Card className={ `max-w-full relative dark:bg-[#34343e]` }>
{/* card headers */ }
<Headers title={ post.title }
@@ -10,7 +10,7 @@ const TagChip = ({ tag }: { tag: string }) => {
return (
<div onClick={ () => router.push(`/blog?tags=${ tag }`) }>
<Chip
className={ 'hover:border-amber-400 hover:dark:border-amber-700 transition-all' }
className={ 'hover:border-amber-400 hover:dark:border-amber-700 transition-all dark:bg-[#353540] dark:border-amber-50/25' }
variant={ 'faded' }
>{ tag }</Chip>
</div>