Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring CSS files: merged PageNotFound styles into global app.module.css #2698

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 0 additions & 109 deletions src/screens/PageNotFound/PageNotFound.module.css

This file was deleted.

4 changes: 2 additions & 2 deletions src/screens/PageNotFound/PageNotFound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import useLocalStorage from 'utils/useLocalstorage';

import styles from './PageNotFound.module.css';
import styles from '../../style/app.module.css';
import Logo from 'assets/images/talawa-logo-600x600.png';

/**
Expand All @@ -28,7 +28,7 @@ const PageNotFound = (): JSX.Element => {
const adminFor = getItem('AdminFor');

return (
<section className={styles.notfound}>
<section className={styles.pageNotFound}>
<div className="container text-center">
<div className="brand">
<img src={Logo} alt="Logo" className="img-fluid" />
Expand Down
110 changes: 110 additions & 0 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,116 @@ hr {
color: var(--bs-primary) !important;
}

.pageNotFound {
position: relative;
bottom: 20px;
}

.pageNotFound h3 {
font-family: 'Roboto', sans-serif;
font-weight: normal;
letter-spacing: 1px;
}

.pageNotFound .brand span {
margin-top: 50px;
font-size: 40px;
}
.pageNotFound .brand h3 {
font-weight: 300;
margin: 10px 0 0 0;
}
.pageNotFound h1.head {
font-size: 250px;
font-weight: 900;
color: #31bb6b;
letter-spacing: 25px;
margin: 10px 0 0 0;
}
.pageNotFound h1.head span {
position: relative;
display: inline-block;
}
.pageNotFound h1.head span:before,
.pageNotFound h1.head span:after {
position: absolute;
top: 50%;
width: 50%;
height: 1px;
background: #fff;
content: '';
}
.pageNotFound h1.head span:before {
left: -55%;
}
.pageNotFound h1.head span:after {
right: -55%;
}

@media (max-width: 1024px) {
.pageNotFound h1.head {
font-size: 200px;
letter-spacing: 25px;
}
}

@media (max-width: 768px) {
.pageNotFound h1.head {
font-size: 150px;
letter-spacing: 25px;
}
}

@media (max-width: 640px) {
.pageNotFound h1.head {
font-size: 150px;
letter-spacing: 0;
}
}

@media (max-width: 480px) {
.pageNotFound .brand h3 {
font-size: 20px;
}
.pageNotFound h1.head {
font-size: 130px;
letter-spacing: 0;
}
.pageNotFound h1.head span:before,
.pageNotFound h1.head span:after {
width: 40%;
}
.pageNotFound h1.head span:before {
left: -45%;
}
.pageNotFound h1.head span:after {
right: -45%;
}
.pageNotFound p {
font-size: 18px;
}
}

@media (max-width: 320px) {
.pageNotFound .brand h3 {
font-size: 16px;
}
.pageNotFound h1.head {
font-size: 100px;
letter-spacing: 0;
}
.pageNotFound h1.head span:before,
.pageNotFound h1.head span:after {
width: 25%;
}
.pageNotFound h1.head span:before {
left: -30%;
}
.pageNotFound h1.head span:after {
right: -30%;
}
}

@media (max-width: 520px) {
.btnsContainer {
margin-bottom: 0;
Expand Down
Loading