diff options
| author | Alam Guardin <alamguardin@gmail.com> | 2024-08-07 23:03:49 -0500 |
|---|---|---|
| committer | Alam Guardin <alamguardin@gmail.com> | 2024-08-07 23:03:49 -0500 |
| commit | 470911698e5a4468c510a99dd352bfb68d9fbd00 (patch) | |
| tree | c1622e77cb4f519ca74e430cc8e926346f4b890c /src/components/List.astro | |
| parent | 3a85a040943b7c69eb29c5260898516c9fae6e5a (diff) | |
refactor: add icons to links
Diffstat (limited to 'src/components/List.astro')
| -rw-r--r-- | src/components/List.astro | 23 |
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> |
