Просмотр исходного кода

Error404 page responsive

feature/587
jovan.cirkovic 3 лет назад
Родитель
Сommit
5dfb44dada
2 измененных файлов: 28 добавлений и 7 удалений
  1. 4
    4
      src/pages/ErrorPages/NotFoundPage.js
  2. 24
    3
      src/pages/ErrorPages/NotFoundPage.styles.js

+ 4
- 4
src/pages/ErrorPages/NotFoundPage.js Просмотреть файл

import { import {
Container, Container,
ErrorContainer, ErrorContainer,
ErrorImageContainer,
ErrorHeading, ErrorHeading,
ErrorMessage, ErrorMessage,
Button, Button,
return ( return (
<Container> <Container>
<ErrorContainer> <ErrorContainer>
<Error404 />
<ErrorImageContainer>
<Error404 />
</ErrorImageContainer>
<ErrorHeading>{t("notFound.error404")}</ErrorHeading> <ErrorHeading>{t("notFound.error404")}</ErrorHeading>
<ErrorMessage> <ErrorMessage>
<Trans i18nKey="notFound.errorMessage" /> <Trans i18nKey="notFound.errorMessage" />
</ErrorMessage> </ErrorMessage>
<Button <Button
variant="contained" variant="contained"
width="190px"
height="49px"
buttoncolor={selectedTheme.primaryYellow} buttoncolor={selectedTheme.primaryYellow}
textcolor="black"
onClick={showAllOffersHandler} onClick={showAllOffersHandler}
> >
{t("notFound.showAllOffers")} {t("notFound.showAllOffers")}

+ 24
- 3
src/pages/ErrorPages/NotFoundPage.styles.js Просмотреть файл

import { Box } from "@mui/system"; import { Box } from "@mui/system";
import styled from "styled-components"; import styled from "styled-components";
import { PrimaryButton } from "../../components/Buttons/PrimaryButton/PrimaryButton"; import { PrimaryButton } from "../../components/Buttons/PrimaryButton/PrimaryButton";
// import Section from "../../components/Section/Section";
import selectedTheme from "../../themes"; import selectedTheme from "../../themes";


export const Container = styled(Box)` export const Container = styled(Box)`
height: 100vh; height: 100vh;
`; `;


export const ErrorImageContainer = styled(Box)`
@media screen and (max-width: 600px) {
width: 196px;
svg {
width: 196px;
height: 90px;
}
}
`;

export const ErrorHeading = styled(Typography)` export const ErrorHeading = styled(Typography)`
font-family: "Open Sans"; font-family: "Open Sans";
font-size: 72px; font-size: 72px;
font-weight: 700; font-weight: 700;
color: ${selectedTheme.primaryPurple}; color: ${selectedTheme.primaryPurple};


@media screen and (max-width: 420px) {
font-size: 62px;
@media screen and (max-width: 600px) {
font-size: 36px;
} }
`; `;


font-weight: 400; font-weight: 400;
color: #818181; color: #818181;
margin-bottom: 45px; margin-bottom: 45px;

@media screen and (max-width: 600px) {
font-size: 14px;
}
`; `;


export const Button = styled(PrimaryButton)` export const Button = styled(PrimaryButton)`
width: 190px;
height: 49px;
font-weight: 600; font-weight: 600;
color: #000;

@media screen and (max-width: 600px) {
width: 180px;
height: 44px;
}
`; `;

Загрузка…
Отмена
Сохранить