Skip to content

Commit cb7bdcf

Browse files
committed
fix: main 브랜치 빌드 실패 수정
1 parent 5083aba commit cb7bdcf

File tree

3 files changed

+10
-52
lines changed

3 files changed

+10
-52
lines changed

apps/pyconkr/src/components/layout/Footer/Mobile/MobileFooter.tsx

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ const defaultIcons: IconItem[] = [
4444
},
4545
];
4646

47-
const Bar: React.FC = () => <div style={{ display: "inline-block", padding: "0 0.25rem" }}>|</div>;
48-
4947
export default function MobileFooter() {
5048
const { sendEmail } = Common.Hooks.Common.useEmail();
5149
const { language } = useAppContext();
@@ -130,36 +128,6 @@ const FooterContent = styled.div`
130128
gap: 0.75rem;
131129
`;
132130

133-
const FooterText = styled.div`
134-
padding: 0 2rem;
135-
margin: 0.1rem;
136-
137-
font-size: 9pt;
138-
139-
a > button {
140-
margin-left: 0.25rem;
141-
padding: 0.05rem 0.25rem;
142-
font-size: 8pt;
143-
color: ${({ theme }) => theme.palette.common.white};
144-
border-color: ${({ theme }) => theme.palette.common.white};
145-
146-
gap: 0.25rem;
147-
148-
& span {
149-
margin-left: -2px;
150-
margin-right: 0;
151-
152-
& svg {
153-
font-size: 12pt !important;
154-
}
155-
}
156-
}
157-
158-
strong {
159-
font-size: 12pt;
160-
}
161-
`;
162-
163131
const FooterBoldText = styled.text`
164132
font-weight: 600;
165133
`;

apps/pyconkr/src/components/layout/Footer/index.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { Button, useMediaQuery, useTheme } from "@mui/material";
55
import * as React from "react";
66

77
import FlickrIcon from "@apps/pyconkr/assets/thirdparty/flickr.svg?react";
8-
import { MobilePageAccordion } from "../../../../../../packages/common/src/components/mdx_components/mobile_accordion";
98

9+
import MobileFooter from "./Mobile/MobileFooter";
1010
import { useAppContext } from "../../../contexts/app_context";
1111

1212
interface IconItem {
@@ -87,11 +87,8 @@ export default function Footer() {
8787
},
8888
];
8989

90-
console.log("isMobile " + isMobile);
91-
9290
if (isMobile) {
93-
return <MobilePageAccordion />;
94-
// return <MobileFooter />;
91+
return <MobileFooter />;
9592
} else {
9693
return (
9794
<FooterContainer>

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

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
33
import { AccordionDetails, AccordionSummary, Accordion as MuiAccordion, Stack, Typography } from "@mui/material";
44
import * as React from "react";
55
import Marquee from "react-fast-marquee";
6+
67
import { useAppContext } from "../../../../../apps/pyconkr/src/contexts/app_context";
78
import PyCon2025HostLogoBig from "../../assets/pyconkr2025_hostlogo_big.png";
89
import PyCon2025HostLogoSmall from "../../assets/pyconkr2025_hostlogo_small.png";
@@ -11,23 +12,15 @@ const MarqueeAccordion: React.FC = () => {
1112
const marqueeWidth = window.innerWidth * 0.9;
1213
const marqueeGradientWidth = window.innerWidth * 0.1;
1314
const items = React.useMemo(() => {
14-
return Array.from({ length: 100 }, (_, i) => {
15-
return (
16-
<Stack direction={"row"} sx={{ gap: 0 }}>
17-
<StyledTypography>{"AUG 15 - 17"}</StyledTypography>
18-
<img src={PyCon2025HostLogoSmall} />
19-
</Stack>
20-
);
21-
});
15+
return Array.from({ length: 100 }, () => (
16+
<Stack direction="row" sx={{ gap: 0 }}>
17+
<StyledTypography>AUG 15 - 17</StyledTypography>
18+
<img alt="logo" src={PyCon2025HostLogoSmall} />
19+
</Stack>
20+
));
2221
}, []);
2322

24-
return (
25-
// <Stack sx={{ maxWidth: "90%" }}>
26-
<Marquee loop={0} gradient={true} gradientWidth={marqueeGradientWidth} speed={30} style={{ width: marqueeWidth }}>
27-
{items}
28-
</Marquee>
29-
// </Stack>
30-
);
23+
return <Marquee loop={0} gradient={true} gradientWidth={marqueeGradientWidth} speed={30} style={{ width: marqueeWidth }} children={items} />;
3124
};
3225

3326
export const MobileAccordion: React.FC = () => {

0 commit comments

Comments
 (0)