Back to Login & Signup

Breadcrumb + Login Container Page

#Login#Breadcrumb + Login Container Page#Breadcrumb

Live preview

Source code

html
<!-- i. Breadcrumb Section -->
<section class="py-3 bg-light border-bottom">
  <div class="container">
    <nav aria-label="breadcrumb">
      <ol class="breadcrumb mb-0 py-1">
        <li class="breadcrumb-item"><a href="index.html" class="text-decoration-none text-muted small">Home</a></li>
        <li class="breadcrumb-item active text-primary fw-bold small" aria-current="page">Portal Login</li>
      </ol>
    </nav>
  </div>
</section>

<!-- Main Login Container -->
<section class="py-5 flex-grow-1 d-flex align-items-center">
  <div class="container">
    <div class="row g-0 shadow-lg rounded-4 overflow-hidden border">
      <!-- Left Side: v. Achievement Highlights Carousel -->
      <div class="col-lg-6 d-none d-lg-block bg-primary p-0 position-relative">
        <div id="loginAchievementCarousel" class="carousel slide h-100" data-bs-ride="carousel">
          <div class="carousel-indicators">
            <button type="button" data-bs-target="#loginAchievementCarousel" data-bs-slide-to="0" class="active"></button>
            <button type="button" data-bs-target="#loginAchievementCarousel" data-bs-slide-to="1"></button>
          </div>
          <div class="carousel-inner h-100">
            <div class="carousel-item active h-100" style="background: linear-gradient(45deg, rgba(13, 110, 253, 0.9), rgba(13, 202, 240, 0.9)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&q=80&w=800'); background-size: cover; background-position: center;">
              <div class="carousel-caption h-100 d-flex flex-column justify-content-center text-start">
                <i class="bi bi-award-fill display-1 mb-4"></i>
                <h2 class="fw-bold">Global Recognition</h2>
                <p class="lead">Ranked as Top 10 Web Designer in the EMEA region for 2023.</p>
              </div>
            </div>
            <div class="carousel-item h-100" style="background: linear-gradient(45deg, rgba(33, 37, 41, 0.9), rgba(13, 110, 253, 0.9)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&q=80&w=800'); background-size: cover; background-position: center;">
              <div class="carousel-caption h-100 d-flex flex-column justify-content-center text-start">
                <i class="bi bi-star-fill display-1 mb-4 text-warning"></i>
                <h2 class="fw-bold">Client Success</h2>
                <p class="lead">Successfully delivered over 500+ secure enterprise projects worldwide.</p>
              </div>
            </div>
          </div>
        </div>
      </div>

      <!-- Right Side: Login Content -->
      <div class="col-lg-6 bg-white p-4 p-md-5">
        <!-- ii. Admin Login Header -->
        <div class="text-center mb-5">
          <div class="bg-primary-subtle text-primary rounded-circle d-inline-flex align-items-center justify-content-center mb-3" style="width: 70px; height: 70px;">
            <i class="bi bi-shield-lock-fill fs-1"></i>
          </div>
          <h3 class="fw-bold text-dark">Admin Access</h3>
          <p class="text-secondary small">Please enter your credentials to manage the portfolio</p>
        </div>

        <!-- iii. Login Form Section -->
        <form id="adminLoginForm">
          <div class="mb-4">
            <label class="form-label small fw-bold text-uppercase tracking-wider">User Name</label>
            <div class="input-group">
              <span class="input-group-text bg-light border-end-0"><i class="bi bi-person"></i></span>
              <input type="text" class="form-control bg-light border-start-0 py-2 shadow-none" placeholder="admin_alex" required>
            </div>
          </div>
          <div class="mb-3">
            <label class="form-label small fw-bold text-uppercase tracking-wider">Password</label>
            <div class="input-group">
              <span class="input-group-text bg-light border-end-0"><i class="bi bi-key"></i></span>
              <input type="password" class="form-control bg-light border-start-0 py-2 shadow-none" placeholder="••••••••" required>
            </div>
          </div>

          <!-- iv. Password Recovery Link -->
          <div class="d-flex justify-content-between align-items-center mb-4">
            <div class="form-check">
              <input type="checkbox" class="form-check-input" id="remember">
              <label class="form-check-label small" for="remember">Remember Me</label>
            </div>
            <a href="#" class="text-primary text-decoration-none small fw-bold">Forgot Password?</a>
          </div>

          <button type="submit" class="btn btn-primary w-100 py-2 rounded-pill fw-bold shadow-sm mb-4">
            Sign In To Dashboard <i class="bi bi-box-arrow-in-right ms-2"></i>
          </button>

          <div class="text-center">
            <a href="index.html" class="text-secondary text-decoration-none small"><i class="bi bi-arrow-left me-1"></i> Back to Live Website</a>
          </div>
        </form>
      </div>
    </div>
  </div>
