mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-06-02 16:33:13 +00:00
Make temporary content for pages
Switch to SCSS for styling
This commit is contained in:
parent
b13a14ffb3
commit
12a33388f6
17 changed files with 186 additions and 42 deletions
26
front/src/pages/components/ItemList.svelte
Normal file
26
front/src/pages/components/ItemList.svelte
Normal file
|
@ -0,0 +1,26 @@
|
|||
<script>
|
||||
import MenuItem from "%/pages/components/MenuItem.svelte";
|
||||
|
||||
export let items = [];
|
||||
</script>
|
||||
|
||||
<ul>
|
||||
{#each items as item}
|
||||
<li><MenuItem name={item.name} price={item.price} id={item.name} /></li>
|
||||
{/each}
|
||||
</ul>
|
||||
|
||||
<style lang="scss">
|
||||
ul {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px
|
||||
}
|
||||
li {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue