Skip to content

Commit 6bb3fc6

Browse files
committed
feat: mobile accordion 중간저장
1 parent 015b3e2 commit 6bb3fc6

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

packages/common/src/components/mdx_components/mobile_accordion.tsx

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,27 @@ export const MobilePageAccordion: React.FC = () => {
6464
)}
6565
<StyledAccordionDetails>
6666
{expanded ? (
67-
<Stack sx={{ objectFit: "contain", margin: 0, padding: 0 }}>
68-
<img src={PyCon2025HostLogoBig} alt="PyCon 2025 Host Logo" style={{ objectFit: "contain" }} />
67+
<>
68+
<Stack sx={{ margin: 0, padding: 0, alignItems: "center", justifyContent: "center" }}>
69+
<img src={PyCon2025HostLogoBig} alt="PyCon 2025 Host Logo" style={{ width: "90%", height: "90%" }} />
70+
</Stack>
6971
{language === "ko" ? (
7072
<Stack direction="column" sx={{ transform: "translateY(-150%)" }}>
7173
<Typography color="#938A85" textAlign="center" fontSize="12px" fontWeight={400}>
7274
{"서울특별시 중구 필동로 1길 30 동국대학교 신공학관"}
7375
</Typography>
7476
</Stack>
7577
) : (
76-
<Stack direction="column" sx={{ transform: "translateY(-80%)" }}>
77-
<Typography color="#938A85" textAlign="center" fontSize="12px" fontWeight={400}>
78+
<Stack direction="column" sx={{ transform: "translateY(-110%)" }}>
79+
<Typography color="#938A85" textAlign="center" fontSize="10px" fontWeight={400}>
7880
{"New Engineering Building, Dongguk University"}
7981
</Typography>
80-
<Typography color="#938A85" textAlign="center" fontWeight={400} fontSize="12px">
82+
<Typography color="#938A85" textAlign="center" fontWeight={400} fontSize="10px">
8183
{"Pildong-ro 1-gil, Jung-gu, Seoul, Republic of Korea"}
8284
</Typography>
8385
</Stack>
8486
)}
85-
</Stack>
87+
</>
8688
) : null}
8789
</StyledAccordionDetails>
8890
</StyledAccordion>
@@ -94,11 +96,13 @@ const AccordionWrapper = styled.div`
9496
display: flex;
9597
flex-direction: column;
9698
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
99+
margin: 0;
100+
padding: 0;
97101
`;
98102

99103
const StyledAccordion = styled(MuiAccordion)`
100104
box-shadow: none;
101-
border-radius: 0;
105+
border-radius: 16px;
102106
103107
&:before {
104108
display: none;
@@ -144,16 +148,17 @@ const StyledAccordion = styled(MuiAccordion)`
144148
width: 100%;
145149
max-width: 100vw;
146150
box-sizing: border-box;
147-
overflow: hidden;
148151
position: relative;
152+
margin: 0;
153+
padding: 0;
149154
`;
150155

151156
const StyledTypography = styled(Typography)`
152-
font-weight: 600;
153-
font-size: 1rem;
157+
font-weight: 500;
158+
font-size: 20px;
154159
color: #938a85;
155160
text-align: center;
156-
padding: 0 10px;
161+
padding: 0 20px;
157162
`;
158163

159164
const StyledAccordionDetails = styled(AccordionDetails)`
@@ -163,5 +168,5 @@ const StyledAccordionDetails = styled(AccordionDetails)`
163168
width: 100%;
164169
height: 100%;
165170
margin: 0;
166-
padding: 20;
171+
padding: 0;
167172
`;

0 commit comments

Comments
 (0)