mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
41 lines
970 B
TypeScript
41 lines
970 B
TypeScript
import styled from '@emotion/styled';
|
|
import {motion} from 'framer-motion';
|
|
|
|
import {space} from 'sentry/styles/space';
|
|
import testableTransition from 'sentry/utils/testableTransition';
|
|
|
|
const StepHeading = styled(motion.h2)<{step: number}>`
|
|
position: relative;
|
|
display: inline-grid;
|
|
grid-template-columns: max-content auto;
|
|
gap: ${space(2)};
|
|
align-items: center;
|
|
font-size: 21px;
|
|
|
|
&:before {
|
|
content: '${p => p.step}';
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 30px;
|
|
height: 30px;
|
|
background-color: ${p => p.theme.yellow300};
|
|
border-radius: 50%;
|
|
color: ${p => p.theme.textColor};
|
|
font-size: 1rem;
|
|
}
|
|
`;
|
|
|
|
StepHeading.defaultProps = {
|
|
variants: {
|
|
initial: {clipPath: 'inset(0% 100% 0% 0%)', opacity: 1},
|
|
animate: {clipPath: 'inset(0% 0% 0% 0%)', opacity: 1},
|
|
exit: {opacity: 0},
|
|
},
|
|
transition: testableTransition({
|
|
duration: 0.3,
|
|
}),
|
|
};
|
|
|
|
export default StepHeading;
|