mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 20:01:59 +00:00
Add content for user page
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user