Skip to content

Commit

Permalink
Merge pull request #131 from woowacourse-teams/fix/#130
Browse files Browse the repository at this point in the history
style 에러 수정
  • Loading branch information
cys4585 authored Jul 25, 2024
2 parents 71744eb + 86e6ca2 commit cacb013
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 21 deletions.
20 changes: 10 additions & 10 deletions frontend/src/common/font.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,66 +12,66 @@ import pretendardVariableWoff2 from './assets/fonts/woff2/PretendardVariable.wof

const fonts = css`
@font-face {
font-family: 'Pretendard';
font-family: Pretendard;
font-weight: 900;
font-display: swap;
src: url(${pretendardBlackWoff2}) format('woff2');
}
@font-face {
font-family: 'Pretendard';
font-family: Pretendard;
font-weight: 800;
font-display: swap;
src: url(${pretendardExtraBoldWoff2}) format('woff2');
}
@font-face {
font-family: 'Pretendard';
font-family: Pretendard;
font-weight: 700;
font-display: swap;
src: url(${pretendardBoldWoff2}) format('woff2');
}
@font-face {
font-family: 'Pretendard';
font-family: Pretendard;
font-weight: 600;
font-display: swap;
src: url(${pretendardSemiboldWoff2}) format('woff2');
}
@font-face {
font-family: 'Pretendard';
font-family: Pretendard;
font-weight: 500;
font-display: swap;
src:
local('Pretendard Medium'),
url(${pretendardMediumWoff2}) format('woff2'),
url(./woff-subset/Pretendard-Medium.subset.woff) format('woff');
url("./woff-subset/Pretendard-Medium.subset.woff") format('woff');
}
@font-face {
font-family: 'Pretendard';
font-family: Pretendard;
font-weight: 400;
font-display: swap;
src: url(${pretendardRegularWoff2}) format('woff2');
}
@font-face {
font-family: 'Pretendard';
font-family: Pretendard;
font-weight: 300;
font-display: swap;
src: url(${pretendardLightWoff2}) format('woff2');
}
@font-face {
font-family: 'Pretendard';
font-family: Pretendard;
font-weight: 200;
font-display: swap;
src: url(${pretendardExtraLightWoff2}) format('woff2');
}
@font-face {
font-family: 'Pretendard';
font-family: Pretendard;
font-weight: 100;
font-display: swap;
src: url(${pretendardThinWoff2}) format('woff2');
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/common/reset.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const reset = css`
margin: 0;
padding: 0;
font-family: Pretendard;
font-family: Pretendard, sans-serif;
font-size: 62.5%;
vertical-align: baseline;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ export const titleStyle = css`
`;

export const descriptionStyle = css`
font-size: 14px;
display: flex;
flex-direction: column;
gap: 10px;
font-size: 20px;
font-weight: 600;
color: rgb(255 255 255 / 100%);
`;
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export const layoutStyle = css`
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 100px;
`;
14 changes: 11 additions & 3 deletions frontend/src/pages/MoimDetailPage/MoimDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import MoimSummary from '@_components/MoimSummary/MoimSummary';
import ROUTES from '@_constants/routes';
import useJoinMoim from '@_hooks/mutaions/useJoinMoim';
import useMoim from '@_hooks/queries/useMoim';
import { css } from '@emotion/react';

export default function MoimDetailPage() {
const navigate = useNavigate();
Expand Down Expand Up @@ -42,7 +43,6 @@ export default function MoimDetailPage() {
<InformationLayout.ContentContainer>
<MoimSummary moimInfo={moim} />
<MoimInformation moimInfo={moim} />

{moim.description && (
<MoimDescription title={'상세설명'}>
{moim.description}
Expand All @@ -51,11 +51,19 @@ export default function MoimDetailPage() {
{moim.participants && (
<MoimDescription title="참여자">
{moim.participants.map((nickName) => {
return <p key={nickName}>{nickName}</p>;
return (
<div
key={nickName}
css={css`
font-size: 1.5rem;
`}
>
{nickName}
</div>
);
})}
</MoimDescription>
)}

<LabeledInput
title="참가자 이름"
required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ export default function ParticipationCompletePage() {
</CompleteLayout.Header>
<CompleteLayout.ContentContainer>
<div>참여가 완료되었어요!</div>
<CompleteLayout.BottomButtonWrapper>
<Button shape={'bar'} disabled={false} onClick={() => navigate(-1)}>
확인하기
</Button>
</CompleteLayout.BottomButtonWrapper>
</CompleteLayout.ContentContainer>

<CompleteLayout.BottomButtonWrapper>
<Button shape={'bar'} disabled={false} onClick={() => navigate(-1)}>
확인하기
</Button>
</CompleteLayout.BottomButtonWrapper>
</CompleteLayout>
);
}

0 comments on commit cacb013

Please sign in to comment.