File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ .tools-grid {
2+ display : grid ;
3+ grid-template-columns : repeat (auto-fill , minmax (280px , 1fr ));
4+ gap : 2rem ;
5+ padding : 2rem 0 ;
6+
7+ .tool-card {
8+ background : var (--card-background );
9+ border-radius : var (--card-border-radius );
10+ padding : 2rem ;
11+ transition : transform 0.3s ease , box-shadow 0.3s ease ;
12+ border : 1px solid var (--border-color );
13+ display : flex ;
14+ flex-direction : column ;
15+ justify-content : space-between ;
16+ text-decoration : none ;
17+ color : inherit ;
18+
19+ & :hover {
20+ transform : translateY (-5px );
21+ box-shadow : var (--shadow-l2 );
22+ border-color : var (--accent-color );
23+ }
24+
25+ .tool-info {
26+ .tool-header {
27+ display : flex ;
28+ align-items : center ;
29+ margin-bottom : 1.5rem ;
30+ color : var (--accent-color );
31+
32+ svg {
33+ width : 24px ;
34+ height : 24px ;
35+ margin-right : 1rem ;
36+ }
37+
38+ .tool-title {
39+ margin : 0 ;
40+ font-size : 2rem ;
41+ font-weight : bold ;
42+ color : var (--card-text-color-main );
43+ }
44+ }
45+
46+ .tool-desc {
47+ font-size : 1.4rem ;
48+ color : var (--card-text-color-tertiary );
49+ line-height : 1.6 ;
50+ margin-bottom : 2rem ;
51+ }
52+ }
53+
54+ .tool-action {
55+ display : flex ;
56+ align-items : center ;
57+ justify-content : flex-end ;
58+ color : var (--accent-color );
59+ font-weight : bold ;
60+ font-size : 1.4rem ;
61+
62+ svg {
63+ width : 18px ;
64+ height : 18px ;
65+ margin-left : 0.5rem ;
66+ }
67+ }
68+ }
69+ }
70+
171.tool-wrapper {
272 width : 80% ;
373 margin : 2rem 10% ;
Original file line number Diff line number Diff line change 11---
22title : " Archives"
3- date : 2022-03-06
43layout : " archives"
54slug : " archives"
65---
Original file line number Diff line number Diff line change 1+ ---
2+ title : Tools
3+ description : Some online practical tools
4+ layout : " tools"
5+ ---
Original file line number Diff line number Diff line change 11---
22title : " 所有博客"
3- date : 2022-03-06
43layout : " archives"
54slug : " archives"
65---
Original file line number Diff line number Diff line change 1+ ---
2+ title : " 工具"
3+ description : " 一些在线实用工具"
4+ layout : " tools"
5+ ---
Original file line number Diff line number Diff line change 1+ {{ define "main" }}
2+ < header class ="section-header ">
3+ < div class ="section-title ">
4+ < h1 class ="title "> {{ .Title }}</ h1 >
5+ {{ with .Params.description }}
6+ < p class ="description "> {{ . }}</ p >
7+ {{ end }}
8+ </ div >
9+ </ header >
10+
11+ < div class ="tools-grid ">
12+ {{ range .Pages }}
13+ < a href ="{{ .RelPermalink }} " class ="tool-card ">
14+ < div class ="tool-info ">
15+ < div class ="tool-header ">
16+ < svg xmlns ="http://www.w3.org/2000/svg " width ="24 " height ="24 " viewBox ="0 0 24 24 " fill ="none " stroke ="currentColor " stroke-width ="2 " stroke-linecap ="round " stroke-linejoin ="round " class ="icon icon-tabler icon-tabler-tool ">
17+ < path stroke ="none " d ="M0 0h24v24H0z " fill ="none "> </ path >
18+ < path d ="M7 10h3v-3l-3.5 -3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1 -3 3l-6 -6a6 6 0 0 1 -8 -8l3.5 3.5 "> </ path >
19+ </ svg >
20+ < h3 class ="tool-title "> {{ .Title }}</ h3 >
21+ </ div >
22+ < p class ="tool-desc "> {{ .Description }}</ p >
23+ </ div >
24+ < div class ="tool-action ">
25+ < span > {{ if eq .Language.Lang "zh-cn" }}开始使用{{ else }}Use Now{{ end }}</ span >
26+ < svg xmlns ="http://www.w3.org/2000/svg " width ="24 " height ="24 " viewBox ="0 0 24 24 " fill ="none " stroke ="currentColor " stroke-width ="2 " stroke-linecap ="round " stroke-linejoin ="round " class ="icon icon-tabler icon-tabler-chevron-right ">
27+ < path stroke ="none " d ="M0 0h24v24H0z " fill ="none "> </ path >
28+ < path d ="M9 6l6 6l-6 6 "> </ path >
29+ </ svg >
30+ </ div >
31+ </ a >
32+ {{ end }}
33+ </ div >
34+
35+ < div class ="article-content ">
36+ {{ .Content }}
37+ </ div >
38+ {{ end }}
You can’t perform that action at this time.
0 commit comments