DEV Community

Cover image for React myRooms - 1 navbar
Andi Ismail
Andi Ismail

Posted on

React myRooms - 1 navbar

mkdir hotelBookingSystem
cd hotelBookingSystem
npx create-react-app client
cd client
npm start
Enter fullscreen mode Exit fullscreen mode

selesai membuat react app

Image folder

Tambahkan Bootstrap di atas title file index.html

// index.html

<!-- Link Css dan Js Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" ...">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" ..."></script>

<title>React App</title>
Enter fullscreen mode Exit fullscreen mode

selanjutnya kita akan buat 2 folder Component, screen.
lanjut ke navbar, kita akan rubah background navbar warna hitam, tulisan warna hitam, dan logo myRooms berwarna putih dan link navbar register dan login kita tempatkan ke kiri otomatis.

index.css

.navbar {
  background-color: black !important;
}
.nav-link{
  color: white !important;
}
.navbar-brand {
  color: white !important;
}
.navbar-nav {
  margin-left: auto !important;
}
Enter fullscreen mode Exit fullscreen mode

Image selesai navbar

github repo
link belajar

Top comments (0)