LeagueStats/client/src/views/Home.vue

79 lines
2 KiB
Vue
Raw Normal View History

2019-03-30 22:55:48 +00:00
<template>
<div class="relative overflow-hidden bg-blue-900">
2019-08-19 12:49:20 +00:00
<LazyBackground
:image-source="require('@/assets/img/bg-homepage-1.jpg')"
2019-10-12 14:15:21 +00:00
image-class="absolute inset-0 bg-center"
2019-08-19 12:49:20 +00:00
transition-name="fade"
></LazyBackground>
2019-03-30 22:55:48 +00:00
<div class="flex flex-col items-center justify-center h-screen">
2019-08-19 12:49:20 +00:00
<div class="absolute top-0 right-0">
<div class="relative w-20 h-2 mt-4 mr-4 line line-top"></div>
2019-08-19 12:49:20 +00:00
</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="relative w-20 h-2 mb-4 ml-4 line line-bottom"></div>
2019-08-19 12:49:20 +00:00
</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/img/Logo.svg" alt="logo" />
2019-08-19 12:49:20 +00:00
<SearchForm @formSubmit="redirect" />
</div>
<p
class="absolute bottom-0 pb-4 leading-tight text-center text-blue-300 horizontal-center text-xxs"
>
LeagueStats.gg isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing Riot Games properties.
<br />Riot Games, and all associated properties are trademarks or registered trademarks of Riot Games, Inc.
</p>
2019-04-10 20:05:52 +00:00
</div>
2019-03-30 22:55:48 +00:00
</div>
</template>
<script>
import LazyBackground from '@/components/Common/LazyBackgroundImage.vue'
import SearchForm from '@/components/Form/SearchForm.vue'
2019-04-08 20:06:22 +00:00
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: {
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
}
2019-08-23 14:48:16 +00:00
}
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>