mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-05-24 04:14:55 +00:00
Move styles to SCSS file
Rename components Add Loader
This commit is contained in:
parent
12a33388f6
commit
4e6b2799f6
15 changed files with 282 additions and 84 deletions
35
front/src/pages/PageIndex.svelte
Normal file
35
front/src/pages/PageIndex.svelte
Normal file
|
@ -0,0 +1,35 @@
|
|||
<script>
|
||||
import { link } from 'svelte-spa-router';
|
||||
import AnnouncementBanner from "%/pages/components/AnnouncementBanner.svelte";
|
||||
import MenuList from "%/pages/components/MenuList.svelte";
|
||||
|
||||
const items = [
|
||||
{name: "Breakfast", price: 69.99},
|
||||
{name: "Dinner", price: 21},
|
||||
{name: "Brick", price: 0},
|
||||
{name: "Toast", price: 4382749832743},
|
||||
{name: "water", price: 1},
|
||||
{name: "half eaten mouldy bread", price: -9999}
|
||||
];
|
||||
</script>
|
||||
|
||||
<AnnouncementBanner />
|
||||
<a href="/annoucements" use:link style="float: right">Learn More</a>
|
||||
|
||||
<div class="spacer"></div>
|
||||
|
||||
<h2>Menu</h2>
|
||||
<MenuList {items} />
|
||||
<a href="/menu" use:link style="float: right">See All</a>
|
||||
|
||||
<div class="spacer"></div>
|
||||
|
||||
<h2>About Us</h2>
|
||||
<p>Want to know the story of the restaurant?</p>
|
||||
<a href="/about" use:link style="float: right">Continue reading</a>
|
||||
|
||||
<style lang="scss">
|
||||
.spacer {
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue