Skip to content
Merged
4 changes: 2 additions & 2 deletions frontend/src/components/ClubLogo/ClubLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ interface ClubLogoProps {

const presets = {
main: {
desktop: { width: '66px', height: '66px', radius: '6px' },
mobile: { width: '50px', height: '50px', radius: '6px' },
desktop: { width: '66px', height: '66px', radius: '14px' },
mobile: { width: '50px', height: '50px', radius: '10px' },
},
detail: {
desktop: { width: '80px', height: '80px', radius: '10px' },
Expand Down
12 changes: 11 additions & 1 deletion frontend/src/components/ClubStateBox/ClubStateBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ const BOX_DIMENSIONS = {
},
} as const;

const BOX_FONT_SIZE = {
desktop: {
fontSize: '0.875rem',
},
mobile: {
fontSize: '0.75rem',
},
} as const;

const StyledBox = styled.div<{ $bgColor: string; $textColor: string }>`
display: flex;
justify-content: center;
Expand All @@ -57,12 +66,13 @@ const StyledBox = styled.div<{ $bgColor: string; $textColor: string }>`
border-radius: 8px;
background-color: ${({ $bgColor }) => $bgColor};
color: ${({ $textColor }) => $textColor};
font-size: 0.75rem;
font-size: ${BOX_FONT_SIZE.desktop.fontSize};
font-weight: 500;

@media (max-width: 500px) {
width: ${BOX_DIMENSIONS.mobile.width};
height: ${BOX_DIMENSIONS.mobile.height};
font-size: ${BOX_FONT_SIZE.mobile.fontSize};
}
`;

Expand Down
18 changes: 15 additions & 3 deletions frontend/src/components/ClubTag/ClubTag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,34 @@ const TAG_STYLES = {
borderRadius: '8px',
},
mobile: {
padding: '4px 6px',
padding: '4px 8px',
borderRadius: '6px',
},
} as const;

const TAG_FONT_SIZE = {
desktop: {
fontSize: '0.875rem',
},
mobile: {
fontSize: '0.75rem',
},
} as const;

const StyledTag = styled.span<{ color: string }>`
display: inline-block;
display: flex;
align-items: center;
padding: ${TAG_STYLES.desktop.padding};
height: 28px;
border-radius: ${TAG_STYLES.desktop.borderRadius};
background-color: ${({ color }) => color};
font-size: 0.875rem;
font-size: ${TAG_FONT_SIZE.desktop.fontSize};
font-weight: 600;
color: #3a3a3a;

@media (max-width: 500px) {
height: 25px;
font-size: ${TAG_FONT_SIZE.mobile.fontSize};
padding: ${TAG_STYLES.mobile.padding};
border-radius: ${TAG_STYLES.mobile.borderRadius};
}
Expand Down
6 changes: 2 additions & 4 deletions frontend/src/pages/MainPage/MainPage.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export const ContentWrapper = styled.div`

export const SectionBar = styled.div`
display: flex;
align-items: center;
align-items: flex-end;
justify-content: space-between;
margin: 60px 8px 24px;
margin: 60px 0px 24px 8px;

${media.mobile} {
margin: 32px 4px 16px;
Expand Down Expand Up @@ -76,7 +76,6 @@ export const TotalCountResult = styled.span`
font-size: 18px;
font-weight: bold;
color: #787878;
padding-top: 13px;

${media.mobile} {
font-size: 12px;
Expand All @@ -88,7 +87,6 @@ export const CardList = styled.div`
width: 100%;
max-width: 100%;
gap: 20px;
margin-top: 50px;
transition:
gap 0.5s ease,
grid-template-columns 0.5s ease;
Expand Down
45 changes: 34 additions & 11 deletions frontend/src/pages/MainPage/components/ClubCard/ClubCard.styles.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import styled from 'styled-components';

const CARD_STYLES = {
borderRadius: '20px',
padding: '20px',
gap: '16px',
desktop: {
borderRadius: '20px',
padding: '20px',
gap: '16px',
},
mobile: {
borderRadius: '16px',
padding: '16px',
gap: '8px',
},
} as const;

const CardContainer = styled.div<{
Expand All @@ -13,9 +20,9 @@ const CardContainer = styled.div<{
width: 100%;
display: flex;
flex-direction: column;
border-radius: ${CARD_STYLES.borderRadius};
padding: ${CARD_STYLES.padding};
gap: ${CARD_STYLES.gap};
border-radius: ${CARD_STYLES.desktop.borderRadius};
padding: ${CARD_STYLES.desktop.padding};
gap: ${CARD_STYLES.desktop.gap};
background-color: #fff;

box-shadow: ${({ $state }) =>
Expand All @@ -28,10 +35,20 @@ const CardContainer = styled.div<{
box-shadow 0.2s ease-in-out;
transform: ${({ $isClicked }) => ($isClicked ? 'scale(1.05)' : 'scale(1)')};
cursor: pointer;
touch-action: manipulation;

@media (max-width: 500px) {
border-radius: ${CARD_STYLES.mobile.borderRadius};
padding: ${CARD_STYLES.mobile.padding};
gap: ${CARD_STYLES.mobile.gap};
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.10);
}

&:hover {
transform: ${({ $isClicked }) =>
$isClicked ? 'scale(1.05)' : 'scale(1.03)'};
@media (hover: hover) {
&:hover {
transform: ${({ $isClicked }) =>
$isClicked ? 'scale(1.05)' : 'scale(1.03)'};
}
}

&:active {
Expand Down Expand Up @@ -60,9 +77,13 @@ const ClubInfo = styled.div`
align-items: flex-start;
`;

const ClubName = styled.h2`
font-size: 1.25rem;
const ClubName = styled.p`
font-size: 1.375rem;
font-weight: bold;

@media (max-width: 500px) {
font-size: 1rem;
}
`;

export const StateBoxTagContainer = styled.div`
Expand Down Expand Up @@ -93,13 +114,15 @@ const INTRODUCTION_MARGIN = {

const Introduction = styled.p`
font-size: 0.875rem;
font-weight: normal;
margin: ${INTRODUCTION_MARGIN.desktop.margin};
color: rgba(129, 129, 129, 1);
line-height: 16px;
white-space: nowrap;

@media (max-width: 500px) {
margin: ${INTRODUCTION_MARGIN.mobile.margin};
font-size: 0.75rem;
}
`;

Expand Down
Loading