|
| 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