Adding Navbar using React Bootstrap

This commit is contained in:
Ray 2023-08-29 08:21:04 +00:00 committed by GitHub
parent 7a698eee15
commit c9c45bdb95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 56 deletions

View File

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

View File

@ -1,25 +1,21 @@
import logo from './logo.svg'; import "react-bootstrap/Container"
import "react-bootstrap/Navbar"
import "react-bootstrap/Nav"
import './App.css'; import './App.css';
import Container from "react-bootstrap/Container";
import { Navbar } from "react-bootstrap/esm";
function App() { function App() {
return ( return (
<div className="App"> <div className="App">
<header className="App-header"> <Navbar>
<img src={logo} className="App-logo" alt="logo" /> <Container>
<p> </Container>
Edit <code>src/App.js</code> and save to reload. </Navbar>
</p> <h1>React App</h1>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div> </div>
); );
} }
export default App; export default App;