kandimat-user-app/src/app/app.vue

143 lines
2.6 KiB
Vue
Raw Normal View History

2017-08-10 23:14:45 +02:00
<template>
<div id="app">
2017-08-13 14:03:38 +02:00
<app-menu :menu="menu" :languages="languages" />
2017-08-12 23:00:43 +02:00
<main>
2017-08-10 23:14:45 +02:00
<router-view></router-view>
</main>
2017-08-12 23:00:43 +02:00
<div class="app-background">
<svgicon
name="european-stars"
width="10em"
height="10em"
scale="4"
color="black" />
</div>
2017-08-10 23:14:45 +02:00
</div>
</template>
<script>
import Menu from '@/components/menu'
2017-08-12 23:00:43 +02:00
import '@/assets/icons/european-stars'
2017-08-10 23:14:45 +02:00
export default {
name: 'Eur-O-Mat',
components: {
'app-menu': Menu
},
2017-08-13 14:03:38 +02:00
i18n: {
messages: {
de: {
menu: {
index: 'Startseite',
faq: 'FAQ',
press: 'Presse',
imprint: 'Impressum'
}
},
en: {
menu: {
index: 'Main page',
faq: 'FAQ',
press: 'Press',
imprint: 'Imprint'
}
}
}
},
data () {
return {
2017-08-13 14:03:38 +02:00
languages: [
{ label: '🇩🇪', locale: 'de' },
{ label: '🇬🇧', locale: 'en' }
]
}
},
computed: {
menu () {
return [
{ label: this.$t('menu.index'), route: { path: '/' } },
{ label: this.$t('menu.faq'), route: { path: '/faq' } },
{ label: this.$t('menu.press'), route: { path: '/presse' } },
{ label: this.$t('menu.imprint'), route: { path: '/impressum' } }
]
}
}
2017-08-10 23:14:45 +02:00
}
</script>
<style lang="scss">
@import "~node_modules/normalize.css/normalize";
2017-08-13 14:03:38 +02:00
@import "~styles/buttons";
@import "~styles/colors";
2017-08-12 23:00:43 +02:00
@import "~styles/layout";
2017-08-10 23:14:45 +02:00
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
2017-08-10 23:47:40 +02:00
html,
2017-08-10 23:14:45 +02:00
body {
2017-08-10 23:47:40 +02:00
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
2017-08-12 23:00:43 +02:00
align-items: flex-start;
2017-08-10 23:14:45 +02:00
}
2017-08-10 23:47:40 +02:00
body {
background: $background-primary;
color: $text-color-base;
2017-08-10 23:14:45 +02:00
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
2017-08-12 23:00:43 +02:00
overflow: hidden;
}
h1 {
margin: 0;
2017-08-10 23:14:45 +02:00
}
2017-08-10 23:47:40 +02:00
a {
2017-08-12 23:00:43 +02:00
color: $text-color-base;
&:hover {
color: $text-color-special;
}
}
#app {
2017-08-12 23:00:43 +02:00
max-width: 750px;
width: 95vw;
2017-08-12 23:00:43 +02:00
display: flex;
align-items: flex-start;
position: relative;
margin-top: $base-gap * 3;
}
main {
background: transparentize($background-primary, .5);
width: 100%;
position: relative;
z-index: 1;
}
.app-background {
position: absolute;
width: 100%;
height: 100%;
z-index: -1;
svg {
position: absolute;
top: 0;
transform: translate(-65%, -53%);
opacity: .2;
}
2017-08-10 23:47:40 +02:00
}
2017-08-10 23:14:45 +02:00
</style>