components: create new dir, move code there

This commit is contained in:
Artur Tamborski 2020-11-15 01:29:27 +01:00
parent 8923fc0648
commit f37d8e396c
10 changed files with 35 additions and 62 deletions

View File

@ -1,38 +0,0 @@
.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);
}
}

View File

@ -1,24 +0,0 @@
import React from 'react';
import './App.css';
function App() {
return (
<div className="App">
<header className="App-header">
<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>
</div>
);
}
export default App;

View File

@ -0,0 +1,3 @@
.App {
text-align: center;
}

View File

@ -0,0 +1,15 @@
import React from 'react';
import Logo from '../Logo/Logo';
import './App.css';
function App() {
return (
<div className="App">
<Logo />
</div>
);
}
export default App;

View File

View File

View File

@ -0,0 +1,4 @@
.Logo {
background: red;
width: 20vw;
}

View File

@ -0,0 +1,13 @@
import React from 'react';
import '../../styles/Logo.css';
function Logo() {
return (
<div className="Logo">
asdsdasdadsads
</div>
);
}
export default Logo;

View File