2019-03-30 22:55:48 +00:00
|
|
|
<template>
|
2019-08-19 12:49:20 +00:00
|
|
|
<div class="bg-blue-900">
|
|
|
|
|
<LazyBackground
|
|
|
|
|
:image-source="require('@/assets/bg-homepage-1.jpg')"
|
|
|
|
|
image-class="absolute inset-0"
|
|
|
|
|
transition-name="fade"
|
|
|
|
|
></LazyBackground>
|
2019-03-30 22:55:48 +00:00
|
|
|
|
2019-08-19 12:49:20 +00:00
|
|
|
<div class="h-screen flex flex-col items-center justify-center">
|
|
|
|
|
<div class="absolute top-0 right-0">
|
|
|
|
|
<div class="line line-top relative mr-4 mt-4 w-20 h-2"></div>
|
|
|
|
|
</div>
|
2019-04-16 12:28:42 +00:00
|
|
|
|
2019-08-19 12:49:20 +00:00
|
|
|
<div class="absolute bottom-0 left-0">
|
|
|
|
|
<div class="line line-bottom relative ml-4 mb-4 w-20 h-2"></div>
|
|
|
|
|
</div>
|
2019-04-16 12:28:42 +00:00
|
|
|
|
2019-08-19 12:49:20 +00:00
|
|
|
<div class="relative flex flex-col items-center w-full max-w-lg">
|
|
|
|
|
<img class="absolute logo" src="@/assets/Logo.svg" alt="logo" />
|
|
|
|
|
<SearchForm @formSubmit="redirect" />
|
|
|
|
|
</div>
|
2019-04-10 20:05:52 +00:00
|
|
|
</div>
|
2019-03-30 22:55:48 +00:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2019-08-19 12:49:20 +00:00
|
|
|
import LazyBackground from '@/components/LazyBackgroundImage.vue'
|
2019-04-08 20:06:22 +00:00
|
|
|
import SearchForm from '@/components/SearchForm.vue';
|
|
|
|
|
|
2019-03-30 22:55:48 +00:00
|
|
|
export default {
|
2019-04-08 20:06:22 +00:00
|
|
|
components: {
|
2019-08-19 12:49:20 +00:00
|
|
|
LazyBackground,
|
2019-04-08 20:06:22 +00:00
|
|
|
SearchForm
|
2019-03-30 22:55:48 +00:00
|
|
|
},
|
2019-08-19 12:49:20 +00:00
|
|
|
|
2019-03-30 22:55:48 +00:00
|
|
|
methods: {
|
2019-08-19 12:49:20 +00:00
|
|
|
redirect (summoner, region) {
|
2019-04-08 20:06:22 +00:00
|
|
|
this.$router.push(`/summoner/${region}/${summoner}`)
|
|
|
|
|
},
|
2019-03-30 22:55:48 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
2019-04-10 20:05:52 +00:00
|
|
|
|
|
|
|
|
<style scoped>
|
2019-04-16 12:28:42 +00:00
|
|
|
.line {
|
2019-08-19 12:49:20 +00:00
|
|
|
background: rgba(178, 245, 234, 0.55);
|
2019-04-16 12:28:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line::after {
|
2019-08-19 12:49:20 +00:00
|
|
|
content: "";
|
2019-04-16 12:28:42 +00:00
|
|
|
position: absolute;
|
|
|
|
|
width: 4.5rem;
|
2019-08-19 12:49:20 +00:00
|
|
|
height: 0.5rem;
|
|
|
|
|
background: rgba(178, 245, 234, 0.55);
|
2019-04-16 12:28:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line-top::after {
|
|
|
|
|
transform-origin: bottom right;
|
|
|
|
|
transform: rotate(90deg) translateX(100%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line-bottom::after {
|
|
|
|
|
transform-origin: top left;
|
|
|
|
|
transform: rotate(90deg) translateX(-100%);
|
2019-08-19 12:49:20 +00:00
|
|
|
margin-left: 0.5rem;
|
2019-04-16 12:28:42 +00:00
|
|
|
}
|
|
|
|
|
|
2019-04-10 20:05:52 +00:00
|
|
|
.logo {
|
|
|
|
|
top: -160px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|