mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-05-20 02:15:00 +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/MenuItem.svelte
Normal file
26
front/src/pages/components/MenuItem.svelte
Normal file
|
@ -0,0 +1,26 @@
|
|||
<script>
|
||||
import { link } from 'svelte-spa-router';
|
||||
|
||||
export let name;
|
||||
export let price;
|
||||
export let id;
|
||||
</script>
|
||||
|
||||
<a href="/item/{id}" use:link>
|
||||
<span>{name}</span>
|
||||
<span>£{price}</span>
|
||||
</a>
|
||||
|
||||
<style lang="scss">
|
||||
a {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
background-color: #f0f0f0;
|
||||
padding: 10px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 5px;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue