/** * inspired by https://codepen.io/avstorm/pen/RwNzPNN */ import styled from "styled-components" import MainContent from "./MainContent" import theming from "../styles/theming" const StyledContainer = styled(MainContent)` display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; animation: fadein 2s; @keyframes fadein { from { opacity: 0; } 50% { opacity: 0; } to { opacity: 1; } } ` const StyledSVG = styled.svg` --color: ${(props) => theming.theme(props.theme.currentTheme, { light: theming.light.color1, dark: theming.dark.color1, })}; display: block; margin: 1rem; margin-bottom: 4.5rem; transform: scale(2); #teabag { transform-origin: top center; transform: rotate(3deg); animation: swingAnimation 2s infinite; } #steamL { stroke-dasharray: 13; stroke-dashoffset: 13; animation: steamLargeAnimation 2s infinite; } #steamR { stroke-dasharray: 9; stroke-dashoffset: 9; animation: steamSmallAnimation 2s infinite; } @keyframes swingAnimation { 50% { transform: rotate(-3deg); } } @keyframes steamLargeAnimation { 0% { stroke-dashoffset: 13; opacity: 0.6; } 100% { stroke-dashoffset: 39; opacity: 0; } } @keyframes steamSmallAnimation { 10% { stroke-dashoffset: 9; opacity: 0.6; } 80% { stroke-dashoffset: 27; opacity: 0; } 100% { stroke-dashoffset: 27; opacity: 0; } } ` const Loading = () => { return (

Loading...

) } export default Loading