cretead template and header component
@@ -1,38 +1,23 @@
|
||||
.App {
|
||||
text-align: center;
|
||||
/*
|
||||
COLORS:
|
||||
|
||||
Light green: #7ed56f
|
||||
Medium green: #55c57a
|
||||
Dark green: #28b485
|
||||
|
||||
*/
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
body {
|
||||
font-family: "Lato", sans-serif;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 1.7;
|
||||
color: #777;
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
@@ -1,23 +1,10 @@
|
||||
import logo from './logo.svg';
|
||||
import './App.css';
|
||||
import "./App.css";
|
||||
import Header from "./components/header/header";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<header className="App-header">
|
||||
<img src={logo} className="App-logo" alt="logo" />
|
||||
<p>
|
||||
Edit <code>src/App.js</code> and save to reload.
|
||||
</p>
|
||||
<a
|
||||
className="App-link"
|
||||
href="https://reactjs.org"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Learn React
|
||||
</a>
|
||||
</header>
|
||||
<div>
|
||||
<Header />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 261 KiB |
|
After Width: | Height: | Size: 644 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 361 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 607 KiB |
|
After Width: | Height: | Size: 160 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 211 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 576 KiB |
|
After Width: | Height: | Size: 783 KiB |
|
After Width: | Height: | Size: 950 KiB |
|
After Width: | Height: | Size: 622 KiB |
|
After Width: | Height: | Size: 465 KiB |
|
After Width: | Height: | Size: 628 KiB |
@@ -0,0 +1,12 @@
|
||||
.header {
|
||||
height: 95vh;
|
||||
background-image: linear-gradient(
|
||||
to right bottom,
|
||||
rgba(126, 213, 111, 0.8),
|
||||
rgba(40, 180, 133, 0.8)
|
||||
),
|
||||
url(../../commons/images/hero.jpg);
|
||||
background-size: cover;
|
||||
background-position: top;
|
||||
clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import "./header.css";
|
||||
|
||||
function Header() {
|
||||
return <header className="header">Text...</header>;
|
||||
}
|
||||
|
||||
export default Header;
|
||||