import styled, { css } from 'styled-components'; import { Container, ContainerProps } from '../../shared/Container.style'; import { Link } from '../../shared/Link.style'; import { mediaMin } from '../../../theme/mixins'; export const Mention = styled.div` img { display: none; } ${mediaMin.medium(css` display: inline-block; margin-bottom: 20px; position: relative; left: 35%; transform: translateX(-20%); p { text-align: left; display: inline-block; margin-bottom: 0; vertical-align: bottom; strong { display: block; } } img { display: inline-block; height: 40px; margin-right: 20px; } `)} `; // eslint-disable-next-line @typescript-eslint/no-unused-vars export const HeroContainer = styled(({ color, ...rest }) => )` padding: 70px 0 20px; background-image: linear-gradient( to right, ${props => props.theme.default.colors.blue}, ${props => props.theme.default.colors.purple} ); &, h1, h3 { color: ${props => props.theme.default.colors.white}; } h3 { margin: 20px 0 30px; } > div { text-align: center; padding: 90px 2% 40px; position: relative; } // bottom curve > svg { position: absolute; bottom: -5px; } ${Link} { display: inline-block; margin-bottom: 40px; ${mediaMin.medium(css` margin-bottom: 20px; `)} } `; interface BubbleProps { size: number; distance: number; position: number; time: number; delay: number; } // eslint-disable-next-line @typescript-eslint/no-unused-vars export const Bubble = styled(({ size, distance, position, time, delay, ...rest }) =>
)` --size: ${props=> props.size}rem; --distance: ${props=> props.distance}rem; --position: ${props=> props.position}%; --time: ${props=> props.time}s; --delay: ${props=> props.delay}s; position: absolute; left: var(--position, 50%); background: ${props => props.theme.default.colors.black}; border-radius: 100%; animation: bubble-size var(--time, 10s) ease-in infinite var(--delay, 0s), bubble-move var(--time, 10s) ease-in infinite var(--delay, 0s); transform: translate3d(-50%, 100%, 0); @keyframes bubble-size { 0%, 75% { width: var(--size, 4rem); height: var(--size, 4rem); } 100% { width:0; height:0; } } @keyframes bubble-move { 0% { bottom:0; } 100% { bottom:var(--distance, 20rem); } } `; export const Bubbles = styled.div` max-width: 100%!important; margin: 0!important; position: absolute!important; bottom:0; left:0; right:0; height:100%; filter:url("#blob"); overflow: hidden; opacity: .05; `;