Add content for user page

This commit is contained in:
2023-10-24 15:38:47 +07:00
parent ec2edcb4b8
commit d4d3d8d944
7 changed files with 235 additions and 15 deletions
@@ -0,0 +1,15 @@
import styled from 'styled-components';
const Button = styled.button`
padding: 10px 20px;
background-color: var(--primary-color);
color: var(--light-text);
text-transform: uppercase;
font-weight: 500;
cursor: pointer;
border-radius: var(--radius-md);
`;
export default Button;
@@ -0,0 +1,29 @@
import styled, { css } from 'styled-components';
interface IDirection {
type?: 'vertical' | 'horizontal';
}
const Direction = styled.div<IDirection>`
display: flex;
${(props) =>
props.type === 'horizontal' &&
css`
justify-content: space-between;
align-items: center;
`}
${(props) =>
props.type === 'vertical' &&
css`
flex-direction: column;
gap: 20px;
`}
`;
Direction.defaultProps = {
type: 'vertical',
};
export default Direction;