File tree Expand file tree Collapse file tree 5 files changed +21
-0
lines changed
components/templates/articles Expand file tree Collapse file tree 5 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ import { ArticleInfo } from "../../layouts/article-info";
1111import { Pagination } from "../../ui/pagination" ;
1212import { Renderer } from "../../docs" ;
1313import { t } from "../../../locales" ;
14+ import { LinkButton } from "../../ui/button" ;
15+ import { Iconify } from "../../ui/iconify" ;
1416import * as styles from "./styles.css" ;
1517
1618export interface HeadingProps {
@@ -69,6 +71,11 @@ export const TemplateArticles: React.FC<TemplateArticlesProps> = (props) => {
6971 < section >
7072 < Heading > { t ( "articles.heading" ) } </ Heading >
7173 { props . articles . map ( item => < ArticleInfo key = { `article-${ item . link } ` } data = { item } /> ) }
74+ < LinkButton className = { styles . more } aria-label = { t ( "articles.more" ) } href = "/page/1" tooltip = { false } >
75+ < Iconify icon = "ri:arrow-right-double-line" />
76+ { t ( "articles.more" ) }
77+ < Iconify icon = "ri:arrow-left-double-line" />
78+ </ LinkButton >
7279 </ section >
7380 </ div >
7481 </ Main >
Original file line number Diff line number Diff line change @@ -47,3 +47,14 @@ export const document = styled.css`
4747 display : block;
4848 }
4949` ;
50+
51+ export const more = styled . css `
52+ width : 100% !important ;
53+ font-size : ${ theme . fontSize . calc ( 1 ) } !important ;
54+ line-height : ${ theme . lineHeight . calc ( 1 ) } !important ;
55+
56+ > .iconify {
57+ width : ${ theme . fontSize . calc ( 1.2 ) } ;
58+ height : ${ theme . fontSize . calc ( 1.2 ) } ;
59+ }
60+ ` ;
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export default {
2020 "articles.name" : "Article" ,
2121 "articles.desc" : "Article:{0}" ,
2222 "articles.heading" : "Recent Articles" ,
23+ "articles.more" : "And more" ,
2324
2425 "links.name" : "Friends" ,
2526 "links.desc" : "{0} Friends × {1} Lost Friends" ,
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export default {
2020 "articles.name" : "文章" ,
2121 "articles.desc" : "文章:{0}" ,
2222 "articles.heading" : "最近创作" ,
23+ "articles.more" : "还有更多" ,
2324
2425 "links.name" : "友邻" ,
2526 "links.desc" : "{0} 友邻 × {1} 已失联友邻" ,
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export default {
2020 "articles.name" : "文章" ,
2121 "articles.desc" : "文章:{0}" ,
2222 "articles.heading" : "最近創作" ,
23+ "articles.more" : "還有更多" ,
2324
2425 "links.name" : "友鄰" ,
2526 "links.desc" : "{0} 友鄰 × {1} 已失聯友鄰" ,
You can’t perform that action at this time.
0 commit comments