Skip to content

Commit 0243deb

Browse files
chore: add more button (#30)
1 parent 11b3538 commit 0243deb

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

src/app/(public)/articles/(index)/loading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {VerticalArticleCardSkeleton} from "@/features/home-page/components/article-card-vertical";
22

33
function ArticlesLoading() {
4-
return [1, 2, 3, 4, 5, 6].map((num) => {
4+
return [1, 2, 3, 4].map((num) => {
55
return <VerticalArticleCardSkeleton key={num} />;
66
});
77
}

src/features/home-page/components/featured-articles/featured-articles.tsx

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import {
66
List,
77
ThemeIcon,
88
ListItem,
9-
Title,
9+
Title, Divider, Group, Button,
1010
} from "@mantine/core";
1111
import {VerticalArticleCard} from "../article-card-vertical";
1212
import classes from "./featured-articles.module.css";
1313
import {
14+
IconArrowLeft,
1415
IconHexagon1,
1516
IconHexagon2,
1617
IconHexagon3,
@@ -80,7 +81,7 @@ export async function FeaturedArticles({latestArticles, popularArticles}) {
8081

8182
return (
8283
<ListItem
83-
mb={"sm"}
84+
mb={"sm"}
8485
key={article.uuid}
8586
icon={<ThemeIcon color="teal" radius="xl" size="md"><Icon size="xl" /></ThemeIcon>}
8687
>
@@ -93,6 +94,27 @@ export async function FeaturedArticles({latestArticles, popularArticles}) {
9394
</List>
9495
</Stack>
9596
</GridCol>
97+
<GridCol
98+
mt={10}
99+
span={{
100+
base: 12,
101+
md: 12,
102+
}}
103+
>
104+
<Group justify="center">
105+
<Button
106+
component={Link}
107+
scroll={true}
108+
href="/articles"
109+
size="md"
110+
radius="sm"
111+
rightSection={<IconArrowLeft size={18} />}
112+
styles={{ section: { marginInlineStart: 8 } }}
113+
>
114+
مقالات بیشتر
115+
</Button>
116+
</Group>
117+
</GridCol>
96118
</Grid>
97119
);
98120
}

0 commit comments

Comments
 (0)