1- < div class ="row row-cols-1 row-cols-md-2 row-cols-lg-{{ include.col | default: 2 }} gy-2 gx-4 my-4 navigation-tiles ">
2- {%- if include.yaml %}
3- {%- assign tiles = site.data.tiles[include.target] %}
4- {% else %}
5- {%- assign tiles = page[include.target] %}
6- {%- endif %}
7- {%- for item in tiles %}
8- {%- if item.title %}
9- < div class ="col d-grid ">
10- < a role ="button " class ="btn font-size-sm py-4 fs-3 " href ="{{ item.url | relative_url }} "> {{item.title}}</ a >
1+ {%- if include.yaml %}
2+ {%- assign tiles = site.data.tiles[include.target] %}
3+ {% else %}
4+ {%- assign tiles = page[include.target] %}
5+ {%- endif %}
6+ < div class ="simple-tiles ">
7+ < div class ="simple-tiles-container ">
8+ < div class ="simple-tiles-list ">
9+ {%- for item in tiles %}
10+ {%- if item.title %}
11+ < a href ="{{ item.url | relative_url }} " class ="simple-tile-link ">
12+ < div class ="simple-tile-item ">
13+ < div class ="simple-tile-content ">
14+ < p class ="simple-tile-title " style ="font-size: 2.0rem; text-align: center "> {{ item.title }}</ p >
15+ </ div >
16+ </ div >
17+ </ a >
18+ {%- endif %}
19+ {%- endfor %}
20+ </ div >
1121 </ div >
12- {%- endif %}
13- {%- endfor %}
1422</ div >
23+
24+
25+ < style >
26+
27+ .simple-tiles-list {
28+ display : grid;
29+ grid-template-columns : repeat (auto-fit, minmax (300px , 0.5fr ));
30+ gap : 20px ;
31+ }
32+
33+ .simple-tile-link {
34+ text-decoration : none;
35+ color : inherit;
36+ display : flex;
37+ }
38+
39+ .simple-tile-item {
40+ border : 1px solid # e0e0e0 ;
41+ border-radius : 12px ;
42+ padding : 25px ;
43+ transition : all 0.3s ease;
44+ background : # 1c4587ff ;
45+ width : 100% ;
46+ display : flex;
47+ flex-direction : column;
48+ justify-content : space-between;
49+ }
50+
51+ .simple-tile-item : hover {
52+ transform : translateY (-4px );
53+ box-shadow : 0 8px 25px rgba (0 , 0 , 0 , 0.1 );
54+ border-color : # 012152 ;
55+ }
56+
57+ .simple-tile-title {
58+ color : # ffffff ;
59+ font-weight : 400 ;
60+ margin-top : 0px ;
61+ margin-bottom : 0px ;
62+ }
63+
64+ </ style >
0 commit comments