aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/List.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/List.astro')
-rw-r--r--src/components/List.astro23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/components/List.astro b/src/components/List.astro
index 80af910..d03b0e0 100644
--- a/src/components/List.astro
+++ b/src/components/List.astro
@@ -1,16 +1,23 @@
---
import Link from "./Link.astro";
+import dataList from '../data/user.json';
+
+const items = dataList.links;
---
<div class="list" id="list">
- <Link></Link>
- <Link></Link>
- <Link></Link>
- <Link></Link>
- <Link></Link>
- <Link></Link>
- <Link></Link>
- <Link></Link>
+ {
+ items.map((item) => {
+ return (
+ <Link
+ icon={item.icon}
+ title={item.title}
+ description={item.description}
+ url={item.url}
+ ></Link>
+ )
+ })
+ }
</div>
<style>
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage