This commit is contained in:
k1_241_02
2025-03-29 11:37:44 +03:00
parent a923d282fb
commit 96f5c4201f
2 changed files with 56 additions and 48 deletions

View File

@@ -1,38 +1,37 @@
.App { .header {
text-align: center; background-color: green;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1)
} }
.App-logo { .header .container {
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; display: flex;
flex-direction: column; justify-content: space-between;
align-items: center; 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; 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);
}
} }

View File

@@ -3,23 +3,32 @@ import './App.css';
function App() { function App() {
return ( return (
<div className="App">
<header className="App-header"> <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>
); );
} }
export default App; 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>
)
}