Skip to content

Commit

Permalink
feat: added menubar
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Nov 14, 2023
1 parent b01de76 commit fc996c7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import HelloWorld from './components/HelloWorld.vue'
import { RouterLink, RouterView } from "vue-router";
import Menubar from "./components/Menubar.vue";
</script>

<template>
<div class="container mx-auto">
<header class="text-center p-4">
<h1 class="text-2xl font-bold">Subscription Service</h1>
<h1 class="text-2xl font-bold">ActivityWatch Portal</h1>
<Menubar />
</header>
<main>
<RouterView />
Expand Down
17 changes: 17 additions & 0 deletions src/components/Menubar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script setup lang="ts">
import { RouterLink } from "vue-router";
</script>

<template>
<nav class="flex justify-center space-x-4 mt-4">
<div class="rounded border">
<RouterLink to="/">Home</RouterLink>
</div>
<div class="rounded border">
<RouterLink to="/about">About</RouterLink>
</div>
<div class="rounded border">
<RouterLink to="/settings">Settings</RouterLink>
</div>
</nav>
</template>

0 comments on commit fc996c7

Please sign in to comment.