[REACT] 4_앱 Jumbotron 구성

2021. 12. 25. 01:09React/React 쇼핑 앱

반응형

점보트론 코드 영역 참조

https://newbedev.com/jumbotron-react-bootstrap-5-code-example

 

Programming tutorials | Newbedev

Checkout new tutorials and guides for programming languages Javascript, Python, Java, Golang, C++, PHP

newbedev.com


점보트론 소스코드 영역 App.js에 붙이기

      {/* jumbotron */}	
      <div class="bg-light p-5 rounded-lg m-3">	
        <h1 class="display-4">Hello, world!</h1>	
        <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>	
        <hr class="my-4" />	
        <p>It uses utility classes for typography and spacing to space content out within the larger container.</p>	
        <a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>	
      </div>

 

App.js

더보기
import logo from './logo.svg';	
import './App.css';	
import { Navbar, NavDropdown, Nav, Container } from 'react-bootstrap';	
	
function App() {	
  return (	
    <div className="App">	
      {/* NavBar */}	
      <Navbar collapseOnSelect expand="lg" bg="dark" variant="dark">	
        <Container>	
          <Navbar.Brand href="/">React-Bootstrap</Navbar.Brand>	
          <Navbar.Toggle aria-controls="responsive-navbar-nav" />	
          <Navbar.Collapse id="responsive-navbar-nav">	
            <Nav className="me-auto">	
              <Nav.Link href="/">Home</Nav.Link>	
              <Nav.Link href="#pricing">Pricing</Nav.Link>	
              <NavDropdown title="Dropdown" id="collasible-nav-dropdown">	
                <NavDropdown.Item href="#action/3.1">Action</NavDropdown.Item>	
                <NavDropdown.Item href="#action/3.2">Another action</NavDropdown.Item>	
                <NavDropdown.Item href="#action/3.3">Something</NavDropdown.Item>	
                <NavDropdown.Divider />	
                <NavDropdown.Item href="#action/3.4">Separated link</NavDropdown.Item>	
              </NavDropdown>	
            </Nav>	
            <Nav>	
              <Nav.Link href="#login">로그인</Nav.Link>	
              <Nav.Link eventKey={2} href="#join">	
                회원가입	
              </Nav.Link>	
            </Nav>	
          </Navbar.Collapse>	
        </Container>	
      </Navbar>	
      {/* jumbotron */}	
      <div class="bg-light p-5 rounded-lg m-3">	
        <h1 class="display-4">Hello, world!</h1>	
        <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>	
        <hr class="my-4" />	
        <p>It uses utility classes for typography and spacing to space content out within the larger container.</p>	
        <a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>	
      </div>	
      {/* card contents */}	
      {/* more button */}	
    </div>	
  );	
}	
	
export default App;

반응형