</section>

<!-- Confirmation Modal (Requirement 3) -->
<div class="modal fade" id="loginConfirmModal" tabindex="-1" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered">
    <div class="modal-content text-center p-4 rounded-4 border-0 shadow-lg">
      <div class="modal-body">
        <div class="text-success mb-3">
          <i class="bi bi-check-circle-fill display-3"></i>
        </div>
        <h4 class="fw-bold mb-3">Submission Confirmed</h4>
        <p class="text-muted">Your login request has been successfully submitted to the secure authentication server.</p>
        <button type="button" class="btn btn-dark px-5 py-2 rounded-pill mt-3" data-bs-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>

<style>
  /* Full container wide navigation menu with mouse hover effect (Requirement 2) */
  .navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
  }

  .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0d6efd;
    transition: width 0.3s ease;
  }

  .navbar-nav .nav-link:hover {
    color: #0d6efd !important;
  }

  .navbar-nav .nav-link:hover::after {
    width: 100%;
  }

  /* Additional Styling */
  .tracking-wider {
    letter-spacing: 1px;
  }

  .carousel-caption {
    padding-bottom: 15%;
    padding-left: 10%;
    padding-right: 10%;
  }

</style>

<script>
  // 3. Confirmation popup window when submit (Requirement 3)
  document.addEventListener('DOMContentLoaded', function() {
    const form = document.getElementById('adminLoginForm');
    const confirmModal = new bootstrap.Modal(document.getElementById('loginConfirmModal'));

    if (form) {
      form.addEventListener('submit', function(e) {
        e.preventDefault();
        // Perform validation check if needed
        confirmModal.show();
        // form.reset(); // Optional reset
      });
    }
  });

</script>
How to use this component

Add it to your project in three steps

  1. Copy the HTML from the Source code tab above and paste it inside your <div class="container"> wrapper.
  2. Make sure the Bootstrap 5 CDN CSS and JS are linked in your <head> and before </body>. Any CodeShikhi component assumes Bootstrap 5.3+ is already loaded.
  3. Swap the placeholder text, links, and images for your own content — the layout, spacing, and responsive behaviour stay intact.

The Breadcrumb + Login Container Page block is fully responsive and works on every screen from 320 px phones to 1440 px+ desktops without additional CSS.

Accessibility checklist

