Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit 59293a8

Browse files
Merge pull request #59 from frontendweb3/fix-basic-issue
fix the basis issue and update the issue
2 parents 896c531 + 608158f commit 59293a8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/section-blog-theme/components/Card/Card.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import type { authorType } from "@/src/types"
44
export function ArticleCard({ title, description, date, tag, URL, author }: { title: string; description: string; date: string; tag: string[] | undefined; URL: string; author?: string | authorType; }) {
55
return (
66
<article className="p-6 bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700">
7-
<div className="flex justify-between items-center mb-5 text-gray-500">
7+
<div className="flex justify-between items-center mb-5 capitalize">
88
{ tag && tag.length > 0
99
? (
10-
<span className="bg-[#1E429F] px-2.5 py-0.5 text-white text-xs font-medium inline-flex items-center rounded">
10+
<span className="bg-[#1E429F] capitalize px-2.5 py-0.5 text-white text-xs font-medium inline-flex items-center rounded">
1111
{tag[0]}
1212
</span>
1313
)
@@ -23,7 +23,7 @@ export function ArticleCard({ title, description, date, tag, URL, author }: { ti
2323
<div className="flex items-center space-x-4">
2424
{typeof author === 'string' ? <span className="font-medium text-black dark:text-white"> {author}</span> : typeof author === 'object' ? <span className="font-medium dark:text-white"> {author.name}</span> : ""}
2525
</div>
26-
<Link href={URL} className="inline-flex items-center font-medium">
26+
<Link href={URL} className="px-2 font-medium hover:bg-[#1E429F] hover:text-white">
2727
Read More
2828
</Link>
2929
</div>

packages/section-blog-theme/components/Layouts/Read.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,22 @@ export function Read({ pageOpts, themeConfig, children }: { pageOpts: PageOpts;
4545

4646
<section className="not-prose flex flex-row justify-between items-center">
4747

48-
<div className="flex flex-row items-center text-sm text-gray-500 dark:text-gray-400">
48+
<div className="flex flex-row items-center text-sm">
4949

5050
<span> By {
5151

5252
typeof frontMatter.author === 'string' ?
5353
<Link
5454
href={Next_URL(getSite)}
5555
rel="author"
56-
className="mr-2 hover:text-gray-700"
56+
className="mr-2 hover:text-gray-400"
5757
>
5858
{frontMatter?.author}
5959
</Link> : typeof frontMatter.author === 'object' ? <Link
6060
href={getAuthorURL}
6161
target="_blank"
6262
rel="author"
63-
className="mr-2 hover:text-gray-600 "
63+
className="mr-2 hover:text-gray-400 "
6464
>
6565
{frontMatter?.author.name}
6666
</Link> : ""
@@ -71,7 +71,7 @@ export function Read({ pageOpts, themeConfig, children }: { pageOpts: PageOpts;
7171
title={getDate}
7272
>
7373
{getDate}
74-
</time><Link href={getTagURL} className="capitalize ml-2 hover:text-gray-600"> {getTag} </Link>
74+
</time><Link href={getTagURL} className="capitalize ml-2 hover:text-gray-400"> {getTag} </Link>
7575
</div>
7676

7777
<div className="hidden sm:flex flex-row print:block">

0 commit comments

Comments
 (0)