-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinks.astro
56 lines (53 loc) · 1.13 KB
/
links.astro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
import Card from "#/components/Card.astro";
import Layout from "#/layouts/Layout.astro";
interface Link {
name: string;
description: string;
link: string;
}
const links: Link[] = [
{
name: "Moroshima",
description: "别摸鱼了,快备战考研",
link: "https://kuroshima.eu.org/",
},
{
name: "Maxtune Lee",
description: "学弟,菜菜,带带",
link: "https://mxte.cc/",
},
{
name: "風楪fy",
description: "人生赢家",
link: "http://fengye404.top/",
},
{
name: "臭咸鱼",
description: "别瓦了,快学习",
link: "https://blog.cxy621.top/",
},
];
---
<Layout title="友情链接 - 极速蜗牛的博客">
<h1>友情链接</h1>
{
links.length ? (
<ul role="list" class="link-card-grid">
{links.map((link) => (
<Card id={link.link} title={link.name} body={link.description} />
))}
</ul>
) : (
<p>版块建设中,敬请期待</p>
)
}
</Layout>
<style>
.link-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr));
gap: 1rem;
padding: 0;
}
</style>