mirror of
https://github.com/luxfi/market.git
synced 2026-09-24 00:25:57 +00:00
cleaned up use of stitches themes; removed creation of explicit dark theme; remove theme switcher widget from nav;
77 lines
1.7 KiB
TypeScript
77 lines
1.7 KiB
TypeScript
import { keyframes } from 'stitches.config'
|
|
import { Box, Flex } from 'components/primitives'
|
|
|
|
const pulse = keyframes({
|
|
'0%': { backgroundColor: '$gray6' },
|
|
'50%': { backgroundColor: '$gray8' },
|
|
'100%': { backgroundColor: '$gray6' },
|
|
})
|
|
|
|
const LoadingCard = () => {
|
|
return (
|
|
<Flex
|
|
direction="column"
|
|
justify="end"
|
|
css={{
|
|
borderRadius: 8,
|
|
overflow: 'hidden',
|
|
background: '$gray6',
|
|
height: '100%',
|
|
minHeight: 400,
|
|
}}
|
|
>
|
|
<Flex
|
|
css={{ background: '$gray4', p: '$4', height: 132 }}
|
|
direction="column"
|
|
>
|
|
<Flex
|
|
css={{ mb: '$4', height: '100%' }}
|
|
align="center"
|
|
justify="between"
|
|
>
|
|
<Box
|
|
css={{
|
|
height: 20,
|
|
width: 120,
|
|
background: '$gray6',
|
|
animation: `${pulse} 2s ease-in infinite`,
|
|
}}
|
|
></Box>
|
|
<Box
|
|
css={{
|
|
height: 20,
|
|
width: 40,
|
|
background: '$gray6',
|
|
animation: `${pulse} 2s ease-in infinite`,
|
|
}}
|
|
></Box>
|
|
</Flex>
|
|
<Flex
|
|
css={{ mb: '$4', height: '100%' }}
|
|
align="center"
|
|
justify="between"
|
|
>
|
|
<Box
|
|
css={{
|
|
height: 20,
|
|
width: 60,
|
|
background: '$gray6',
|
|
animation: `${pulse} 2s ease-in infinite`,
|
|
}}
|
|
></Box>
|
|
<Box
|
|
css={{
|
|
height: 20,
|
|
width: 20,
|
|
background: '$gray6',
|
|
animation: `${pulse} 2s ease-in infinite`,
|
|
}}
|
|
></Box>
|
|
</Flex>
|
|
</Flex>
|
|
</Flex>
|
|
)
|
|
}
|
|
|
|
export default LoadingCard
|