Skip to content

Commit

Permalink
style: format code with prettier (#1223)
Browse files Browse the repository at this point in the history
Format code with prettier

This commit fixes the style issues introduced in 705314b according to the output
from Prettier.

Details: None

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] committed Aug 9, 2023
1 parent 705314b commit 9fa5720
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 28 deletions.
38 changes: 19 additions & 19 deletions src/pages/NotFound/index.css
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
.not_found_container {
display: flex;
display: flex;
}

.not_found_poem {
margin-block: 20px;
color: var(--profile-color);
font-weight: 600;
margin-block: 20px;
color: var(--profile-color);
font-weight: 600;
}

.not_found_btn {
border-radius: 0.45rem;
margin-top: 15px;
font-weight: bold;
/* background-color: #2d5dc9; */
background: var(--btn-color) !important;
color: black;
width: 100%;
margin-bottom: 20px;
font-weight: 700;
border-radius: 0.45rem;
margin-top: 15px;
font-weight: bold;
/* background-color: #2d5dc9; */
background: var(--btn-color) !important;
color: black;
width: 100%;
margin-bottom: 20px;
font-weight: 700;
}

@media only screen and (max-width: 600px) {
.not_found_container {
justify-content: center;
align-items: center;
flex-direction: column;
}
}
.not_found_container {
justify-content: center;
align-items: center;
flex-direction: column;
}
}
29 changes: 20 additions & 9 deletions src/pages/NotFound/index.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import "./index.css"
import "./index.css";
import { Box, Button, Container, Typography } from "@mui/material";

import Grid from "@mui/material/Grid";
import { Link } from "react-router-dom";
import React from "react";
import img1 from "../../assets/404/404_1.png"
import img2 from "../../assets/404/404_2.png"
import img3 from "../../assets/404/404_3.jpeg"
import img4 from "../../assets/404/404_4.jpeg"
import img1 from "../../assets/404/404_1.png";
import img2 from "../../assets/404/404_2.png";
import img3 from "../../assets/404/404_3.jpeg";
import img4 from "../../assets/404/404_4.jpeg";

export default function Error() {
const imagesArr = [img1, img2, img3, img4];
Expand All @@ -25,10 +25,17 @@ export default function Error() {
<Container maxWidth="md">
<div className="not_found_container">
<Grid xs={6}>
<Typography variant="h1" fontSize={150} style={{ color: "var(--text-secondary)" }}>
<Typography
variant="h1"
fontSize={150}
style={{ color: "var(--text-secondary)" }}
>
404
</Typography>
<Typography variant="h3" style={{ color: "var(--text-secondary)", margin: "0" }}>
<Typography
variant="h3"
style={{ color: "var(--text-secondary)", margin: "0" }}
>
Page Not Found
</Typography>
<div className="not_found_poem">
Expand All @@ -41,7 +48,7 @@ export default function Error() {
<Button
variant="contained"
className="not_found_btn"
style={{color: "black", fontWeight: "600"}}
style={{ color: "black", fontWeight: "600" }}
>
Back To Home
</Button>
Expand All @@ -51,7 +58,11 @@ export default function Error() {
<img
src={imagesArr[randomIdx]}
alt="error image"
style={{ borderRadius: "12px", aspectRatio: "initial", maxHeight: "300px" }}
style={{
borderRadius: "12px",
aspectRatio: "initial",
maxHeight: "300px",
}}
/>
</Grid>
</div>
Expand Down

0 comments on commit 9fa5720

Please sign in to comment.