Comparar commits
2 commits
e8da5e228e
...
b2852fe77f
Autor | SHA1 | Fecha | |
---|---|---|---|
|
b2852fe77f | ||
|
1583f2602f |
S'han modificat 2 arxius amb 22 adicions i 2 eliminacions
18
src/lib/mainpage.svelte
Normal file
18
src/lib/mainpage.svelte
Normal file
|
@ -0,0 +1,18 @@
|
|||
<script lang="ts">
|
||||
import { Heading, Li, List } from "flowbite-svelte";
|
||||
|
||||
export let meData: { sectionTitle: string, sectionItems: { content: string }[] }[] = [];
|
||||
|
||||
</script>
|
||||
{#each meData as mdt}
|
||||
<Heading>{mdt.sectionTitle}</Heading>
|
||||
<List>
|
||||
{#each mdt.sectionItems as sectItems}
|
||||
<Li>{sectItems.content}</Li>
|
||||
{:else}
|
||||
<Li>No items</Li>
|
||||
{/each}
|
||||
</List>
|
||||
{:else}
|
||||
<h5>No data about me (yet!)</h5>
|
||||
{/each}
|
|
@ -1,6 +1,8 @@
|
|||
<script>
|
||||
import Mainpage from "$lib/mainpage.svelte";
|
||||
|
||||
</script>
|
||||
|
||||
<div class="p-8">
|
||||
<p>I Like trains</p>
|
||||
</div>
|
||||
<Mainpage />
|
||||
</div>
|
||||
|
|
Loading…
Referencia en una nova incidència