Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | 2x 2x 2x 2x 2x 2x 2x 4x 4x 2x 2x 4x 2x 2x | import { Box, Button, ButtonProps, styled, Typography } from "@mui/material";
import { CouchersIcon } from "components/Icons";
import { useTranslation } from "i18n";
import { PRESS } from "i18n/namespaces";
import SectionHeading from "./SectionHeading";
import SectionWrapper from "./SectionWrapper";
const StyledContainer = styled("div")(({ theme }) => ({
display: "grid",
gap: "1rem",
[theme.breakpoints.up("sm")]: {
gridTemplateColumns: "repeat(2, minmax(0, 1fr))",
},
}));
const StyledSection = styled("section")(({ theme }) => ({
display: "flex",
flexDirection: "column",
alignItems: "center",
border: "1px solid var(--mui-palette-primary-main)",
borderRadius: "4px",
overflow: "hidden",
[theme.breakpoints.up("md")]: {
flexDirection: "row",
},
}));
const StyledCard = styled(Box)(({ theme }) => ({
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "space-between",
height: "100%",
gap: "1.5rem",
padding: "1rem",
marginBottom: "1rem",
[theme.breakpoints.up("md")]: {
padding: "1.5rem",
marginBottom: 0,
},
}));
const StyledImage = styled("img")(({ theme }) => ({
width: "100%",
height: "18rem",
objectFit: "cover",
objectPosition: "center top",
[theme.breakpoints.up("sm")]: {
height: "17rem",
},
[theme.breakpoints.up("md")]: {
width: "18rem",
height: "12rem",
},
}));
const StyledLogo = styled(Box)(({ theme }) => ({
width: "100%",
height: "18rem",
".svg-logo": {
width: "100%",
height: "100%",
},
[theme.breakpoints.up("sm")]: {
width: "100%",
height: "17rem",
},
[theme.breakpoints.up("md")]: {
width: "18rem",
height: "12rem",
},
}));
const StyledButton = styled(Button)<ButtonProps<"a">>(({ theme }) => ({
minWidth: "8rem",
textAlign: "center",
width: "10rem",
}));
export default function MediaAssets() {
const { t } = useTranslation([PRESS]);
return (
<SectionWrapper>
<SectionHeading>{t("download.subheading")}</SectionHeading>
<StyledContainer>
<StyledSection>
<StyledLogo>
<CouchersIcon color="secondary" className="svg-logo" />
</StyledLogo>
<StyledCard>
<Typography
sx={{
fontSize: "1.25rem",
textAlign: "center",
}}
>
{t("download.logo_text")}
</Typography>
<StyledButton
component="a"
href="/img/press/downloads/couchers-logo-assets.zip"
download="couchers-logo-assets.zip"
variant="outlined"
aria-label={t("download.logo_aria_label")}
>
{t("download.button")}
</StyledButton>
</StyledCard>
</StyledSection>
<StyledSection>
<StyledImage
src="/img/press/mobile-image.webp"
alt={t("download.mobile_image_alt")}
/>
<StyledCard>
<Typography
sx={{
fontSize: "1.25rem",
textAlign: "center",
}}
>
{t("download.images_text")}
</Typography>
<StyledButton
component="a"
href="/img/press/downloads/couchers-mobile-images.zip"
download="couchers-mobile-images.zip"
variant="outlined"
aria-label={t("download.mobile_images_aria_label")}
>
{t("download.button")}
</StyledButton>
</StyledCard>
</StyledSection>
</StyledContainer>
</SectionWrapper>
);
}
|