diff --git a/public/index.html b/public/index.html index aa069f2..4418f82 100644 --- a/public/index.html +++ b/public/index.html @@ -24,6 +24,9 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> + + + React App diff --git a/src/App.css b/src/App.css index 74b5e05..dbc852e 100644 --- a/src/App.css +++ b/src/App.css @@ -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; +} \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx index a53698a..f3b7bd8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -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 (
-
- logo -

- Edit src/App.tsx and save to reload. -

- - Learn React - -
+
); } diff --git a/src/components/mainScreen/backgroundImagePng.png b/src/components/mainScreen/backgroundImagePng.png new file mode 100644 index 0000000..8e024ea Binary files /dev/null and b/src/components/mainScreen/backgroundImagePng.png differ diff --git a/src/components/mainScreen/mainScreen.css b/src/components/mainScreen/mainScreen.css new file mode 100644 index 0000000..a417545 --- /dev/null +++ b/src/components/mainScreen/mainScreen.css @@ -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; +} \ No newline at end of file diff --git a/src/components/mainScreen/mainScreen.tsx b/src/components/mainScreen/mainScreen.tsx new file mode 100644 index 0000000..99df4d8 --- /dev/null +++ b/src/components/mainScreen/mainScreen.tsx @@ -0,0 +1,8 @@ +import React from "react"; +import './mainScreen.css'; + +export const MainScreen:React.FC = React.memo(() => { + return
+
+
+}) \ No newline at end of file