Ship it accessible by default

  • Use semantic HTML landmarks — <header>, <nav>, <main>, <footer> — so screen readers can navigate your page.
  • Give every image an alt attribute (empty alt="" if it's decorative).
  • Label icon-only buttons with aria-label and keep focus outlines visible.
  • Maintain a contrast ratio of at least 4.5:1 for body text against its background.
  • Test the component with Tab / Shift+Tab and Enter — every interactive element should be reachable.
Step-by-step customisation

Make it match your brand

  1. Change the colour palette by overriding Bootstrap CSS variables: --bs-primary, --bs-body-bg.
  2. Adjust spacing with utility classes such as py-5, gap-4, and mt-lg-5 — no custom CSS required.
  3. Swap the typography by loading a Google Font in your <head> and setting --bs-body-font-family.
  4. Replace stock images with brand assets. Keep dimensions similar to avoid layout shift.
  5. Preview at multiple breakpoints (mobile, tablet, desktop) and tweak column spans if content wraps awkwardly.

Need the full theory? Read our Bootstrap 5 Technical Introduction Guide for grid, breakpoints, and Sass customisation in depth.

About the Breadcrumb + Login Container Page component

This component is part of the free CodeShikhi (কোড শিখি) Bootstrap 5 library — a growing collection of copy-paste website building blocks curated for learners and freelance developers. Every block is written in clean, semantic HTML with Bootstrap utility classes, keeps custom CSS to the minimum needed, and works without any build step. Use it as a starting point and adapt the markup, colours, and content to fit your project's brand and audience.

If you spot a bug, want a new variation, or would like to contribute an improvement, reach us via the contact page — we ship updates weekly based on community feedback.

Detailed Technical Breakdown

Detailed Technical Breakdown: Breadcrumb + Login Container Page

Browser compatibility & standards

The Breadcrumb + Login Container Page component is authored against Bootstrap 5.3, which drops legacy Internet Explorer support and targets modern evergreen engines — Chrome, Edge, Firefox, Safari, and all Chromium-based mobile browsers. Because the markup relies exclusively on the standard CSS features that ship with Bootstrap (Flexbox, CSS Grid, CSS custom properties, and the responsive breakpoint system), you can safely deploy this component to any browser released in the last five years without polyfills. If you need to support very old WebKit or Samsung Internet builds, load the standard Bootstrap 5 CSS from the official jsDelivr CDN — the bundled autoprefixer output already covers those vendor prefixes.

Performance impact

Performance-wise this block is intentionally light. The HTML payload for a typical Bootstrap component is under 4 KB gzipped, and it shares the same Bootstrap CSS/JS bundle you are already loading — meaning the marginal cost of adding it to a page is effectively zero KB on repeat visits. There is no JavaScript framework runtime, no hydration cost, and no client-side data fetching. The only images referenced are placeholders you will replace with your own assets; when you do, serve them as WebP or AVIF, add explicit width and height attributes to prevent layout shift (CLS), and lazy-load anything below the fold with loading="lazy". These small changes typically move Lighthouse Performance scores from the mid-80s into the 95+ range on both mobile and desktop.

Utility classes used

The component leans on Bootstrap's utility-first classes to stay declarative: spacing utilities (p-*, m-*, gap-*), the flex helpers (d-flex, align-items-*, justify-content-*), the grid system (container, row, col-lg-*), typography helpers (display-*, lead, text-*), and colour utilities that resolve to Bootstrap CSS variables such as --bs-primary, --bs-body-bg, and --bs-border-color. Because everything is expressed as utilities you can re-theme the entire component by overriding a handful of CSS variables at the :root level — no Sass recompile required.

Exact customisation steps

  1. Copy the source HTML from the tab above and paste it inside your <body>. The outer <div class="container"> wrapper is already included so the component sits on the Bootstrap grid.
  2. Replace the placeholder headings and paragraphs with your own copy. Keep heading levels in order (h1h2h3) so screen readers and search engines can parse the document outline.
  3. Swap any <img> tags for your brand assets. Match the original aspect ratio to avoid layout shift, and always fill in a meaningful alt attribute.
  4. Retune the palette by overriding CSS variables::root { --bs-primary: #4f46e5; --bs-body-bg: #ffffff; }. All utility colour classes update automatically.
  5. Test at each Bootstrap breakpoint — sm (576 px), md (768 px),lg (992 px), xl (1200 px), xxl (1400 px) — using your browser's device toolbar, and tweak column spans if long content wraps.
  6. Ship it with the standard Bootstrap 5 CDN in the <head> and the JS bundle before the closing </body>. No build step required.
Technical & Performance Integration Guide

Technical & Performance Integration Guide — Breadcrumb + Login Container Page (form)

When and why to use this form

Forms are where accessibility mistakes cost real money: every unlabelled field is a visitor who abandons the flow. Bootstrap's form controls already handle sizing, focus rings and validation states — your job is to wire up labels, describe errors and keep the tab order logical.

Accessibility & ARIA attributes

Every input needs a <label for="id"> — placeholders are not labels, they disappear on focus and are ignored by many screen readers. Group related radio buttons or checkboxes in a <fieldset> with a <legend>. Attach help text and error messages with aria-describedby, and set aria-invalid="true" on a field that failed validation so assistive technology announces the problem. Use type="email", type="tel" and inputmode to trigger the correct mobile keyboard, and mark required fields with the required attribute rather than only an asterisk.

Performance notes for this pattern

Client-side validation should be progressive: the form must still submit and validate on the server with JavaScript disabled. Bootstrap's .needs-validation pattern adds under 1 KB of script. Avoid loading a validation library and a date-picker bundle for a three-field contact form — native <input type="date"> is supported everywhere that matters and costs nothing.

Three customisation tricks

  • Use .form-floating for compact layouts that keep the label visible after typing.
  • Add .was-validated on submit to reveal all Bootstrap validation feedback at once.
  • Set autocomplete tokens (name, email, tel) so browsers can fill the form in one tap — a measurable conversion win on mobile.

Mistakes to avoid

  • Using placeholder text as the only label.
  • Disabling the submit button until the form is valid, which leaves keyboard users with no way to trigger error messages.

More designs in this section