Improve some ui visual effects

This commit is contained in:
PrinOrange
2024-01-08 18:18:21 +08:00
parent 8ce080fedd
commit b10ce77b00
8 changed files with 56 additions and 50 deletions

View File

@@ -53,7 +53,8 @@ export default function Home(props: HomePageProps) {
</h2>
<Separator />
<PostList data={props.latestPostList} />
<div className="my-2 flex justify-end">
<Separator />
<div className="my-5 flex justify-end">
<Button asChild>
<Link href="/posts" className="font-bold">
{"MORE POSTS >"}

View File

@@ -65,13 +65,16 @@ export default function PostsPage(props: PostsPageProps) {
<Separator />
<div className={`my-5 flex flex-wrap justify-center px-2 ${fontSourceSerifScreenCN.className}`}>
{props.tagList.map((item) => (
<TagBadge key={`tag-badge-${nanoid()}`} name={item.name} size="md" count={item.count} />
<Link href={`/tags/${item.name}`} key={`tag-badge-${nanoid()}`}>
<TagBadge name={item.name} size="md" count={item.count} />
</Link>
))}
</div>
</>
)}
<Separator />
<PostList data={props.postList} />
<Separator />
<div className="my-5 flex justify-between text-base font-bold">
{props.pageNumber !== 1 && (
<Button asChild>

View File

@@ -73,7 +73,7 @@ export default function SearchPage() {
onChange={handleInputSearchText}
/>
<Button className="mx-3 my-auto" disabled={querySearch.isLoading} onClick={handleMakeSearch}>
{querySearch.isLoading ? "Loading" : "Search"}
{querySearch.isFetching ? "Loading" : "Search"}
</Button>
</div>
<div className="flex flex-col justify-center">

View File

@@ -60,6 +60,7 @@ export default function TagsContentPage(props: TagsContentPageProps) {
</h2>
<Separator />
<PostList data={props.postList} />
<Separator />
<div className="my-5 flex justify-between text-base font-bold">
{props.pageNumber !== 1 && (
<Button asChild>