This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/src/views/Startpage.vue

124 lines
3.1 KiB
Vue
Raw Normal View History

2019-05-22 12:51:57 +00:00
<template>
<div style="">
2019-06-20 16:04:08 +00:00
<div class="headerStartpage">
2019-05-22 12:51:57 +00:00
<h1>{{ nameBig }}<span class="small">{{ nameSmall }}</span></h1>
<h2>{{ slogen }}</h2>
</div>
<v-container grid-list-md>
<v-layout row wrap>
<v-flex md12>
<h1>Services</h1>
<p>Mit deinem KeksAccount Username kannst du dich u.a. bei folgenden Servicen einloggen und diese nutzten. </p>
</v-flex>
2019-07-26 09:13:36 +00:00
</v-layout>
<v-layout row wrap>
<v-flex md4 xs12 text-xs-center v-for="(item, index) in apps">
2019-05-22 12:51:57 +00:00
<v-card>
<v-layout>
<v-flex xs5>
<v-img
2019-07-26 09:13:36 +00:00
:src="getImageUrl(item.id)"
2019-05-22 12:51:57 +00:00
height="125px"
contain
></v-img>
</v-flex>
<v-flex xs7>
<v-card-title primary-title>
<div>
2019-07-26 09:13:36 +00:00
<div class="headline">{{ item.name }}</div>
<div>{{ item.description }}</div>
2019-05-22 12:51:57 +00:00
</div>
</v-card-title>
</v-flex>
</v-layout>
<v-divider light></v-divider>
<v-card-actions class="pa-3">
<v-spacer></v-spacer>
2019-07-26 09:13:36 +00:00
<v-btn icon>
<v-icon @click="navigateToApp(item)">input</v-icon>
</v-btn>
2019-05-22 12:51:57 +00:00
</v-card-actions>
</v-card>
</v-flex>
</v-layout>
</v-container>
</div>
</template>
<script>
2019-07-26 09:13:36 +00:00
import AppService from '../services/Apps'
2019-05-22 12:51:57 +00:00
export default {
data () {
return {
nameBig: '',
nameSmall: '',
slogen: '',
menu: [
{ icon: 'home', title: 'Login' },
{ icon: 'info', title: 'Invited' },
{ icon: 'warning', title: 'Register' }
2019-07-26 09:13:36 +00:00
],
apps: []
2019-05-22 12:51:57 +00:00
}
},
2019-07-26 09:13:36 +00:00
methods: {
'getStartpageApps': function () {
AppService.getStartPageApps().then((res) => {
this.apps = res.data.data;
});
},
'getImageUrl' : function (id) {
return AppService.getAppImage(id);
},
},
2019-05-22 12:51:57 +00:00
mounted: function() {
this.nameBig = this.$store.getters.getSettingValue("name_big");
this.nameSmall = this.$store.getters.getSettingValue("name_small");
this.slogen = this.$store.getters.getSettingValue("name_slogen");
2019-07-26 09:13:36 +00:00
this.getStartpageApps();
2019-05-22 12:51:57 +00:00
}
}
</script>
<style>
2019-06-20 16:04:08 +00:00
.headerStartpage {
2019-05-22 12:51:57 +00:00
background-image: url('~@/assets/manhattan-407703_1920.jpg');
background-repeat: no-repeat;
margin-top: -100px;
2019-06-20 16:04:08 +00:00
height:90vh;
2019-05-22 12:51:57 +00:00
text-align: center;
}
2019-06-20 16:04:08 +00:00
.headerStartpage h1{
2019-05-22 12:51:57 +00:00
padding-top: 200px;
font-size: 56px !important;
font-weight: 400;
line-height: 32px !important;
letter-spacing: normal !important;
}
2019-06-20 16:04:08 +00:00
.headerStartpage h1 .small{
2019-05-22 12:51:57 +00:00
font-weight: 300 !important;
}
2019-06-20 16:04:08 +00:00
.headerStartpage h2{
2019-05-22 12:51:57 +00:00
padding-top: 30px;
font-size: 34px !important;
font-weight: 300;
line-height: 32px !important;
letter-spacing: normal !important;
}
h1{
font-weight: 300;
line-height: 32px !important;
letter-spacing: normal !important;
}
h2{
font-weight: 300;
line-height: 32px !important;
letter-spacing: normal !important;
}
</style>