diff --git a/src/components/Header.vue b/src/components/Header.vue index 0a4ab80..645a589 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -13,8 +13,9 @@ home + RegionalRumble nationals - the kickoff + news tournaments team @@ -98,4 +100,4 @@ export default { } } } - \ No newline at end of file + diff --git a/src/scss/pages/_rumble.scss b/src/scss/pages/_rumble.scss index f7ffd39..767864c 100644 --- a/src/scss/pages/_rumble.scss +++ b/src/scss/pages/_rumble.scss @@ -38,12 +38,21 @@ .intro { position: relative; flex-direction: column; + + img.rumbleLogo, + img.rumbleRedLogo, + img.rumbleGreenLogo, + img.rumbleYellowLogo { + position: absolute; + display: block; + } img.rumbleLogo { - min-width: 400px; - width: 30%; - display: block; + top: 20%; + width: calc(100vw * 0.8); + max-width: 600px; transition: 0.15s linear; + z-index: 5; &:hover { cursor: pointer; @@ -53,11 +62,34 @@ } } + img.rumbleRedLogo, + img.rumbleGreenLogo, + img.rumbleYellowLogo { + top: 20%; + min-width: 400px; + width: 40%; + max-width: 840px; + visibility: hidden; + } + + img.rumbleLogo:hover ~ img.rumbleRedLogo { + animation: logoRedDisplay 0.25s ease-in-out; + } + + img.rumbleLogo:hover ~ img.rumbleGreenLogo { + animation: logoGreenDisplay 0.25s ease-in-out; + } + + img.rumbleLogo:hover ~ img.rumbleYellowLogo { + animation: logoYellowDisplay 0.25s ease-in-out; + } + img.rlLogo { + position: absolute; min-width: 100px; width: 7%; display: block; - margin-top: 5.5rem; + bottom: 10rem; } .scroll-indicator { @@ -94,7 +126,7 @@ display: flex; justify-content: center; align-items: center; - transition: 0.5s ease; + transition: all 0.5s ease; &.apac { background-image: url('https://cms.aplesports.com/storage/uploads/2023/09/18/65085dc28ca0frawkkim-KKz6NgO69yQ-unsplash.jpg'); @@ -176,6 +208,60 @@ } } +@keyframes logoRedDisplay { + 0% { + visibility: hidden; + } + 25% { + visibility: visible; + } + 40% { + visibility: hidden; + } + 75% { + visibility: hidden; + } + 100% { + visibility: hidden; + } +} + +@keyframes logoGreenDisplay { + 0% { + visibility: hidden; + } + 25% { + visibility: hidden; + } + 50% { + visibility: visible; + } + 60% { + visibility: hidden; + } + 100% { + visibility: hidden; + } +} + +@keyframes logoYellowDisplay { + 0% { + visibility: hidden; + } + 25% { + visibility: hidden; + } + 50% { + visibility: hidden; + } + 75% { + visibility: visible; + } + 90% { + visibility: hidden; + } +} + @keyframes moveScroll { 0% { transform: translate(0, 0); @@ -190,3 +276,34 @@ transform: translate(0, 0); } } + +@media screen and (max-width: 960px) { + .rumble > .selector { + flex-direction: column; + + div { + width: 100vw; + height: calc(100vh / 3); + + img { + width: auto; + min-height: 100px; + height: 30%; + transition: 0.5s ease; + } + + &:hover { + width: 100vw; + height: 70vh; + } + + &.apac:hover > img { + margin-top: 50%; + } + + &.ssa:hover > img { + margin-bottom: 50%; + } + } + } +} diff --git a/src/views/RegionalRumble.vue b/src/views/RegionalRumble.vue index 6a935ed..5ed03e9 100644 --- a/src/views/RegionalRumble.vue +++ b/src/views/RegionalRumble.vue @@ -3,6 +3,9 @@
+ + +
scroll