DEV Community

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

Posted on

1

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

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay