From 07963bbe5dbdb53d1c15201968d28f11e0ec9122 Mon Sep 17 00:00:00 2001 From: Fauvet Matthis Date: Sat, 29 Jun 2024 00:52:54 +0200 Subject: [PATCH] test route --- onzer.riot | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/onzer.riot b/onzer.riot index 134d6e3..01cc80b 100644 --- a/onzer.riot +++ b/onzer.riot @@ -125,9 +125,6 @@ } return fetch(computeHttpRequest).then(response => response.json()); }, - navigateToPlaylists() { - route('/playlists'); - }, getPageById(route) { const {id} = route.params return pages.find(page => page.id === id) || pages[0] @@ -148,5 +145,26 @@ border-color: #6EE7B7; width: 32%; } + + :host { + display: block; + font-family: sans-serif; + margin: 0; + padding: 1em; + text-align: center; + color: #666; + } + nav { + display: block; + border-bottom: 1px solid #666; + padding: 0 0 1em; + } + nav > a { + display: inline-block; + padding: 0 .8em; + } + nav > a:not(:first-child) { + border-left: 1px solid #eee; + }