|
@@ -1,33 +1,18 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div id="app">
|
|
<div id="app">
|
|
|
- <header>
|
|
|
|
|
- <div class="logo">
|
|
|
|
|
- <span>RedstoneServer</span>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <HeaderBar />
|
|
|
|
|
|
|
|
- <MenuContainer class="menu-container">
|
|
|
|
|
- <router-link class="top-link" :to="link" v-for="(link, text) in menu_entries" :key="link">{{ text }}</router-link>
|
|
|
|
|
- </MenuContainer>
|
|
|
|
|
-
|
|
|
|
|
- <div class="user">
|
|
|
|
|
- <div v-if="user">
|
|
|
|
|
- <span>Username: {{ user.username }} </span>
|
|
|
|
|
- <span class="rl" @click="logout">Logout</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <router-link class="rl" to="/login" v-else>Login</router-link>
|
|
|
|
|
- </div>
|
|
|
|
|
- </header>
|
|
|
|
|
-
|
|
|
|
|
- <p>Website under development, please excuse ugly style and broken/missing features as well as missing legal things.</p>
|
|
|
|
|
<div class="content">
|
|
<div class="content">
|
|
|
|
|
+ <p>Website under development, please excuse ugly style and broken/missing features as well as missing legal things.</p>
|
|
|
<router-view/>
|
|
<router-view/>
|
|
|
|
|
+ <br>
|
|
|
|
|
+ <router-link to="/impressum">Impressum</router-link>
|
|
|
</div>
|
|
</div>
|
|
|
- <router-link to="/impressum">Impressum</router-link>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
- import MenuContainer from './components/MenuContainer.vue'
|
|
|
|
|
|
|
+ import HeaderBar from './components/HeaderBar.vue'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
data () {
|
|
data () {
|
|
@@ -53,7 +38,7 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
components: {
|
|
components: {
|
|
|
- MenuContainer
|
|
|
|
|
|
|
+ HeaderBar
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
@@ -64,6 +49,7 @@
|
|
|
background-color: #111;
|
|
background-color: #111;
|
|
|
color: #aaa;
|
|
color: #aaa;
|
|
|
margin: 0;
|
|
margin: 0;
|
|
|
|
|
+ -webkit-tap-highlight-color: #f0ff;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
body a:link {
|
|
body a:link {
|
|
@@ -71,44 +57,14 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
body a:visited {
|
|
body a:visited {
|
|
|
- color: #666;
|
|
|
|
|
|
|
+ /color: #666;
|
|
|
|
|
+ color: #ddd;
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|
|
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|
|
|
- header {
|
|
|
|
|
- font-size: 1.5em;
|
|
|
|
|
- color: #aaa;
|
|
|
|
|
- background-color: #222;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- header .logo {
|
|
|
|
|
- display: inline-block;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- header .menu-container {
|
|
|
|
|
- flex-grow: 100;
|
|
|
|
|
- box-sizing: border-box;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- header .user {
|
|
|
|
|
- padding: 0.2em 0em;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
.content {
|
|
.content {
|
|
|
margin-left: 8px;
|
|
margin-left: 8px;
|
|
|
margin-right: 8px;
|
|
margin-right: 8px;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- .rl {
|
|
|
|
|
- text-decoration: none;
|
|
|
|
|
- color: #aaa;
|
|
|
|
|
- padding: 0.2em 1em;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .rl:hover {
|
|
|
|
|
- color: #ddd;
|
|
|
|
|
- background-color: #333;
|
|
|
|
|
- }
|
|
|
|
|
</style>
|
|
</style>
|