Przeglądaj źródła

common colors added

master
kj1352 4 lat temu
rodzic
commit
c85d799fcb
7 zmienionych plików z 961 dodań i 75 usunięć
  1. +932
    -5
      package-lock.json
  2. +1
    -0
      package.json
  3. +0
    -38
      src/App.css
  4. +6
    -21
      src/App.tsx
  5. +0
    -0
      src/components/tabs/Tabs.module.scss
  6. +6
    -0
      src/components/tabs/Tabs.tsx
  7. +16
    -11
      src/index.css

+ 932
- 5
package-lock.json
Plik diff jest za duży
Wyświetl plik


+ 1
- 0
package.json Wyświetl plik

@@ -10,6 +10,7 @@
"@types/node": "^12.20.15",
"@types/react": "^17.0.13",
"@types/react-dom": "^17.0.8",
"node-sass": "^6.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",


+ 0
- 38
src/App.css Wyświetl plik

@@ -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);
}
}

+ 6
- 21
src/App.tsx Wyświetl plik

@@ -1,26 +1,11 @@
import React from 'react';
import logo from './logo.svg';
import './App.css';
import { Tabs } from "./components/tabs/Tabs";

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>
</div>
);
return (
<main>
<Tabs />
</main>
);
}

export default App;

+ 0
- 0
src/components/tabs/Tabs.module.scss Wyświetl plik


+ 6
- 0
src/components/tabs/Tabs.tsx Wyświetl plik

@@ -0,0 +1,6 @@
import React from "react";
import styles from './Tabs.module.scss';

export const Tabs: React.FC = () => {
return <h1 className={styles.header}> Tabs </h1>
}

+ 16
- 11
src/index.css Wyświetl plik

@@ -1,13 +1,18 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
* {
box-sizing: border-box;
margin: 0;
padding: 0;
text-decoration: none;
outline: none;
font-family: 'Poppins', sans-serif;
}

:root {
--orange: #f1be83;
--red: #d47077;
--blue: #668fe1;
--black: #11253d;
--grey: #586471;
}

Ładowanie…
Anuluj
Zapisz