commit
This commit is contained in:
63
src/App.css
63
src/App.css
@@ -1,38 +1,37 @@
|
||||
.App {
|
||||
text-align: center;
|
||||
.header {
|
||||
background-color: green;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1)
|
||||
|
||||
}
|
||||
|
||||
.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;
|
||||
.header .container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: calc(10px + 2vmin);
|
||||
}
|
||||
|
||||
.header .logo{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 1.5em;
|
||||
font-family: 'DM Serif Display';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 24px;
|
||||
line-height: 100%;
|
||||
}
|
||||
|
||||
.header .logo img{
|
||||
margin-right: 10px
|
||||
}
|
||||
|
||||
.header nav a {
|
||||
margin-left: 60px;
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
}
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-size: 16px;
|
||||
|
||||
.App-link {
|
||||
color: #61dafb;
|
||||
}
|
||||
|
||||
@keyframes App-logo-spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
41
src/App.js
41
src/App.js
@@ -3,23 +3,32 @@ import './App.css';
|
||||
|
||||
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 />
|
||||
|
||||
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
function Header(){
|
||||
return(
|
||||
<header className="header">
|
||||
<div className="container">
|
||||
<div className="logo">
|
||||
<img src=""></img>
|
||||
<span>Top-Rent</span>
|
||||
</div>
|
||||
<nav>
|
||||
<a href = "#">Home</a>
|
||||
<a href = "#">Home</a>
|
||||
<a href = "#">Home</a>
|
||||
<a href = "#">Dom</a>
|
||||
</nav>
|
||||
<button className = "order-button"></button>
|
||||
</div>
|
||||
</header>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user