Skip to content

Commit

Permalink
refactor: qa 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
urjimyu committed Oct 15, 2024
1 parent 7c57029 commit fb53c5b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Binary file added src/assets/img/workBackground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Layout({ children }: { children: React.ReactNode }) {

return (
<LayoutWrapper>
{isWorkDetailRoute ? (
{isMobile && isWorkDetailRoute ? (
<></>
) : (
<Nav isMobile={isMobile}>
Expand Down
17 changes: 16 additions & 1 deletion src/pages/Work/Work.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useState } from 'react';
import { Category } from '../../types/types';
import { useIsMobile } from '../../hooks/useIsMobile';
import MobileHeader from './components/mobile/MobileHeader';
import background from '../../assets/img/workBackground.png';

const Work = () => {
const [category, setCategory] = useState<Category>('ALL');
Expand All @@ -18,6 +19,7 @@ const Work = () => {

return (
<WorkPage>
<img src={background} />
<Helmet>
<title>Digging Club - Work</title>
</Helmet>
Expand Down Expand Up @@ -55,14 +57,27 @@ const WorkPage = styled.div`
display: flex;
justify-content: center;
img {
width: 100vw;
height: 100vh;
position: fixed;
z-index: 1;
}
`;

const PcDiv = styled.div`
padding: 6rem 0 10.4rem 0;
display: flex;
padding: 6rem 0;
z-index: 2;
`;

const MobileDiv = styled.div`
display: flex;
flex-direction: column;
align-items: center;
z-index: 2;
`;

0 comments on commit fb53c5b

Please sign in to comment.