добавлена заглушка на фон

This commit is contained in:
DmitriyB
2022-07-28 17:52:21 +05:00
parent 3ac9b567b0
commit fdfb0d21e9
6 changed files with 27 additions and 52 deletions
+2 -37
View File
@@ -1,38 +1,3 @@
.App {
text-align: center;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
font-family: inter;
}
+2 -15
View File
@@ -1,24 +1,11 @@
import React from 'react';
import logo from './logo.svg';
import './App.css';
import { MainScreen } from './components/mainScreen/mainScreen';
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.tsx</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<MainScreen />
</div>
);
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 MiB

+12
View File
@@ -0,0 +1,12 @@
.main-screen-container {
width: 100%;
height: 100vh;
position: relative;
}
.main-screen-model {
width: 100%;
height: 100%;
background: url('backgroundImagePng.png') 50% 50% no-repeat;
background-size: cover;
}
+8
View File
@@ -0,0 +1,8 @@
import React from "react";
import './mainScreen.css';
export const MainScreen:React.FC = React.memo(() => {
return <div className="main-screen-container">
<div className="main-screen-model"></div>
</div>
})