2019-03-30 22:55:48 +00:00
< template >
2020-06-11 18:55:39 +00:00
< div class = "relative overflow-hidden bg-blue-900" >
2019-08-19 12:49:20 +00:00
< LazyBackground
2019-09-14 21:19:10 +00:00
: 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
2020-06-11 18:55:39 +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" >
2020-06-11 18:55:39 +00:00
< 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" >
2020-06-11 18:55:39 +00:00
< 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" >
2019-09-14 21:19:10 +00:00
< img class = "absolute logo" src = "@/assets/img/Logo.svg" alt = "logo" / >
2019-08-19 12:49:20 +00:00
< SearchForm @formSubmit ="redirect" / >
< / div >
2020-03-30 13:06:57 +00:00
< p
2020-06-11 18:55:39 +00:00
class = "absolute bottom-0 pb-4 leading-tight text-center text-blue-300 horizontal-center text-xxs"
2020-03-30 13:06:57 +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 >
2020-02-13 19:16:13 +00:00
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 : {
2020-03-30 13:06:57 +00:00
redirect ( summoner , region ) {
2019-04-08 20:06:22 +00:00
this . $router . push ( ` /summoner/ ${ region } / ${ summoner } ` )
} ,
2020-06-26 15:27:22 +00:00
} ,
metaInfo ( ) {
return {
title : 'LeagueStats.gg' ,
}
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.5 rem ;
2019-08-19 12:49:20 +00:00
height : 0.5 rem ;
background : rgba ( 178 , 245 , 234 , 0.55 ) ;
2019-04-16 12:28:42 +00:00
}
. line - top : : after {
transform - origin : bottom right ;
transform : rotate ( 90 deg ) translateX ( 100 % ) ;
}
. line - bottom : : after {
transform - origin : top left ;
transform : rotate ( 90 deg ) translateX ( - 100 % ) ;
2019-08-19 12:49:20 +00:00
margin - left : 0.5 rem ;
2019-04-16 12:28:42 +00:00
}
2019-04-10 20:05:52 +00:00
. logo {
top : - 160 px ;
}
< / style >