Skip to content

Commit

Permalink
fix, mobile에서 깨지는 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jaewoongs committed Aug 7, 2024
1 parent 553a329 commit c5cdd7f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/atoms/Backdrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styled from '@emotion/styled';

export const Backdrop = styled.div`
position: fixed;
z-index: 100;
z-index: 10000;
top: 0;
left: 0;
Expand Down
3 changes: 1 addition & 2 deletions src/components/organisms/main/IntroProjectBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ const Block = styled.div`
gap: 80px;
align-items: center;
width: 100vw;
width: 100%;
padding: 20px;
`;
const CardWrapper = styled.div`
position: relative;
display: flex;
flex-wrap: wrap;
gap: 32px;
justify-content: center;
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/main/IntroRecommendBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const Block = styled.div`
gap: 80px;
align-items: center;
width: 100vw;
width: 100%;
padding: 20px;
`;

Expand Down
11 changes: 9 additions & 2 deletions src/components/templates/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { css } from '@emotion/react';
import styled from '@emotion/styled';

import { media } from '#/utilities';
import { HeaderContent } from '#organisms/HeaderContent';

const SpaceCSS = css`
Expand All @@ -13,15 +14,21 @@ const StyledHeader = styled.header`
position: fixed;
z-index: 9999;
padding: 0 20px;
background: #fff;
border-bottom: 1px solid #eee;
padding: 0 20px;
${SpaceCSS}
${media.xxlarge} {
position: relative;
}
`;
const HeaderSpace = styled.div`
${SpaceCSS}
${media.xxlarge} {
display: none;
}
`;

export const Header = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/templates/MainSection3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const BackgroundImage = styled(Image)`
z-index: -10;
top: -70px;
width: 100vw;
width: 100%;
height: calc(100vw * ${mainSection3Background.height / mainSection3Background.width});
`;

Expand Down

0 comments on commit c5cdd7f

Please sign in to comment.