components: create new dir, move code there
This commit is contained in:
parent
8923fc0648
commit
f37d8e396c
38
src/App.css
38
src/App.css
@ -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);
|
||||
}
|
||||
}
|
24
src/App.tsx
24
src/App.tsx
@ -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;
|
3
src/components/App/App.css
Normal file
3
src/components/App/App.css
Normal file
@ -0,0 +1,3 @@
|
||||
.App {
|
||||
text-align: center;
|
||||
}
|
15
src/components/App/App.tsx
Normal file
15
src/components/App/App.tsx
Normal 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;
|
0
src/components/Board/Board.css
Normal file
0
src/components/Board/Board.css
Normal file
0
src/components/Board/Board.tsx
Normal file
0
src/components/Board/Board.tsx
Normal file
4
src/components/Logo/Logo.css
Normal file
4
src/components/Logo/Logo.css
Normal file
@ -0,0 +1,4 @@
|
||||
.Logo {
|
||||
background: red;
|
||||
width: 20vw;
|
||||
}
|
13
src/components/Logo/Logo.tsx
Normal file
13
src/components/Logo/Logo.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import React from 'react';
|
||||
|
||||
import '../../styles/Logo.css';
|
||||
|
||||
function Logo() {
|
||||
return (
|
||||
<div className="Logo">
|
||||
asdsdasdadsads
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default Logo;
|
0
src/helpers/localStore.ts
Normal file
0
src/helpers/localStore.ts
Normal file
Loading…
Reference in New Issue
Block a user