forked from CSGOWTF/csgowtf
fix-attempt 3 on issue 59
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<img alt="" class="bg-img" src="">
|
||||||
<header>
|
<header>
|
||||||
<Nav/>
|
<Nav/>
|
||||||
</header>
|
</header>
|
||||||
|
@@ -23,6 +23,16 @@
|
|||||||
mask-size: 200% 100%;
|
mask-size: 200% 100%;
|
||||||
animation: placeholder-wave-alt 2.5s linear infinite;
|
animation: placeholder-wave-alt 2.5s linear infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bg-img {
|
||||||
|
z-index: -1;
|
||||||
|
position: fixed;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes placeholder-wave-alt {
|
@keyframes placeholder-wave-alt {
|
||||||
100% {
|
100% {
|
||||||
mask-position: -200% 0%;
|
mask-position: -200% 0%;
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<img alt="" class="bg-img" src="">
|
|
||||||
|
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="container-lg text-center">
|
<div class="container-lg text-center">
|
||||||
<h3>Recent matches</h3>
|
<h3>Recent matches</h3>
|
||||||
@@ -73,6 +71,7 @@ export default {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
document.getElementById('app').style.background = 'rgba(0, 0, 0, .7)'
|
document.getElementById('app').style.background = 'rgba(0, 0, 0, .7)'
|
||||||
|
document.querySelector('.bg-img').style.display = 'initial'
|
||||||
})
|
})
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
@@ -92,15 +91,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.bg-img {
|
|
||||||
z-index: -1;
|
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container-lg {
|
.container-lg {
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
|
|
||||||
|
@@ -98,6 +98,7 @@ export default {
|
|||||||
store.commit('resetPlayerDetails')
|
store.commit('resetPlayerDetails')
|
||||||
|
|
||||||
document.getElementById('app').style.background = 'none'
|
document.getElementById('app').style.background = 'none'
|
||||||
|
document.querySelector('.bg-img').style.display = 'none'
|
||||||
})
|
})
|
||||||
|
|
||||||
return {recentVisited, GoToPlayer, removeRecentVisited}
|
return {recentVisited, GoToPlayer, removeRecentVisited}
|
||||||
|
@@ -1,7 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="overlay" :style="{minHeight: pHeight + 'px'}">
|
<div class="overlay" :style="{minHeight: pHeight + 'px'}">
|
||||||
<img alt="" class="bg-img" src="">
|
|
||||||
|
|
||||||
<div class="match-wrapper">
|
<div class="match-wrapper">
|
||||||
<div class="head row m-auto text-center">
|
<div class="head row m-auto text-center">
|
||||||
<div class="map-score">
|
<div class="map-score">
|
||||||
@@ -341,6 +339,7 @@ export default {
|
|||||||
scoreWrapper.style.minHeight = height + 'px'
|
scoreWrapper.style.minHeight = height + 'px'
|
||||||
|
|
||||||
document.getElementById('app').style.background = 'linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.85) 70%, rgba(0, 0, 0, .6) 100%)'
|
document.getElementById('app').style.background = 'linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.85) 70%, rgba(0, 0, 0, .6) 100%)'
|
||||||
|
document.querySelector('.bg-img').style.display = 'initial'
|
||||||
})
|
})
|
||||||
|
|
||||||
window.onresize = () => {
|
window.onresize = () => {
|
||||||
@@ -359,15 +358,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.bg-img {
|
|
||||||
z-index: -1;
|
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.head {
|
.head {
|
||||||
height: 230px;
|
height: 230px;
|
||||||
background: linear-gradient(90deg,
|
background: linear-gradient(90deg,
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<img alt="" class="bg-img" src="">
|
|
||||||
|
|
||||||
<div class="wrapper" :style="{minHeight: pHeight + 'px'}">
|
<div class="wrapper" :style="{minHeight: pHeight + 'px'}">
|
||||||
<div class="container-lg">
|
<div class="container-lg">
|
||||||
<div v-if="store.state.playerDetails.name">
|
<div v-if="store.state.playerDetails.name">
|
||||||
@@ -367,6 +365,7 @@ export default {
|
|||||||
// console.log(store.state.playerDetails)
|
// console.log(store.state.playerDetails)
|
||||||
|
|
||||||
document.getElementById('app').style.background = 'rgba(0, 0, 0, .7)'
|
document.getElementById('app').style.background = 'rgba(0, 0, 0, .7)'
|
||||||
|
document.querySelector('.bg-img').style.display = 'initial'
|
||||||
})
|
})
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
@@ -407,15 +406,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.bg-img {
|
|
||||||
z-index: -1;
|
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
.load-more {
|
.load-more {
|
||||||
padding: 1rem 0;
|
padding: 1rem 0;
|
||||||
|
Reference in New Issue
Block a user