mirror of
https://ark.sudovanilla.org/Korbs/butterflyvu.git
synced 2025-01-08 23:53:56 +00:00
Create Sidebar component
This commit is contained in:
parent
7c4c7eb40b
commit
232d4a161a
9
src/components/Sidebar.astro
Normal file
9
src/components/Sidebar.astro
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
import { SidebarItems } from '../../sidebar.json'
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class="sidebar">
|
||||||
|
{SidebarItems.map((item) => (
|
||||||
|
item.heading ? <h2>{item.heading}</h2> : <a href={item.link}>{item.text}</a>
|
||||||
|
))}
|
||||||
|
</div>
|
Loading…
Reference in a new issue