mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-05 23:43:37 +02:00
ui: fix header waves being cut
This commit is contained in:
@@ -11,10 +11,10 @@ export const HeaderWrapper = styled.header`
|
|||||||
position: relative;
|
position: relative;
|
||||||
min-height: auto;
|
min-height: auto;
|
||||||
background: #121240;
|
background: #121240;
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
&.is-home {
|
&.is-home {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
@@ -60,6 +60,7 @@ export const FadedBottomWave = styled.div`
|
|||||||
right: 0;
|
right: 0;
|
||||||
transition: opacity 0.5s, transform 0.5s;
|
transition: opacity 0.5s, transform 0.5s;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
position: static;
|
position: static;
|
||||||
|
|||||||
@@ -1,19 +1,21 @@
|
|||||||
import styled from "styled-components"
|
import styled, { css } from "styled-components"
|
||||||
import WavesBottom from "../../images/waves-bot.svg"
|
import WavesBottom from "../../images/waves-bot.svg"
|
||||||
import WavesTop from "../../images/waves-top.svg"
|
import WavesTop from "../../images/waves-top.svg"
|
||||||
|
|
||||||
export const StyledWavesTop = styled(WavesTop)`
|
const waves = css`
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
pointer-events: none;
|
||||||
|
`
|
||||||
|
|
||||||
|
export const StyledWavesTop = styled(WavesTop)`
|
||||||
|
${waves};
|
||||||
top: 0;
|
top: 0;
|
||||||
`
|
`
|
||||||
|
|
||||||
export const StyledWavesBottom = styled(WavesBottom)`
|
export const StyledWavesBottom = styled(WavesBottom)`
|
||||||
opacity: 0.5;
|
${waves};
|
||||||
width: 100vw;
|
|
||||||
max-width: 100%;
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
`
|
`
|
||||||
|
|||||||
Reference in New Issue
Block a user