Skip to content

Commit 0b98d7b

Browse files
authored
Merge pull request #45 from pythonkr/feature/add-mobile-header-frame
feature: add mobile header frame
2 parents 4571aa8 + b6199ac commit 0b98d7b

File tree

4 files changed

+39
-1
lines changed

4 files changed

+39
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import * as React from "react";
66

77
import FlickrIcon from "@apps/pyconkr/assets/thirdparty/flickr.svg?react";
88

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

1213
interface IconItem {
1314
icon: React.FC<{ width?: number; height?: number }>;
197 KB
Loading
42.1 KB
Loading
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import ArrowForwardIcon from "@mui/icons-material/ArrowForward";
2+
import { ButtonBase, Stack, Typography } from "@mui/material";
3+
import * as React from "react";
4+
import { useAppContext } from "../../../../../apps/pyconkr/src/contexts/app_context";
5+
import PyCon2025MobileLogoImage from "../../assets/pyconkr2025_main_cover_image.png";
6+
import PyCon2025MobileLogoTitle from "../../assets/pyconkr2025_main_cover_title.png";
7+
8+
export const MobileCover: React.FC = () => {
9+
const { language } = useAppContext();
10+
const buttonTitle = language === "ko" ? "티켓 구매하기" : "Buy Ticket";
11+
12+
return (
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" }} />
16+
</Stack>
17+
<Stack sx={{ zIndex: 2, position: "absolute", top: 96, left: 46 }}>
18+
<img src={PyCon2025MobileLogoTitle} alt="Pycon 2025 Mobile Title" style={{ objectFit: "contain" }} />
19+
</Stack>
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" }} />
33+
</ButtonBase>
34+
</Stack>
35+
</Stack>
36+
);
37+
};

0 commit comments

Comments
 (0)