Download a free disaster management website template built with HTML, Bootstrap 5, and JavaScript. Easy to use, responsive, and beginner friendly.
Table of Contents
Building a disaster management website can help NGOs, government agencies, and organizations share important updates quickly. A well-designed template makes the process easier and saves time.
In this blog, we will share a free disaster management website template built with HTML, Bootstrap 5, and JavaScript. This template is modern, mobile-friendly, and easy to edit. Whether you are a beginner or an experienced developer, you can customize it for your own needs.
Prerequisites
Before you start, make sure you have:
- Basic knowledge of HTML, CSS, and JavaScript
- Installed a code editor like VS Code or Sublime Text
- Basic understanding of Bootstrap 5 classes
- A web browser (Google Chrome, Firefox, or Edge)
Source Code
Step 1 (HTML Code):
First, we start with HTML to create the layout of our website.
We will use Bootstrap 5 for design because it gives us a modern and responsive look.
For animations and extra features, we will add:
- Swiper.js → to create image and content carousels
- AOS (Animate on Scroll) → to make smooth scroll animations
- Typed.js → to add typing effect in the hero section
Copy the HTML code given below and paste it inside your index.html file.
Step 2 (CSS Code):
Now, let’s style our website. Bootstrap 5 is good, but it does not cover all design needs. So, we will use custom CSS for extra styling.
Copy the CSS code given below and paste it inside your styles.css file.
:root {
--primary-color: #005a9c;
--secondary-color: #343a40;
--accent-color: #ffc107;
--dark-color: #212529;
--light-color: #f8f9fa;
--white-color: #ffffff;
--font-primary: 'Inter', sans-serif;
--font-secondary: 'Poppins', sans-serif;
}
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
body {
font-family: var(--font-secondary);
color: var(--dark-color);
background-color: var(--white-color);
overflow-x: hidden;
font-size: 0.875rem;
line-height: 1.6;
letter-spacing: 0.2px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--font-primary);
font-weight: 600;
}
.section-padding {
padding: 100px 0;
position: relative;
}
.section-bg {
background-color: var(--light-color);
}
.section-title {
margin-bottom: 60px;
}
.section-title h2 {
font-size: 2.5rem;
font-weight: 600;
position: relative;
padding-bottom: 20px;
text-transform: capitalize;
}
.section-title h2::after {
content: '';
position: absolute;
left: 50%;
bottom: 0;
transform: translateX(-50%);
width: 100px;
height: 5px;
background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
border-radius: 5px;
}
.section-title p {
color: var(--primary-color);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
font-size: 0.9rem;
}
.btn {
font-size: 0.875rem;
font-family: var(--font-primary);
padding: 14px 35px;
border-radius: 8px;
letter-spacing: 0.5px;
}
.btn-premium {
background: linear-gradient(145deg, #0062a8, #00508c);
color: var(--white-color);
/* font-weight: 600; */
transition: all 0.3s ease-in-out;
border: none;
box-shadow: 0 5px 15px rgba(0, 90, 156, 0.2),
inset 0 -2px 5px rgba(0, 0, 0, 0.15);
position: relative;
overflow: hidden;
z-index: 1;
}
.btn-premium::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
120deg,
transparent,
rgba(255, 255, 255, 0.3),
transparent
);
transition: left 0.6s ease;
z-index: -1;
}
.btn-premium:hover {
color: var(--white-color);
box-shadow: 0 8px 20px rgba(0, 90, 156, 0.3),
inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}
.btn-premium:hover::before {
left: 100%;
}
.btn-premium-outline {
background-color: transparent;
color: var(--white-color);
transition: all 0.3s ease-in-out;
border: 2px solid rgba(255, 255, 255, 0.8);
}
.btn-premium-outline:hover {
background-color: rgba(255, 255, 255, 0.1);
border-color: var(--white-color);
color: var(--white-color);
}
.btn-secondary-premium {
background-color: var(--white-color);
color: var(--primary-color);
transition: all 0.3s ease-in-out;
border: 2px solid var(--white-color);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.btn-secondary-premium:hover {
background-color: transparent;
border-color: var(--white-color);
color: var(--white-color);
box-shadow: none;
}
/* Shape Dividers */
.shape-divider {
position: absolute;
bottom: -1px;
left: 0;
width: 100%;
overflow: hidden;
line-height: 0;
transform: rotate(180deg);
}
.shape-divider svg {
position: relative;
display: block;
width: calc(100% + 1.3px);
height: 100px;
}
.shape-divider .shape-fill {
fill: var(--light-color);
}
.shape-divider-top {
top: -1px;
bottom: auto;
transform: rotate(0deg);
}
.shape-divider-top .shape-fill {
fill: var(--white-color);
}
/* Navbar */
.navbar {
transition: all 0.4s ease;
padding: 1.2rem 0;
}
.navbar:not(.scrolled) {
background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent);
}
.navbar.scrolled {
background-color: rgba(255, 255, 255, 1);
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
padding: 0.8rem 0;
}
.navbar-brand {
font-family: var(--font-primary);
font-weight: 700;
font-size: 1.8rem;
}
.navbar-brand .fa-shield-halved {
color: var(--primary-color);
}
.navbar-nav .nav-link {
font-family: var(--font-primary);
color: var(--dark-color);
margin: 0 12px;
position: relative;
transition: color 0.3s ease;
font-size: 0.875rem;
}
.dropdown-item {
font-size: 0.875rem;
}
.dropdown-toggle::after {
border: none;
}
.navbar.scrolled .navbar-nav .nav-link {
color: var(--dark-color);
}
.navbar-dark .navbar-nav .nav-link {
color: var(--white-color);
}
.navbar-nav .nav-link::after {
content: '';
position: absolute;
bottom: -5px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 2px;
background-color: var(--accent-color);
transition: width 0.4s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
width: 60%;
}
@media (max-width: 991.98px) {
.navbar .navbar-collapse {
background-color: var(--white-color);
padding: 1rem;
border-radius: 8px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.navbar-nav .nav-link {
color: var(--dark-color) !important;
padding: 0.75rem 0;
}
}
.navbar-toggler {
border: none;
padding: 0;
width: 30px;
height: 22px;
position: relative;
cursor: pointer;
background: transparent;
}
.navbar-toggler span {
display: block;
position: absolute;
height: 3px;
width: 100%;
background: var(--white-color);
border-radius: 3px;
opacity: 1;
left: 0;
transform: rotate(0deg);
transition: 0.25s ease-in-out;
}
.navbar-toggler:focus {
box-shadow: none;
}
.navbar.scrolled .navbar-toggler span {
background: var(--dark-color);
}
.navbar-toggler span:nth-child(1) {
top: 0px;
}
.navbar-toggler span:nth-child(2),
.navbar-toggler span:nth-child(3) {
top: 9px;
}
.navbar-toggler span:nth-child(4) {
top: 18px;
}
.navbar-toggler.open span:nth-child(1),
.navbar-toggler.open span:nth-child(4) {
top: 9px;
width: 0%;
left: 50%;
}
.navbar-toggler.open span:nth-child(2) {
transform: rotate(45deg);
}
.navbar-toggler.open span:nth-child(3) {
transform: rotate(-45deg);
}
/* Hero Section */
#hero {
position: relative;
height: 100vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: var(--white-color);
overflow: hidden;
}
#hero-video {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -2;
transform: translateX(-50%) translateY(-50%);
}
#hero::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
45deg,
rgba(0, 90, 156, 0.5),
rgba(52, 58, 64, 0.5)
);
z-index: -1;
}
.hero-content h1 {
font-size: 4rem;
font-weight: 700;
margin-bottom: 20px;
}
.typed-cursor {
color: var(--accent-color);
font-size: 4rem;
}
.hero-content p {
font-size: 1.2rem;
margin-bottom: 40px;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
/* About Section */
.about-card {
background: var(--white-color);
padding: 40px;
border-radius: 15px;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
text-align: center;
transition: all 0.3s ease;
height: 100%;
border-bottom: 5px solid transparent;
}
.about-card:hover {
transform: translateY(-10px);
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
border-bottom-color: var(--primary-color);
}
.about-card .icon {
font-size: 3rem;
margin-bottom: 20px;
display: inline-block;
background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.about-card h3 {
font-size: 1.4rem;
margin-bottom: 15px;
}
/* Services Section */
.service-card {
background: var(--white-color);
border-radius: 15px;
overflow: hidden;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
transition: all 0.4s ease;
height: 100%;
text-align: center;
}
.service-card .service-img-container {
height: 200px;
overflow: hidden;
position: relative;
}
.service-card .service-img {
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
transition: transform 0.5s ease;
}
.service-card:hover .service-img {
transform: scale(1.1);
}
.service-card .service-content {
padding: 30px;
}
.service-card h4 {
font-size: 1.3rem;
margin-bottom: 15px;
}
/* Statistics Section */
#stats {
background: linear-gradient(rgba(0, 90, 156, 0.9), rgba(0, 90, 156, 0.9)),
url('https://images.unsplash.com/photo-1488190211105-8b0e65b80b4e?q=80&w=2070&auto=format&fit=crop')
center center/cover no-repeat fixed;
color: var(--white-color);
text-align: center;
}
.counter-box .icon {
font-size: 3rem;
margin-bottom: 15px;
color: var(--accent-color);
}
.counter-box .counter {
font-size: 3.5rem;
font-weight: 700;
font-family: var(--font-primary);
}
.counter-box p {
font-size: 1.1rem;
font-weight: 300;
}
/* Alerts Ticker Section */
.news-ticker-container {
background-color: var(--dark-color);
color: var(--white-color);
padding: 0;
overflow: hidden;
}
.ticker-wrap {
display: flex;
align-items: stretch;
}
.ticker-title {
background-color: var(--accent-color);
padding: 15px 25px;
font-weight: 700;
font-family: var(--font-primary);
white-space: nowrap;
color: var(--dark-color);
display: flex;
align-items: center;
}
.ticker-title i {
margin-right: 10px;
}
.ticker-content {
flex-grow: 1;
overflow: hidden;
align-self: center;
}
.ticker-move {
display: inline-block;
white-space: nowrap;
animation: ticker 50s linear infinite;
}
.ticker-move span {
margin: 0 40px;
}
.ticker-move .fa-bolt {
color: var(--accent-color);
}
@keyframes ticker {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(-100%);
}
}
/* Gallery Section */
.gallery-item {
position: relative;
overflow: hidden;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.gallery-item img {
transition: transform 0.4s ease;
width: 100%;
}
.gallery-item:hover img {
transform: scale(1.1);
}
.gallery-item .gallery-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(transparent, rgba(0, 90, 156, 0.8));
display: flex;
align-items: flex-end;
justify-content: center;
opacity: 0;
transition: opacity 0.4s ease;
padding: 20px;
}
.gallery-item:hover .gallery-overlay {
opacity: 1;
}
.gallery-overlay .icon {
color: var(--white-color);
font-size: 2.5rem;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* Resources Section */
.accordion-button {
font-family: var(--font-primary);
font-weight: 600;
font-size: 1.1rem;
}
.accordion-button:not(.collapsed) {
color: var(--primary-color);
background-color: rgba(0, 90, 156, 0.1);
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}
.accordion-item {
border-radius: 10px !important;
overflow: hidden;
border: none;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
/* Testimonials Section */
.testimonial-card {
background: var(--white-color);
padding: 40px;
border-radius: 15px;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
text-align: center;
position: relative;
height: 100%;
}
.testimonial-card::before {
content: '\f10d';
font-family: 'Font Awesome 6 Free';
font-weight: 900;
position: absolute;
top: 20px;
left: 30px;
font-size: 3rem;
color: var(--primary-color);
opacity: 0.1;
}
.testimonial-card img {
width: 80px;
height: 80px;
border-radius: 50%;
object-fit: cover;
margin: 0 auto 20px;
border: 4px solid var(--primary-color);
}
.testimonial-card .quote {
font-size: 1.05rem;
font-style: italic;
color: #555;
margin-bottom: 20px;
}
.testimonial-card .name {
font-weight: 600;
font-family: var(--font-primary);
color: var(--primary-color);
}
.testimonial-card .position {
font-size: 0.9rem;
color: var(--secondary-color);
}
.swiper-pagination-bullet-active {
background-color: var(--primary-color) !important;
}
/* CTA Section */
#cta {
background: linear-gradient(rgba(0, 90, 156, 0.9), rgba(52, 58, 64, 0.9)),
url('https://images.unsplash.com/photo-1518495973542-4542c06a5843?q=80&w=1974&auto=format&fit=crop')
center center/cover no-repeat fixed;
color: var(--white-color);
text-align: center;
}
#cta h2 {
font-size: 2.8rem;
margin-bottom: 20px;
}
#cta p {
font-size: 1.2rem;
margin-bottom: 40px;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
/* Blog Section */
.blog-card {
background: var(--white-color);
border-radius: 15px;
overflow: hidden;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
height: 100%;
}
.blog-card:hover {
transform: translateY(-10px);
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}
.blog-card .blog-img-container {
height: 220px;
overflow: hidden;
}
.blog-card img {
height: 100%;
width: 100%;
object-fit: cover;
transition: transform 0.4s ease;
}
.blog-card:hover img {
transform: scale(1.1);
}
.blog-card .blog-content {
padding: 30px;
}
.blog-card .blog-meta {
font-size: 0.85rem;
color: var(--primary-color);
margin-bottom: 10px;
}
.blog-card .blog-title {
font-size: 1.2rem;
font-weight: 600;
color: var(--dark-color);
text-decoration: none;
transition: color 0.3s ease;
}
.blog-card .blog-title:hover {
color: var(--primary-color);
}
.blog-card .read-more {
color: var(--primary-color);
text-decoration: none;
font-weight: 600;
font-size: 0.9rem;
}
/* Contact Section */
.contact-info {
background: var(--secondary-color);
color: var(--white-color);
padding: 40px;
border-radius: 15px;
height: 100%;
}
.contact-info h3 {
margin-bottom: 30px;
}
.contact-info .info-item {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.contact-info .info-item .icon {
font-size: 1.5rem;
width: 40px;
color: var(--accent-color);
}
.contact-form {
background: var(--white-color);
padding: 40px;
border-radius: 15px;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}
.form-control {
border-radius: 10px;
padding: 12px;
border: 1px solid #ddd;
}
.form-control:focus {
box-shadow: 0 0 0 0.25rem rgba(0, 90, 156, 0.25);
border-color: var(--primary-color);
}
.map-container {
border-radius: 15px;
overflow: hidden;
height: 400px;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
/* Footer */
footer {
background-color: var(--dark-color);
color: rgba(255, 255, 255, 0.7);
padding-top: 80px;
}
footer h5 {
color: var(--white-color);
font-family: var(--font-primary);
margin-bottom: 20px;
}
footer a {
color: rgba(255, 255, 255, 0.7);
text-decoration: none;
transition: color 0.3s ease;
}
footer a:hover {
color: var(--white-color);
}
footer .list-unstyled li {
margin-bottom: 10px;
}
.social-icons a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.1);
color: var(--white-color);
font-size: 1.2rem;
margin-right: 10px;
transition: all 0.3s ease;
}
.social-icons a:hover {
background-color: var(--primary-color);
transform: translateY(-3px);
}
.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding: 20px 0;
font-size: 12px;
letter-spacing: 0.5px;
margin-top: 60px;
}
/* Scroll to top button */
#scrollTopBtn {
display: none;
position: fixed;
bottom: 20px;
right: 20px;
z-index: 99;
border: none;
outline: none;
background-color: var(--primary-color);
color: white;
cursor: pointer;
padding: 10px;
border-radius: 50%;
width: 50px;
height: 50px;
font-size: 1.5rem;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
}
#scrollTopBtn:hover {
background-color: var(--secondary-color);
transform: translateY(-3px);
} Step 3 (JavaScript Code):
Finally, we add JavaScript to make the functions work.
We will initialize Swiper, AOS animations, and Typed.js typing effect.
Copy the JavaScript code given below and paste it inside your script.js file.
$(document).ready(function () {
// --- Initialize AOS (Animate on Scroll) ---
AOS.init({
duration: 800,
once: true,
offset: 50,
});
// --- 1. Navbar ---
$(window).scroll(function () {
if ($(this).scrollTop() > 50) {
$('#mainNavbar').addClass('scrolled').removeClass('navbar-dark');
} else {
$('#mainNavbar').removeClass('scrolled').addClass('navbar-dark');
}
});
$('.navbar-toggler').click(function () {
$(this).toggleClass('open');
});
$('.navbar-nav a').on('click', function (event) {
if (this.hash !== '') {
event.preventDefault();
var hash = this.hash;
$('html, body').animate(
{
scrollTop: $(hash).offset().top - 80,
},
800
);
}
if ($('.navbar-toggler').is(':visible')) {
$('.navbar-collapse').collapse('hide');
$('.navbar-toggler').removeClass('open');
}
});
// --- 2. Hero Section ---
// Initialize Typed.js
var typed = new Typed('#typed-hero', {
strings: [
'Responding to Crisis.',
'Rebuilding Lives.',
'Your Support Saves.',
],
typeSpeed: 50,
backSpeed: 30,
backDelay: 2000,
loop: true,
});
// --- 4. Services Section ---
// Initialize Vanilla-Tilt.js
VanillaTilt.init(document.querySelectorAll('[data-tilt]'), {
max: 15,
speed: 400,
glare: true,
'max-glare': 0.5,
});
// --- 5. Statistics / Counter ---
function animateCounter(element) {
var $this = $(element);
var countTo = $this.attr('data-count');
$({ countNum: $this.text() }).animate(
{
countNum: countTo,
},
{
duration: 2000,
easing: 'swing',
step: function () {
$this.text(Math.floor(this.countNum));
},
complete: function () {
let finalVal = this.countNum
.toString()
.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
$this.text(finalVal);
},
}
);
}
var statsSection = $('#stats');
if (statsSection.length) {
statsSection.waypoint(
function (direction) {
if (direction === 'down') {
$('.counter').each(function () {
$(this).attr('data-count', $(this).text().replace(/,/g, ''));
$(this).text('0');
animateCounter(this);
});
this.destroy();
}
},
{
offset: '75%',
}
);
}
// --- 7. Gallery / Media ---
const lightbox = GLightbox({ selector: '.glightbox' });
// --- 9. Testimonials ---
var swiper = new Swiper('.testimonials-slider', {
loop: true,
grabCursor: true,
spaceBetween: 30,
autoplay: {
delay: 5000,
disableOnInteraction: false,
},
pagination: {
el: '.swiper-pagination',
clickable: true,
},
breakpoints: {
640: { slidesPerView: 1 },
768: { slidesPerView: 2 },
1024: { slidesPerView: 3 },
},
});
// --- Contact Form ---
$('#contactForm').on('submit', function (e) {
e.preventDefault();
// A more modern feedback approach
const btn = $(this).find('button[type="submit"]');
btn.text('Sending...').prop('disabled', true);
setTimeout(() => {
btn.text('Message Sent!').css('background', '#28a745');
setTimeout(() => {
this.reset();
btn.text('Send Message').prop('disabled', false).css('background', '');
}, 2000);
}, 1000);
});
// --- Scroll to Top Button ---
var scrollTopBtn = $('#scrollTopBtn');
$(window).scroll(function () {
if ($(window).scrollTop() > 300) {
scrollTopBtn.fadeIn();
} else {
scrollTopBtn.fadeOut();
}
});
scrollTopBtn.on('click', function () {
$('html, body').animate({ scrollTop: 0 }, 500);
});
});Final Output:
Conclusion:
Creating a disaster management website doesn’t have to be difficult. With this free HTML, Bootstrap 5, and JavaScript template, you can launch a responsive and professional website in no time.
This template is fully customizable, mobile-friendly, and designed for NGOs, organizations, and agencies working in disaster relief.
That’s a wrap!
I hope you enjoyed this post. Now, with these examples, you can create your own amazing page.
Did you like it? Let me know in the comments below 🔥 and you can support me by buying me a coffee
And don’t forget to sign up to our email newsletter so you can get useful content like this sent right to your inbox!
Thanks!
Faraz 😊


