Skip to content

Commit b6199ac

Browse files
committed
feat: mobile main image 영역 개발
1 parent 828889b commit b6199ac

File tree

2 files changed

+21
-26
lines changed

2 files changed

+21
-26
lines changed

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import styled from "@emotion/styled";
22
import * as Common from "@frontend/common";
33
import { Article, Email, Facebook, GitHub, Instagram, LinkedIn, OpenInNew, X, YouTube } from "@mui/icons-material";
4-
import { Button, Stack, useMediaQuery, useTheme } from "@mui/material";
4+
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";
88

9-
import { MobileCover } from "../../../../../../packages/common/src/components/mdx_components/mobile_cover";
109
// import MobileFooter from "./Mobile/MobileFooter";
1110
import { useAppContext } from "../../../contexts/app_context";
11+
import MobileFooter from "./Mobile/MobileFooter";
1212

1313
interface IconItem {
1414
icon: React.FC<{ width?: number; height?: number }>;
@@ -89,13 +89,7 @@ export default function Footer() {
8989
];
9090

9191
if (isMobile) {
92-
// return <MobileFooter />;
93-
return (
94-
<Stack>
95-
<MobileCover />
96-
<Stack sx={{ height: "300px" }} />
97-
</Stack>
98-
);
92+
return <MobileFooter />;
9993
} else {
10094
return (
10195
<FooterContainer>

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

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,33 @@ import { useAppContext } from "../../../../../apps/pyconkr/src/contexts/app_cont
55
import PyCon2025MobileLogoImage from "../../assets/pyconkr2025_main_cover_image.png";
66
import PyCon2025MobileLogoTitle from "../../assets/pyconkr2025_main_cover_title.png";
77

8-
const MobileImage: React.FC = () => {
8+
export const MobileCover: React.FC = () => {
99
const { language } = useAppContext();
1010
const buttonTitle = language === "ko" ? "티켓 구매하기" : "Buy Ticket";
1111

1212
return (
13-
<Stack sx={{ flexDirection: "column", position: "relative" }}>
14-
<Stack sx={{ zIndex: 1, position: "absolute", top: 0, left: 0 }}>
15-
<img src={PyCon2025MobileLogoImage} alt="Pycon 2025 Mobile Image" style={{ objectFit: "contain" }} />
13+
<Stack sx={{ display: "flex", flexDirection: "column", position: "relative", width: "100vw", height: "100vh", overflow: "hidden" }}>
14+
<Stack sx={{ zIndex: 1, position: "absolute", top: 0, left: 0, flex: 1, display: "flex", width: "100%" }}>
15+
<img src={PyCon2025MobileLogoImage} alt="Pycon 2025 Mobile Image" style={{ flex: 1, objectFit: "cover" }} />
1616
</Stack>
17-
<Stack sx={{ zIndex: 2, position: "absolute", top: 0, left: 0 }}>
17+
<Stack sx={{ zIndex: 2, position: "absolute", top: 96, left: 46 }}>
1818
<img src={PyCon2025MobileLogoTitle} alt="Pycon 2025 Mobile Title" style={{ objectFit: "contain" }} />
1919
</Stack>
20-
<Stack sx={{ zIndex: 3, position: "absolute", top: "3rem", left: 0 }}>
21-
<ButtonBase sx={{ flexDirection: "row", backgroundColor: "white", borderRadius: "10px", boxShadow: "0 4px 4px 0px rgba(0, 0, 0, 0.15)" }}>
22-
<Typography>{buttonTitle}</Typography>
23-
<ArrowForwardIcon />
20+
<Stack sx={{ zIndex: 3, position: "absolute", top: 351, left: 48 }}>
21+
<ButtonBase
22+
sx={{
23+
flexDirection: "row",
24+
backgroundColor: "white",
25+
padding: "10px 20px",
26+
gap: "10px",
27+
borderRadius: "10px",
28+
boxShadow: "0 4px 4px 0px rgba(0, 0, 0, 0.15)",
29+
}}
30+
>
31+
<Typography sx={{ fontWeight: 600, fontSize: "15px" }}>{buttonTitle}</Typography>
32+
<ArrowForwardIcon sx={{ height: "15px" }} />
2433
</ButtonBase>
2534
</Stack>
2635
</Stack>
2736
);
2837
};
29-
30-
export const MobileCover: React.FC = () => {
31-
return (
32-
<Stack>
33-
<MobileImage />
34-
</Stack>
35-
);
36-
};

0 commit comments

Comments
 (0)