beautify index page
This commit is contained in:
parent
0d834e2f57
commit
0c3548f9e1
5 changed files with 53 additions and 19 deletions
|
@ -1,4 +1,5 @@
|
||||||
@import "./colors";
|
@import "./colors";
|
||||||
|
@import url('https://fonts.googleapis.com/css?family=Raleway');
|
||||||
|
|
||||||
html, body, #__nuxt, #__layout {
|
html, body, #__nuxt, #__layout {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -25,3 +26,19 @@ a {
|
||||||
color: $c-link;
|
color: $c-link;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
border: 2px solid white;
|
||||||
|
width: fit-content;
|
||||||
|
padding: 10px;
|
||||||
|
|
||||||
|
color: white;
|
||||||
|
|
||||||
|
transition: 400ms;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: white;
|
||||||
|
color: $c-background;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="full-width">
|
<div>
|
||||||
<transition name="slide-vertical" mode="out-in">
|
<transition name="slide-vertical" mode="out-in">
|
||||||
<div class="logo" :key="debouncedLogoText">
|
<div class="logo" :key="debouncedLogoText">
|
||||||
<span class="text">{{ debouncedLogoText }}</span>
|
<span class="text">{{ debouncedLogoText }}</span>
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
const debounceLogoText = _debounce((self, newValue) => {
|
const debounceLogoText = _debounce((self, newValue) => {
|
||||||
self.debouncedLogoText = newValue;
|
self.debouncedLogoText = newValue;
|
||||||
}, 200);
|
}, 100);
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "CtexxxLogo",
|
name: "CtexxxLogo",
|
||||||
|
@ -39,27 +39,21 @@
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import "~@/assets/_responsive";
|
@import "~@/assets/_responsive";
|
||||||
|
@import url('https://fonts.googleapis.com/css?family=Montserrat+Alternates');
|
||||||
|
|
||||||
.slide-vertical-enter-active {
|
.slide-vertical-enter-active {
|
||||||
transition: all 0.5s ease-out;
|
transition: all 0.3s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.slide-vertical-leave-active {
|
.slide-vertical-leave-active {
|
||||||
transition: all 0.5s ease-in;
|
transition: all 0.3s ease-in;
|
||||||
}
|
}
|
||||||
|
|
||||||
.slide-vertical-enter-to {
|
.slide-vertical-enter-to {
|
||||||
transform: translateY(0);
|
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.slide-vertical-enter {
|
.slide-vertical-enter, .slide-vertical-leave-to {
|
||||||
transform: translateY(-100px);
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.slide-vertical-leave-to {
|
|
||||||
transform: translateY(100px);
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,6 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
transition: 0.5s ease-out;
|
transition: 0.5s ease-out;
|
||||||
transform: scale(1);
|
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -85,10 +84,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
.box {
|
|
||||||
transform: scale(1.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,6 @@ module.exports = {
|
||||||
],
|
],
|
||||||
link: [
|
link: [
|
||||||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
|
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
|
||||||
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Montserrat+Alternates|Raleway'}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -22,7 +21,9 @@ module.exports = {
|
||||||
author: "Moritz Ruth",
|
author: "Moritz Ruth",
|
||||||
mobileAppIOS: false,
|
mobileAppIOS: false,
|
||||||
nativeUI: true,
|
nativeUI: true,
|
||||||
"short_name": "ctexxx"
|
"short_name": "ctexxx",
|
||||||
|
"background_color": "#212121",
|
||||||
|
"theme_color": "#212121"
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
@mouseover.native="logoText = account.username" @mouseleave.native="logoText = null"
|
@mouseover.native="logoText = account.username" @mouseleave.native="logoText = null"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="link-section">
|
||||||
|
<nuxt-link class="button" to="/projects">My Projects</nuxt-link>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -58,5 +61,29 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
|
|
||||||
|
.link-section {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 30px;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
align-content: center;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
.button {
|
||||||
|
margin: 10px;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: "→";
|
||||||
|
transform: translateY(-4px) scale(1.7);
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue