mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-20 05:12:54 +08:00
fix spacing between containers
This commit is contained in:
parent
1784ad3a8a
commit
6cd127b6b3
@ -11,16 +11,21 @@ const StyledContainer = styled.div<{ reverse: boolean }>`
|
||||
gap: 50px;
|
||||
align-items: center;
|
||||
width: 75%;
|
||||
margin: 160px auto;
|
||||
flex-direction: ${({ reverse }) => reverse && 'row-reverse'};
|
||||
margin: 0 auto;
|
||||
min-height: calc(100vh - 250px);
|
||||
flex-direction: ${({ reverse }) => reverse && "row-reverse"};
|
||||
line-height: 1.2;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
margin-top: 160px;
|
||||
}
|
||||
`;
|
||||
|
||||
export const Container: React.FC<ContainerProps> = ({ children, reverse = false }) => {
|
||||
export const Container: React.FC<ContainerProps> = ({
|
||||
children,
|
||||
reverse = false,
|
||||
}) => {
|
||||
return <StyledContainer reverse={reverse}>{children}</StyledContainer>;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user