Skip to content

Commit 828889b

Browse files
committed
feat: 상단 메인이미지 컴포넌트 개발
1 parent 4571aa8 commit 828889b

File tree

4 files changed

+46
-3
lines changed

4 files changed

+46
-3
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
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, useMediaQuery, useTheme } from "@mui/material";
4+
import { Button, Stack, 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 MobileFooter from "./Mobile/MobileFooter";
9+
import { MobileCover } from "../../../../../../packages/common/src/components/mdx_components/mobile_cover";
10+
// import MobileFooter from "./Mobile/MobileFooter";
1011
import { useAppContext } from "../../../contexts/app_context";
1112

1213
interface IconItem {
@@ -88,7 +89,13 @@ export default function Footer() {
8889
];
8990

9091
if (isMobile) {
91-
return <MobileFooter />;
92+
// return <MobileFooter />;
93+
return (
94+
<Stack>
95+
<MobileCover />
96+
<Stack sx={{ height: "300px" }} />
97+
</Stack>
98+
);
9299
} else {
93100
return (
94101
<FooterContainer>
197 KB
Loading
42.1 KB
Loading
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
const MobileImage: React.FC = () => {
9+
const { language } = useAppContext();
10+
const buttonTitle = language === "ko" ? "티켓 구매하기" : "Buy Ticket";
11+
12+
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" }} />
16+
</Stack>
17+
<Stack sx={{ zIndex: 2, position: "absolute", top: 0, left: 0 }}>
18+
<img src={PyCon2025MobileLogoTitle} alt="Pycon 2025 Mobile Title" style={{ objectFit: "contain" }} />
19+
</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 />
24+
</ButtonBase>
25+
</Stack>
26+
</Stack>
27+
);
28+
};
29+
30+
export const MobileCover: React.FC = () => {
31+
return (
32+
<Stack>
33+
<MobileImage />
34+
</Stack>
35+
);
36+
};

0 commit comments

Comments
 (0)