File size: 1,134 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
import { keyframes } from '@emotion/react';
import styled from '@emotion/styled';
const LoadingCard = styled.div`
padding: 24px 0;
border-bottom: 1px solid var( --studio-gray-5 );
margin-top: 10px;
@media ( max-width: 600px ) {
padding: 8px 13px;
margin: 5px 3px;
border: none;
}
`;
const pulse = keyframes`
0% {
opacity: 1;
}
70% {
opacity: 0.5;
}
100% {
opacity: 1;
}
`;
const LoadingTitle = styled.h1`
font-size: 14px;
content: '';
font-weight: 400;
background: var( --studio-gray-5 );
color: var( --studio-gray-5 );
width: 40%;
margin: 3px 0 0 35px;
padding: 0;
position: relative;
animation: ${ pulse } 2s ease-in-out infinite;
height: 20px;
@media ( max-width: 600px ) {
height: 10px;
width: 40%;
}
::before {
content: '';
display: block;
position: absolute;
left: -35px;
top: -3px;
width: 27px;
height: 27px;
background: var( --studio-gray-5 );
border-radius: 100%;
@media ( max-width: 600px ) {
width: 12px;
height: 12px;
}
}
`;
export default function LoadingLine() {
return (
<LoadingCard>
<LoadingTitle />
</LoadingCard>
);
}
|