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