LeagueStats/client/src/views/Home.vue

87 lines
2.1 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
2023-09-20 20:01:43 +00:00
image-source="/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 h-screen flex-col items-center justify-center">
<div class="absolute right-0 top-0">
<div class="line line-top relative mr-4 mt-4 h-2 w-20"></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="line line-bottom relative mb-4 ml-4 h-2 w-20"></div>
2019-08-19 12:49:20 +00:00
</div>
2019-04-16 12:28:42 +00:00
<div class="relative flex w-full max-w-lg flex-col items-center">
<img class="logo absolute" src="/img/Logo.svg" alt="logo" />
<SearchForm @formSubmit="redirect" :homepage="true" />
2019-08-19 12:49:20 +00:00
</div>
<p
class="horizontal-center absolute bottom-0 pb-4 text-center text-xxs leading-tight text-blue-300"
>
2023-09-20 20:01:43 +00:00
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,
2023-09-20 20:01:43 +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}`)
},
},
metaInfo() {
return {
title: 'LeagueStats.gg',
}
2023-09-20 20:01:43 +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 {
2023-09-20 20:01:43 +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>