Add square menu, remove navbar elements
This commit is contained in:
pare
394d6eaaa7
commit
094eefbd42
S'han modificat 2 arxius amb 11 adicions i 6 eliminacions
|
@ -1,11 +1,12 @@
|
|||
<script lang="ts">
|
||||
import "../app.postcss";
|
||||
import { NavbarObject } from "../classes/NavObject";
|
||||
import Navbar from "../lib/navbar.svelte";
|
||||
import Navbar from "$lib/navbar.svelte";
|
||||
import './styles.css';
|
||||
import { navTitle } from "$lib/store";
|
||||
|
||||
let pageTitle: string = "pswsm meteo"
|
||||
let navbarElements: NavbarObject[] = [new NavbarObject('/', 'Home'), new NavbarObject('/abtme', 'Sobre mi'), new NavbarObject('/temps', 'Temps'), new NavbarObject('/xema', 'Estacions'), new NavbarObject('/openmeteo', 'Dades Open Meteo')]
|
||||
let pageTitle: string = $navTitle ?? 'Default Title'
|
||||
// let navbarElements: NavbarObject[] = [new NavbarObject('/', 'Home'), new NavbarObject('/abtme', 'Sobre mi'), new NavbarObject('/temps', 'Temps'), new NavbarObject('/xema', 'Estacions'), new NavbarObject('/openmeteo', 'Dades Open Meteo')]
|
||||
</script>
|
||||
<Navbar navobjs={navbarElements} pageTitle={pageTitle} />
|
||||
<Navbar pageTitle={pageTitle} />
|
||||
<slot></slot>
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
<script>
|
||||
<script lang="ts">
|
||||
import Sqmenu from "$lib/sqmenu.svelte";
|
||||
import type { MenuData } from "$lib/classes/menudata"
|
||||
let menudata: MenuData[] = [{menuLink: '/abtme', menuName:'Sobre mi'}, {menuLink: '/temps', menuName:'Temps'}, {menuLink: '/xema', menuName:'Dades XEMA'}, {menuLink: '/openmeteo', menuName:'Dades Open Meteo'}]
|
||||
// let menudata: MenuData[] = []
|
||||
</script>
|
||||
|
||||
<div class="p-8">
|
||||
<p>I Like trains</p>
|
||||
<Sqmenu {menudata} />
|
||||
</div>
|
Loading…
Referencia en una nova incidència