-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(home): add releases changelogs & page content mngt ✨
- Loading branch information
1 parent
ba9c247
commit 8823c7a
Showing
8 changed files
with
322 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
<template> | ||
<section id="hero"> | ||
<v-row no-gutters> | ||
<v-img | ||
:min-height="'calc(100vh/' + ratio + ' - ' + $vuetify.application.top + 'px)'" | ||
:max-height="'calc(100vh/' + ratio + ' - ' + $vuetify.application.top + 'px)'" | ||
:src=" | ||
config.home.temporalBackground | ||
? generateTemporalBackground() | ||
: require('@/assets/images/background.jpg') | ||
" | ||
> | ||
<v-theme-provider dark> | ||
<v-container fill-height> | ||
<v-row align="center" class="white--text mx-auto" justify="center"> | ||
<v-col class="white--text text-center" cols="12" tag="h1"> | ||
<span | ||
v-if="app.title" | ||
:class="[$vuetify.breakpoint.smAndDown ? 'display-3' : 'display-4']" | ||
class="font-weight-black" | ||
>{{ app.title }}</span | ||
> | ||
<br /> | ||
<span | ||
v-if="app.subtitle" | ||
class="font-weight-light" | ||
:class="[$vuetify.breakpoint.smAndDown ? 'display-1' : 'display-1']" | ||
>{{ app.subtitle }}</span | ||
> | ||
</v-col> | ||
<v-col class="white--text text-center" cols="12"> | ||
<v-btn | ||
class="align-self-end" | ||
fab | ||
outlined | ||
@click="$vuetify.goTo('#about-me')" | ||
data-aos="fade-up" | ||
> | ||
<v-icon>fa-angle-down</v-icon> | ||
</v-btn> | ||
</v-col> | ||
<v-col | ||
align="center" | ||
class="white--text text-center" | ||
cols="11" | ||
xs="10" | ||
sm="9" | ||
md="7" | ||
lg="6" | ||
xl="5" | ||
style="bottom: 10%; position: absolute; opacity:75%;" | ||
data-aos="fade-up" | ||
v-if="config.home.subscriptions && subscribe" | ||
> | ||
<v-text-field | ||
v-model="email" | ||
:flat="config.vuetify.theme.flat" | ||
:rules="[rules.email]" | ||
:append-icon="'fa-envelope'" | ||
@click:append="createSubscription" | ||
@keydown.enter="createSubscription" | ||
height="55" | ||
name="Mail" | ||
placeholder="Stay informed by email." | ||
class="centered-input" | ||
solo | ||
rounded | ||
light | ||
></v-text-field> | ||
</v-col> | ||
</v-row> | ||
</v-container> | ||
</v-theme-provider> | ||
</v-img> | ||
</v-row> | ||
</section> | ||
</template> | ||
|
||
<script> | ||
/** | ||
* Module dependencies. | ||
*/ | ||
import { mapGetters } from 'vuex'; | ||
/** | ||
* Export default | ||
*/ | ||
export default { | ||
name: 'homeBannerComponent', | ||
props: ['ratio', 'subscribe', 'app'], | ||
data() { | ||
return { | ||
valid: false, | ||
password: 'Password', | ||
rules: { | ||
email: (v) => /\S+@\S+\.\S+/.test(v) || '', | ||
}, | ||
}; | ||
}, | ||
computed: { | ||
...mapGetters(['theme', 'subscription']), | ||
email: { | ||
get() { | ||
return this.subscription.email; | ||
}, | ||
set(email) { | ||
this.save = true; | ||
this.$store.commit('subscription_update', { email }); | ||
}, | ||
}, | ||
}, | ||
methods: { | ||
generateTemporalBackground() { | ||
return `${this.config.home.temporalBackground}/${`0${new Date().getHours()}`.slice(-2)}.jpg`; | ||
}, | ||
createSubscription() { | ||
if (this.rules.email(this.subscription.email)) { | ||
this.$store | ||
.dispatch('createSubscription', this.subscription) | ||
.catch((err) => console.log(err)); | ||
} | ||
}, | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<template> | ||
<section | ||
id="features" | ||
class="py-12" | ||
:style="{ background: config.vuetify.theme.themes[theme].surface }" | ||
v-if="links.length > 0" | ||
> | ||
<v-container> | ||
<v-row> | ||
<v-col | ||
v-for="({ items, title }, i) in links.filter(section => section.items)" | ||
:key="i" | ||
cols="12" | ||
:md="12 / links.filter(section => section.items).length" | ||
> | ||
<v-card | ||
:flat="config.vuetify.theme.flat" | ||
:style="{ background: config.vuetify.theme.themes[theme].surface }" | ||
> | ||
<v-card-title class="justify-center text--secondary" v-text="title"></v-card-title> | ||
<v-list dense :style="{ background: config.vuetify.theme.themes[theme].surface }"> | ||
<v-list-item-group color="primary"> | ||
<v-list-item v-for="(item, i) in items" :key="i"> | ||
<v-list-item-content> | ||
<a :href="item.url"> | ||
<v-list-item-title class="text-center"> | ||
<v-icon class="pr-2" small>{{ item.icon }}</v-icon> {{ item.label }} | ||
</v-list-item-title> | ||
</a> | ||
</v-list-item-content> | ||
</v-list-item> | ||
</v-list-item-group> | ||
</v-list> | ||
</v-card> | ||
</v-col> | ||
</v-row> | ||
</v-container> | ||
</section> | ||
</template> | ||
|
||
<script> | ||
/** | ||
* Module dependencies. | ||
*/ | ||
import { mapGetters } from 'vuex'; | ||
/** | ||
* Export default | ||
*/ | ||
export default { | ||
name: 'homeLinksComponent', | ||
props: ['links'], | ||
computed: { | ||
...mapGetters(['theme']), | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.