mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
60 lines
1023 B
Vue
60 lines
1023 B
Vue
<template>
|
|
<v-app>
|
|
<v-container>
|
|
<div class="layout">
|
|
<div class="navigation">
|
|
<a href="/" class="logo">
|
|
<img src="./logo.svg" height="64" width="64" alt="logo" />
|
|
</a>
|
|
<VikeLink href="/">Home</VikeLink>
|
|
<VikeLink href="/about">About</VikeLink>
|
|
</div>
|
|
<div class="content"><slot /></div>
|
|
</div>
|
|
</v-container>
|
|
</v-app>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import VikeLink from './VikeLink.vue'
|
|
</script>
|
|
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
font-family: sans-serif;
|
|
}
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
</style>
|
|
|
|
<style scoped>
|
|
.layout {
|
|
display: flex;
|
|
max-width: 900px;
|
|
margin: auto;
|
|
}
|
|
.content {
|
|
padding: 20px;
|
|
border-left: 2px solid #eee;
|
|
padding-bottom: 50px;
|
|
min-height: 100vh;
|
|
}
|
|
.navigation {
|
|
padding: 20px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
line-height: 1.8em;
|
|
}
|
|
.logo {
|
|
margin-top: 20px;
|
|
margin-bottom: 10px;
|
|
}
|
|
</style>
|