Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Fixes styles and removes redundant code in Main feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Yauheni committed Aug 20, 2023
1 parent 4e2059a commit ea50d21
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 219 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

55 changes: 18 additions & 37 deletions frontend/src/features/Main/components/Layout/Layout.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
.content {
display: flex;
align-items: center;
padding: 0 276px;
width: 100%;
// padding: 0 440px;
width: 940px;
margin: auto;
background: theme-var($background-primary);

Expand Down Expand Up @@ -33,24 +33,24 @@
flex-direction: column;
justify-content: center;
gap: 24px;
}

.main-title {
font-size: 40px;
font-weight: 500;

&-with-gradient {
background: linear-gradient(90deg, #2B2B2B 33.39%, #00FFC4 77.42%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
.main-title {
font-size: 40px;
font-weight: 500;

&-with-gradient {
background: linear-gradient(90deg, #2B2B2B 33.39%, #00FFC4 77.42%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
}

.main-description {
max-width: 370px;
font-size: 18px;
font-weight: 400;
}
}

.main-description {
max-width: 370px;
font-size: 18px;
font-weight: 400;
}

.right {
Expand All @@ -59,23 +59,4 @@
display: flex;
flex-direction: column;
justify-content: center;
}

.lower-img {
position: absolute;
left: 0;
top: 0;
opacity: 0.5;
}

.upper-img {
position: absolute;
left: 40%;
top: 0;
}

.courtain {
left: 0;
top: 0;
position: absolute;
}
4 changes: 2 additions & 2 deletions frontend/src/features/Main/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useNavigate } from 'react-router-dom';
import { Button } from '@ui';
import styles from './Layout.module.scss';
import { cx } from '@/utils';
import { IntrodutionPic } from '../IntrodutionPic';
import carsImg from '@/assets/icons/introdution-cars-img.png';

import { CURRENT_GAME } from '@/atoms';

Expand Down Expand Up @@ -31,7 +31,7 @@ function Layout() {
/>
</div>
<div className={cx(styles.right)}>
<IntrodutionPic />
<img src={carsImg} alt="cars" />
</div>
</div>
);
Expand Down

This file was deleted.

68 changes: 0 additions & 68 deletions frontend/src/features/Main/components/LeaderBoard/LeaderBoard.tsx

This file was deleted.

1 change: 0 additions & 1 deletion frontend/src/features/Main/components/LeaderBoard/index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/src/features/Main/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export * from './Layout';
export * from './IntrodutionPic';
export * from './LeaderBoard';

0 comments on commit ea50d21

Please sign in to comment.