diff options
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> |
