1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/renderer/_vue/components/LandingPage.vue
Roman e8624c845a Merge branch 'master' into lens_restructure
# Conflicts:
#	Makefile
#	dashboard/yarn.lock
#	package.json
#	yarn.lock
2020-06-09 15:15:19 +03:00

66 lines
1.5 KiB
Vue

<template>
<div class="content">
<div class="landing-page">
<b-container fluid class="h-100">
<!-- wrapper for center/center align -->
<b-row class="h-100">
<b-col sm="12" class="my-auto">
<div>
<b-row align-h="center" class="banner">
<b-col sm="8">
<h1 v-if="clusters.length === 0" class="display-4 text-center">
Welcome!
</h1>
<p v-if="clusters.length === 0" class="text-center">
Get started by associating one or more clusters to Lens.
</p>
</b-col>
</b-row>
</div>
</b-col>
</b-row>
</b-container>
</div>
</div>
</template>
<script>
export default {
name: 'LandingPage',
components: {},
methods: {},
computed: {
workspaces: function() {
return this.$store.getters.workspaces;
},
clusters: function() {
return this.$store.getters.clusters;
}
}
}
</script>
<style scoped lang="scss">
.landing-page{
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background: #282b2f url(../assets/img/crane.svg) no-repeat;
background-position: 0px 35%;
background-size: 85%;
background-clip: content-box;
.banner {
h1 {
text-align: center;
font-size: 28px;
font-weight: normal;
}
p {
font-size: 14px;
}
}
}
</style>