Back to Full Page Component

Contact Full Page

Contact Page:  i. Breadcrumb Section.  ii. Contact Information (Email, Phone, Location).  iii. Get In Touch Message Form.  iv. Embedded Location Map.  v. Client Testimonials (using owl carousel).

#contact full page#contact page

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">
        <li class="breadcrumb-item"><a href="index.html" class="text-decoration-none">Home</a></li>
        <li class="breadcrumb-item active fw-bold text-primary" aria-current="page">Contact Us</li>
      </ol>
    </nav>
  </div>
</section>

<!-- Main Contact Section -->
<section class="py-5 bg-white">
  <div class="container py-lg-4">
    <div class="row g-5">
      <!-- ii. Contact Information -->
      <div class="col-lg-4">
        <h3 class="fw-bold mb-4">Contact Information</h3>
        <p class="text-muted mb-5">Have a question or a project in mind? reach out and let's create something amazing together.</p>

        <div class="d-flex mb-4 align-items-center">
          <div class="icon-box bg-primary-subtle text-primary rounded-circle me-3 d-flex align-items-center justify-content-center" style="width: 50px; height: 50px;">
            <i class="bi bi-geo-alt-fill fs-4"></i>
          </div>
          <div>
            <h6 class="fw-bold mb-0">Location</h6>
            <p class="text-muted small mb-0">123 Design Street, New York, USA</p>
          </div>
        </div>

        <div class="d-flex mb-4 align-items-center">
          <div class="icon-box bg-success-subtle text-success rounded-circle me-3 d-flex align-items-center justify-content-center" style="width: 50px; height: 50px;">
            <i class="bi bi-telephone-fill fs-4"></i>
          </div>
          <div>
            <h6 class="fw-bold mb-0">Phone Number</h6>
            <p class="text-muted small mb-0">+1 (555) 000-1234</p>
          </div>
        </div>

        <div class="d-flex mb-4 align-items-center">
          <div class="icon-box bg-info-subtle text-info rounded-circle me-3 d-flex align-items-center justify-content-center" style="width: 50px; height: 50px;">
            <i class="bi bi-envelope-at-fill fs-4"></i>
          </div>
          <div>
            <h6 class="fw-bold mb-0">Email Address</h6>
            <p class="text-muted small mb-0">hello@alexrivera.dev</p>
          </div>
        </div>

        <!-- Social Links -->
        <div class="mt-5">
          <h6 class="fw-bold mb-3">Follow Me</h6>
          <div class="d-flex gap-2">
            <a href="#" class="btn btn-outline-dark btn-sm rounded-circle"><i class="bi bi-linkedin"></i></a>
            <a href="#" class="btn btn-outline-dark btn-sm rounded-circle"><i class="bi bi-github"></i></a>
            <a href="#" class="btn btn-outline-dark btn-sm rounded-circle"><i class="bi bi-twitter-x"></i></a>
          </div>
        </div>
      </div>

      <!-- iii. Get In Touch Message Form -->
      <div class="col-lg-8">
        <div class="card border-0 shadow-sm rounded-4 p-4 p-md-5">
          <h3 class="fw-bold mb-4">Send a Message</h3>
          <form id="contactForm">
            <div class="row g-3">
              <div class="col-md-6">
                <label class="form-label small fw-bold">Full Name</label>
                <input type="text" class="form-control bg-light border-0 py-3 rounded-3" placeholder="Enter your name" required>
              </div>
              <div class="col-md-6">
                <label class="form-label small fw-bold">Email Address</label>
                <input type="email" class="form-control bg-light border-0 py-3 rounded-3" placeholder="Enter your email" required>
              </div>
              <div class="col-12">
                <label class="form-label small fw-bold">Subject</label>
                <input type="text" class="form-control bg-light border-0 py-3 rounded-3" placeholder="Project Inquiry" required>
              </div>
              <div class="col-12">
                <label class="form-label small fw-bold">Message</label>
                <textarea class="form-control bg-light border-0 rounded-3" rows="5" placeholder="How can I help you?" required></textarea>
              </div>
              <div class="col-12 text-end">
                <button type="submit" class="btn btn-primary btn-lg px-5 rounded-pill shadow-sm">
                  Send Message <i class="bi bi-send ms-2"></i>
                </button>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- iv. Embedded Location Map -->
<section class="py-5 bg-light">
  <div class="container">
    <div class="rounded-4 overflow-hidden border shadow-sm" style="height: 400px;">
      <!-- Placeholder for Iframe - Realistic Representation -->
      <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d193595.6782387902!2d-74.11976373954434!3d40.69766374874431!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89c24fa5d33f083b%3A0xc80b8f06e177fe62!2sNew%20York%2C%20NY%2C%20USA!5e0!3m2!1sen!2sbd!4v1698234567890!5m2!1sen!2sbd" width="100%" height="100%" style="border:0;" allowfullscreen="" loading="lazy">
      </iframe>
    </div>
  </div>
</section>

<!-- v. Client Testimonials (Owl Carousel) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css">

<section class="py-5 bg-white">
  <div class="container py-4 text-center">
    <h6 class="text-primary fw-bold text-uppercase mb-2">Reviews</h6>
    <h2 class="fw-bold mb-5">Successful Partnerships</h2>
    <div class="owl-carousel testimonial-slider text-center">
      <div class="item px-4">
        <i class="bi bi-quote fs-1 text-primary opacity-25"></i>
        <p class="lead fst-italic text-muted mb-4">"Alex delivered the project perfectly on time. The attention to detail in the code and design was truly exceptional. Highly recommended!"</p>
        <img src="https://i.pravatar.cc/100?u=1" class="rounded-circle mx-auto mb-3" style="width: 80px; height: 80px;" alt="Client">
        <h6 class="fw-bold mb-1">Sarah Johnson</h6>
        <p class="small text-secondary">Tech Lead at Innovate Solutions</p>
      </div>
      <div class="item px-4">
        <i class="bi bi-quote fs-1 text-primary opacity-25"></i>
        <p class="lead fst-italic text-muted mb-4">"Working with Alex was a game changer for our business. The new website increased our sales by 40% in just two months."</p>
        <img src="https://i.pravatar.cc/100?u=2" class="rounded-circle mx-auto mb-3" style="width: 80px; height: 80px;" alt="Client">
        <h6 class="fw-bold mb-1">Michael Chen</h6>
        <p class="small text-secondary">Founder of E-Commerce Hub</p>
      </div>
    </div>
  </div>
</section>

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script>

<script>
  $(document).ready(function() {
    $(".testimonial-slider").owlCarousel({
      loop: true,
      margin: 30,
      dots: true,
      nav: false,
      autoplay: true,
      autoplayTimeout: 5000,
      responsive: {
        0: {
          items: 1
        },
        768: {
          items: 1
        },
        1000: {
          items: 1
        }
      }
    });
  });

</script>

<style>
  .form-control:focus {
    box-shadow: none;
    background-color: #fff !important;
    border: 1px solid #0d6efd !important;
  }

  .testimonial-slider .owl-dots {
    margin-top: 30px;
  }

  .testimonial-slider .owl-dot.active span {
    background: #0d6efd !important;
  }

  .icon-box {
    transition: transform 0.3s ease;
  }

  .d-flex:hover .icon-box {
    transform: scale(1.1);
  }

</style>
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 Contact Full 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 Contact Full 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: Contact Full Page

Browser compatibility & standards

The Contact Full 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 — Contact Full 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