Skip to content

Commit

Permalink
feat: implement mobile view on not found, ready state
Browse files Browse the repository at this point in the history
  • Loading branch information
WONYOUNG-HC committed Aug 19, 2024
1 parent cc0fa22 commit 69e297a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/components/NotFound.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import styled from 'styled-components';
import { ReactComponent as BittenPotato } from '@assets/potato_bitten.svg';
import { media } from '@theme/media';

const NotFound = () => {
return (
Expand Down Expand Up @@ -52,13 +53,31 @@ const Wrapper = styled.div`
border: 4px solid ${({ theme }) => theme.colors.primary100_1};
z-index: 100;
}
${media.landscape`
h1 {
font-size: 20px;
}
button {
padding: 12px 28px;
margin-top: 20px;
font-size: 16px;
border-radius: 80px;
}
`}
`;

const StyledBittenPotato = styled(BittenPotato)`
z-index: 100;
width: 180px;
height: 140px;
margin-bottom: 16px;
${media.landscape`
width: 140px;
height: 120px;
`}
`;

export default NotFound;
19 changes: 19 additions & 0 deletions src/components/ReadyState.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import styled from 'styled-components';
import { ReactComponent as WorkingPotato } from '@assets/potato_working.svg';
import { media } from '@theme/media';

const ReadyState = () => {
return (
Expand Down Expand Up @@ -47,12 +48,30 @@ const Wrapper = styled.div`
cursor: pointer;
border: 4px solid ${({ theme }) => theme.colors.primary100_1};
}
${media.landscape`
h1 {
font-size: 20px;
}
button {
padding: 12px 28px;
margin-top: 20px;
font-size: 16px;
border-radius: 80px;
}
`}
`;

const StyledWorkingPotato = styled(WorkingPotato)`
width: 180px;
height: 140px;
margin-bottom: 16px;
${media.landscape`
width: 140px;
height: 120px;
`}
`;

export default ReadyState;

0 comments on commit 69e297a

Please sign in to comment.