Skip to content

Commit 3200a0f

Browse files
committed
feat: add welcome banner
1 parent f87d88f commit 3200a0f

39 files changed

+299
-67
lines changed
Lines changed: 57 additions & 0 deletions
Loading
Lines changed: 26 additions & 0 deletions
Loading

view/javascript/assets/scss/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
border: 0;
9090
outline: 0;
9191
box-shadow: none;
92+
background-color: transparent;
9293
&:focus, &:active {
9394
border: 0;
9495
outline: 0;

view/javascript/components/banner.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
font-weight: 600;
4141
font-stretch: normal;
4242
font-style: normal;
43-
line-height: 0.8;
43+
line-height: 1.5;
4444
letter-spacing: 0.4px;
4545
text-align: left;
46-
color: #1a1a1a;
46+
color: #1a1a1a!important;
4747
margin-bottom: 20px;
4848
}
4949
&__description {

view/javascript/components/development.vue

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
<div class="development__wrapper_title">
88
{{ $t('textCmsConnect') }}
99
</div>
10-
<div class="development__cms_connect">
11-
{{ information.cmsConnect }}
12-
</div>
10+
<input
11+
type="text"
12+
class="development__cms_connect"
13+
:value="information.cmsConnect"
14+
>
1315
<div class="development__wrapper_text">
1416
{{ $t('descriptionCmsConnect') }}
1517
</div>
@@ -76,9 +78,9 @@ export default {
7678
.development {
7779
&__cms_connect {
7880
height: 54px;
79-
background-color: #efeff1;
80-
padding: 12px 24px;
81-
line-height: 30px;
81+
background-color: #efeff1!important;
82+
padding: 12px 24px!important;
83+
line-height: 30px!important;
8284
font-family: 'Open Sans', sans-serif;
8385
font-size: 24px;
8486
font-weight: 600;
@@ -88,6 +90,8 @@ export default {
8890
text-align: left;
8991
color: $black;
9092
margin-bottom: 20px;
93+
border: none!important;
94+
width: 100%;
9195
}
9296
&__wrapper_text {
9397
font-family: 'Open Sans', sans-serif;

view/javascript/components/header.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
<div class="vf-header__wrapper">
55
<header-logo />
66
<b-navbar-nav class="align-items-center vf-header__right_nav">
7-
<header-activation />
7+
<header-activation v-if="cms.builds.length > 0" />
88
<b-button
9+
v-if="cms.builds.length > 0"
910
:disabled="cms.generating || loading"
1011
variant="success"
1112
class="vf-header__button_rebuild"

view/javascript/components/header/Account.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export default {
101101
102102
.dropdown {
103103
margin: 0;
104+
list-style: none;
104105
&:hover {
105106
> .dropdown-menu {
106107
display: block;

view/javascript/components/information.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export default {
9696
letter-spacing: 0.16px;
9797
text-align: right;
9898
color: $black;
99+
word-break: break-all;
99100
}
100101
}
101102
}
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
<template>
2+
<div class="vf-welcome">
3+
<img
4+
:src="require('~/assets/img/Top_image.svg')"
5+
alt=""
6+
class="vf-welcome__top_img"
7+
>
8+
<div class="vf-welcome__title">
9+
{{ $t('textTitle') }}
10+
</div>
11+
<div class="vf-welcome__description">
12+
{{ $t('textDescription') }}
13+
</div>
14+
<div class="text-center">
15+
<b-button
16+
:disabled="cms.generating || loading"
17+
variant="success"
18+
class="vf-welcome__button_rebuild"
19+
@click="handleGenerate"
20+
>
21+
<b-spinner
22+
v-if="cms.generating || loading"
23+
type="grow"
24+
/>
25+
{{ $t('buttonRebuild') }}
26+
</b-button>
27+
</div>
28+
<img
29+
:src="require('~/assets/img/Bottom_image.svg')"
30+
alt=""
31+
class="vf-welcome__bottom_img"
32+
>
33+
</div>
34+
</template>
35+
<script>
36+
import {mapGetters} from 'vuex'
37+
export default {
38+
data() {
39+
return {
40+
loading: false
41+
}
42+
},
43+
computed: {
44+
...mapGetters({
45+
cms: 'cms/get'
46+
})
47+
},
48+
mounted() {
49+
if(this.cms.generating) {
50+
const interval = setInterval(async () => {
51+
await this.$store.dispatch('cms/load', {id: this.cms.id})
52+
this.$apolloClient.defaultClient.clearStore()
53+
if(!this.cms.generating) {
54+
clearInterval(interval)
55+
}
56+
}, 3000)
57+
}
58+
},
59+
methods: {
60+
async handleGenerate() {
61+
this.loading = true
62+
await this.$store.dispatch('cms/generate', {id: this.cms.id})
63+
const interval = setInterval(async () => {
64+
await this.$store.dispatch('cms/load', {id: this.cms.id})
65+
this.$apolloClient.defaultClient.clearStore()
66+
if(!this.cms.generating) {
67+
this.loading = false
68+
clearInterval(interval)
69+
}
70+
}, 3000)
71+
}
72+
}
73+
}
74+
</script>
75+
<i18n locale="en">
76+
{
77+
"textTitle": "All set. Let's build your website.",
78+
"textDescription": "You are now ready to turn your old-fashioned website into a Progressive Web App and a Single Page Application in less then a minute. Ready, Set, Build!",
79+
"buttonRebuild": "ReBuild"
80+
}
81+
</i18n>
82+
<style lang="scss">
83+
.vf-welcome {
84+
border-radius: 3px;
85+
box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.1);
86+
padding: 85px 100px 50px;
87+
position: relative;
88+
margin-bottom: 60px;
89+
z-index: 3;
90+
&__top_img {
91+
position: absolute;
92+
top: 0;
93+
left: 60px;
94+
width: calc(100% - 120px);
95+
height: auto;
96+
z-index: -1;
97+
}
98+
&__bottom_img {
99+
position: absolute;
100+
bottom: 0;
101+
left: 60px;
102+
width: calc(100% - 120px);
103+
height: auto;
104+
z-index: -1;
105+
}
106+
&__title {
107+
font-family: 'Open Sans', sans-serif;
108+
font-size: 40px;
109+
font-weight: 600;
110+
font-stretch: normal;
111+
font-style: normal;
112+
line-height: 1.25;
113+
letter-spacing: 0.4px;
114+
text-align: center;
115+
color: $black;
116+
margin-bottom: 10px;
117+
z-index: 1;
118+
}
119+
&__description {
120+
font-family: 'Open Sans', sans-serif;
121+
font-size: 18px;
122+
font-weight: normal;
123+
font-stretch: normal;
124+
font-style: normal;
125+
line-height: 1.56;
126+
letter-spacing: 0.18px;
127+
text-align: center;
128+
color: $warm-grey-two;
129+
margin-bottom: 30px;
130+
z-index: 1;
131+
}
132+
&__button_rebuild {
133+
z-index: 1;
134+
}
135+
}
136+
</style>

view/javascript/dist/0.796f2121f3c7eee7a20d.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)