Skip to content

Commit

Permalink
css refactor (#3458)
Browse files Browse the repository at this point in the history
  • Loading branch information
hustlernik authored Jan 28, 2025
1 parent 540dd4a commit a7f3771
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 23 deletions.
22 changes: 0 additions & 22 deletions src/components/NotFound/NotFound.module.css

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/NotFound/NotFound.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { useTranslation } from 'react-i18next';

import styles from './NotFound.module.css';
import styles from '../../style/app.module.css';

interface InterfaceNotFoundProps {
title: string; // Title of the page or resource not found
Expand Down
25 changes: 25 additions & 0 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9101,3 +9101,28 @@ button[data-testid='createPostBtn'] {
gap: 10px;
align-items: center;
}

/* NotFound.tsx */

.section {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}

.error {
font-size: 1.2rem;
font-weight: 500;
}

@media (min-width: 440px) and (max-width: 570px) {
.section {
margin-left: 50px;
}
.error {
font-size: 1.1rem;
font-style: oblique;
}
}

0 comments on commit a7f3771

Please sign in to comment.