Okay, I can help you create a basic website structure inspired by an airline like Iberia, using HTML, CSS, and Bootstrap.
This sets up a basic HTML page with a Bootstrap navigation bar, a hero section with a placeholder background and a simple booking form layout, a section for featured destinations using cards, and a footer. The custom CSS file (style.css) adds styling for the hero section background.
Okay, let's enhance the website with a login modal, a carousel, a pricing section, and updated footer content including social media links and contact information.
<jitProject id="airline-website-bootstrap" title="Interactive Airline Website Example (Bootstrap)"> <jitFile type="file" filePath="index.html"> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Airline Demo - Interactive</title> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous" /> <!-- Font Awesome CSS (for social icons) --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <!-- Custom CSS --> <link rel="stylesheet" href="style.css" /> </head> <body> <!-- Navigation Bar --> <nav class="navbar navbar-expand-lg navbar-light bg-light sticky-top"> <div class="container"> <a class="navbar-brand" href="#">AirlineDemo</a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation" > <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarNav"> <ul class="navbar-nav ms-auto"> <li class="nav-item"> <a class="nav-link active" aria-current="page" href="#" >Book</a > </li> <li class="nav-item"> <a class="nav-link" href="#">Manage Booking</a> </li> <li class="nav-item"> <a class="nav-link" href="#">Check-in</a> </li> <li class="nav-item"> <a class="nav-link" href="#">Information</a> </li> <li class="nav-item"> <a class="nav-link" href="#">Loyalty Program</a> </li> <li class="nav-item"> <button type="button" class="btn btn-primary ms-lg-2" data-bs-toggle="modal" data-bs-target="#loginModal"> Login </button> </li> </ul> </div> </div> </nav> <!-- Hero Section with Carousel -->
<header id="heroCarousel" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#heroCarousel" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#heroCarousel" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#heroCarousel" data-bs-slide-to="2" aria-label="Slide 3"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="https://via.placeholder.com/1920x600/FF0000/FFFFFF?text=Amazing+Deals+Await" class="d-block w-100" alt="Slide 1">
<div class="carousel-caption d-none d-md-block text-start">
<h5>Discover Your Next Destination</h5>
<p>Unbeatable prices to top locations worldwide.</p>
</div>
</div>
<div class="carousel-item">
<img src="https://via.placeholder.com/1920x600/0000FF/FFFFFF?text=Fly+in+Comfort" class="d-block w-100" alt="Slide 2">
<div class="carousel-caption d-none d-md-block">
<h5>Experience Premium Service</h5>
<p>Comfort and quality at 30,000 feet.</p>
</div>
</div>
<div class="carousel-item">
<img src="https://via.placeholder.com/1920x600/00FF00/000000?text=Book+Your+Dream+Vacation" class="d-block w-100" alt="Slide 3">
<div class="carousel-caption d-none d-md-block text-end">
<h5>Adventure is Calling</h5>
<p>Start planning your trip today.</p>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#heroCarousel" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#heroCarousel" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</header>
<!-- Booking Form Section -->
<section class="booking-section bg-light p-4">
<div class="container">
<h2 class="text-center mb-4">Book Your Flight</h2>
<form class="row g-3 align-items-end justify-content-center">
<div class="col-lg-2 col-md-4">
<label for="origin" class="form-label">From</label>
<input type="text" class="form-control" id="origin" placeholder="Origin City">
</div>
<div class="col-lg-2 col-md-4">
<label for="destination" class="form-label">To</label>
<input type="text" class="form-control" id="destination" placeholder="Destination City">
</div>
<div class="col-lg-2 col-md-4">
<label for="departureDate" class="form-label">Depart</label>
<input type="date" class="form-control" id="departureDate">
</div>
<div class="col-lg-2 col-md-4">
<label for="returnDate" class="form-label">Return</label>
<input type="date" class="form-control" id="returnDate">
</div>
<div class="col-lg-1 col-md-4">
<label for="passengers" class="form-label">Passengers</label>
<input type="number" class="form-control" id="passengers" value="1" min="1">
</div>
<div class="col-lg-2 col-md-12 text-center text-lg-start mt-3 mt-lg-0">
<button type="submit" class="btn btn-primary w-100">Search Flights</button>
</div>
</form>
</div>
</section>
<!-- Pricing/Services Section -->
<section class="container mt-5 mb-5">
<h2 class="text-center mb-4">Our Service Classes</h2>
<div class="row text-center">
<div class="col-md-4 mb-4">
<div class="card h-100">
<div class="card-body">
<i class="fas fa-couch fa-3x text-primary mb-3"></i>
<h5 class="card-title">Economy</h5>
<p class="card-text">Affordable travel with essential comforts. Enjoy complimentary snacks and beverages on most flights.</p>
<a href="#" class="btn btn-outline-primary">Learn More</a>
</div>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="card h-100">
<div class="card-body">
<i class="fas fa-briefcase fa-3x text-success mb-3"></i>
<h5 class="card-title">Business</h5>
<p class="card-text">Enhanced comfort, priority services, and premium dining options. Perfect for productive journeys.</p>
<a href="#" class="btn btn-outline-success">Learn More</a>
</div>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="card h-100">
<div class="card-body">
<i class="fas fa-crown fa-3x text-warning mb-3"></i>
<h5 class="card-title">First Class</h5>
<p class="card-text">The ultimate travel experience with luxurious seating, exclusive amenities, and personalized service.</p>
<a href="#" class="btn btn-outline-warning">Learn More</a>
</div>
</div>
</div>
</div>
</section>
<!-- Featured Destinations -->
<section class="container mt-5 mb-5">
<h2 class="text-center mb-4">Featured Destinations</h2>
<div class="row">
<div class="col-md-4 mb-3">
<div class="card">
<img src="https://via.placeholder.com/300x200/FFA07A/000000?text=Paris" class="card-img-top" alt="Destination 1">
<div class="card-body">
<h5 class="card-title">Paris</h5>
<p class="card-text">Explore the city of lights.</p>
<a href="#" class="btn btn-outline-primary">Flights from $599</a>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card">
<img src="https://via.placeholder.com/300x200/ADD8E6/000000?text=Rome" class="card-img-top" alt="Destination 2">
<div class="card-body">
<h5 class="card-title">Rome</h5>
<p class="card-text">Discover ancient history.</p>
<a href="#" class="btn btn-outline-primary">Flights from $649</a>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card">
<img src="https://via.placeholder.com/300x200/90EE90/000000?text=New+York" class="card-img-top" alt="Destination 3">
<div class="card-body">
<h5 class="card-title">New York</h5>
<p class="card-text">Experience the city that never sleeps.</p>
<a href="#" class="btn btn-outline-primary">Flights from $499</a>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-dark text-white pt-5 pb-4">
<div class="container text-center text-md-start">
<div class="row text-center text-md-start">
<div class="col-md-3 col-lg-3 col-xl-3 mx-auto mt-3">
<h5 class="text-uppercase mb-4 fw-bold text-warning">AirlineDemo</h5>
<p>Your reliable partner for exploring the world. Book your next journey with us and experience seamless travel.</p>
</div>
<div class="col-md-2 col-lg-2 col-xl-2 mx-auto mt-3">
<h5 class="text-uppercase mb-4 fw-bold text-warning">Quick Links</h5>
<p><a href="#" class="text-white" style="text-decoration: none;">About Us</a></p>
<p><a href="#" class="text-white" style="text-decoration: none;">Careers</a></p>
<p><a href="#" class="text-white" style="text-decoration: none;">Press</a></p>
<p><a href="#" class="text-white" style="text-decoration: none;">Help</a></p>
</div>
<div class="col-md-3 col-lg-2 col-xl-2 mx-auto mt-3">
<h5 class="text-uppercase mb-4 fw-bold text-warning">Contact Us</h5>
<p><i class="fas fa-home me-3"></i> 123 Airline Ave, Flight City, FC 54321</p>
<p><i class="fas fa-envelope me-3"></i> info@airlinedemo.com</p>
<p><i class="fas fa-phone me-3"></i> + 01 234 567 88</p>
<p><i class="fas fa-print me-3"></i> + 01 234 567 89</p>
</div>
<div class="col-md-4 col-lg-3 col-xl-3 mx-auto mt-3">
<h5 class="text-uppercase mb-4 fw-bold text-warning">Follow Us</h5>
<!-- Social Media Icons -->
<a href="#" class="btn btn-outline-light btn-floating m-1" role="button"><i class="fab fa-facebook-f"></i></a>
<a href="#" class="btn btn-outline-light btn-floating m-1" role="button"><i class="fab fa-twitter"></i></a>
<a href="#" class="btn btn-outline-light btn-floating m-1" role="button"><i class="fab fa-instagram"></i></a>
<a href="#" class="btn btn-outline-light btn-floating m-1" role="button"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
<hr class="mb-4">
<div class="text-center">
<p>© 2023 AirlineDemo. All rights reserved.</p>
</div>
</div>
</footer>
<!-- Login Modal -->
<div class="modal fade" id="loginModal" tabindex="-1" aria-labelledby="loginModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="loginModalLabel">Member Login</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label for="loginEmail" class="form-label">Email address / Member ID</label>
<input type="email" class="form-control" id="loginEmail" aria-describedby="emailHelp">
</div>
<div class="mb-3">
<label for="loginPassword" class="form-label">Password</label>
<input type="password" class="form-control" id="loginPassword">
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="rememberMe">
<label class="form-check-label" for="rememberMe">Remember me</label>
</div>
<button type="submit" class="btn btn-primary w-100">Login</button>
</form>
</div>
<div class="modal-footer justify-content-center">
<a href="#">Forgot password?</a> | <a href="#">Register Now</a>
</div>
</div>
</div>
</div>
<!-- Bootstrap Bundle with Popper -->
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"
></script>
</body>
</html>
<!-- Hero Section with Carousel -->
<header id="heroCarousel" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#heroCarousel" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#heroCarousel" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#heroCarousel" data-bs-slide-to="2" aria-label="Slide 3"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="https://via.placeholder.com/1920x600/FF0000/FFFFFF?text=Amazing+Deals+Await" class="d-block w-100" alt="Slide 1">
<div class="carousel-caption d-none d-md-block text-start">
<h5>Discover Your Next Destination</h5>
<p>Unbeatable prices to top locations worldwide.</p>
</div>
</div>
<div class="carousel-item">
<img src="https://via.placeholder.com/1920x600/0000FF/FFFFFF?text=Fly+in+Comfort" class="d-block w-100" alt="Slide 2">
<div class="carousel-caption d-none d-md-block">
<h5>Experience Premium Service</h5>
<p>Comfort and quality at 30,000 feet.</p>
</div>
</div>
<div class="carousel-item">
<img src="https://via.placeholder.com/1920x600/00FF00/000000?text=Book+Your+Dream+Vacation" class="d-block w-100" alt="Slide 3">
<div class="carousel-caption d-none d-md-block text-end">
<h5>Adventure is Calling</h5>
<p>Start planning your trip today.</p>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#heroCarousel" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#heroCarousel" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</header>
<!-- Booking Form Section -->
<section class="booking-section bg-light p-4">
<div class="container">
<h2 class="text-center mb-4">Book Your Flight</h2>
<form class="row g-3 align-items-end justify-content-center">
<div class="col-lg-2 col-md-4">
<label for="origin" class="form-label">From</label>
<input type="text" class="form-control" id="origin" placeholder="Origin City">
</div>
<div class="col-lg-2 col-md-4">
<label for="destination" class="form-label">To</label>
<input type="text" class="form-control" id="destination" placeholder="Destination City">
</div>
<div class="col-lg-2 col-md-4">
<label for="departureDate" class="form-label">Depart</label>
<input type="date" class="form-control" id="departureDate">
</div>
<div class="col-lg-2 col-md-4">
<label for="returnDate" class="form-label">Return</label>
<input type="date" class="form-control" id="returnDate">
</div>
<div class="col-lg-1 col-md-4">
<label for="passengers" class="form-label">Passengers</label>
<input type="number" class="form-control" id="passengers" value="1" min="1">
</div>
<div class="col-lg-2 col-md-12 text-center text-lg-start mt-3 mt-lg-0">
<button type="submit" class="btn btn-primary w-100">Search Flights</button>
</div>
</form>
</div>
</section>
<!-- Pricing/Services Section -->
<section class="container mt-5 mb-5">
<h2 class="text-center mb-4">Our Service Classes</h2>
<div class="row text-center">
<div class="col-md-4 mb-4">
<div class="card h-100">
<div class="card-body">
<i class="fas fa-couch fa-3x text-primary mb-3"></i>
<h5 class="card-title">Economy</h5>
<p class="card-text">Affordable travel with essential comforts. Enjoy complimentary snacks and beverages on most flights.</p>
<a href="#" class="btn btn-outline-primary">Learn More</a>
</div>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="card h-100">
<div class="card-body">
<i class="fas fa-briefcase fa-3x text-success mb-3"></i>
<h5 class="card-title">Business</h5>
<p class="card-text">Enhanced comfort, priority services, and premium dining options. Perfect for productive journeys.</p>
<a href="#" class="btn btn-outline-success">Learn More</a>
</div>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="card h-100">
<div class="card-body">
<i class="fas fa-crown fa-3x text-warning mb-3"></i>
<h5 class="card-title">First Class</h5>
<p class="card-text">The ultimate travel experience with luxurious seating, exclusive amenities, and personalized service.</p>
<a href="#" class="btn btn-outline-warning">Learn More</a>
</div>
</div>
</div>
</div>
</section>
<!-- Featured Destinations -->
<section class="container mt-5 mb-5">
<h2 class="text-center mb-4">Featured Destinations</h2>
<div class="row">
<div class="col-md-4 mb-3">
<div class="card">
<img src="https://via.placeholder.com/300x200/FFA07A/000000?text=Paris" class="card-img-top" alt="Destination 1">
<div class="card-body">
<h5 class="card-title">Paris</h5>
<p class="card-text">Explore the city of lights.</p>
<a href="#" class="btn btn-outline-primary">Flights from $599</a>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card">
<img src="https://via.placeholder.com/300x200/ADD8E6/000000?text=Rome" class="card-img-top" alt="Destination 2">
<div class="card-body">
<h5 class="card-title">Rome</h5>
<p class="card-text">Discover ancient history.</p>
<a href="#" class="btn btn-outline-primary">Flights from $649</a>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card">
<img src="https://via.placeholder.com/300x200/90EE90/000000?text=New+York" class="card-img-top" alt="Destination 3">
<div class="card-body">
<h5 class="card-title">New York</h5>
<p class="card-text">Experience the city that never sleeps.</p>
<a href="#" class="btn btn-outline-primary">Flights from $499</a>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-dark text-white pt-5 pb-4">
<div class="container text-center text-md-start">
<div class="row text-center text-md-start">
<div class="col-md-3 col-lg-3 col-xl-3 mx-auto mt-3">
<h5 class="text-uppercase mb-4 fw-bold text-warning">AirlineDemo</h5>
<p>Your reliable partner for exploring the world. Book your next journey with us and experience seamless travel.</p>
</div>
<div class="col-md-2 col-lg-2 col-xl-2 mx-auto mt-3">
<h5 class="text-uppercase mb-4 fw-bold text-warning">Quick Links</h5>
<p><a href="#" class="text-white" style="text-decoration: none;">About Us</a></p>
<p><a href="#" class="text-white" style="text-decoration: none;">Careers</a></p>
<p><a href="#" class="text-white" style="text-decoration: none;">Press</a></p>
<p><a href="#" class="text-white" style="text-decoration: none;">Help</a></p>
</div>
<div class="col-md-3 col-lg-2 col-xl-2 mx-auto mt-3">
<h5 class="text-uppercase mb-4 fw-bold text-warning">Contact Us</h5>
<p><i class="fas fa-home me-3"></i> 123 Airline Ave, Flight City, FC 54321</p>
<p><i class="fas fa-envelope me-3"></i> info@airlinedemo.com</p>
<p><i class="fas fa-phone me-3"></i> + 01 234 567 88</p>
<p><i class="fas fa-print me-3"></i> + 01 234 567 89</p>
</div>
<div class="col-md-4 col-lg-3 col-xl-3 mx-auto mt-3">
<h5 class="text-uppercase mb-4 fw-bold text-warning">Follow Us</h5>
<!-- Social Media Icons -->
<a href="#" class="btn btn-outline-light btn-floating m-1" role="button"><i class="fab fa-facebook-f"></i></a>
<a href="#" class="btn btn-outline-light btn-floating m-1" role="button"><i class="fab fa-twitter"></i></a>
<a href="#" class="btn btn-outline-light btn-floating m-1" role="button"><i class="fab fa-instagram"></i></a>
<a href="#" class="btn btn-outline-light btn-floating m-1" role="button"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
<hr class="mb-4">
<div class="text-center">
<p>© 2023 AirlineDemo. All rights reserved.</p>
</div>
</div>
</footer>
<!-- Login Modal -->
<div class="modal fade" id="loginModal" tabindex="-1" aria-labelledby="loginModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="loginModalLabel">Member Login</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label for="loginEmail" class="form-label">Email address / Member ID</label>
<input type="email" class="form-control" id="loginEmail" aria-describedby="emailHelp">
</div>
<div class="mb-3">
<label for="loginPassword" class="form-label">Password</label>
<input type="password" class="form-control" id="loginPassword">
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="rememberMe">
<label class="form-check-label" for="rememberMe">Remember me</label>
</div>
<button type="submit" class="btn btn-primary w-100">Login</button>
</form>
</div>
<div class="modal-footer justify-content-center">
<a href="#">Forgot password?</a> | <a href="#">Register Now</a>
</div>
</div>
</div>
</div>
<!-- Bootstrap Bundle with Popper -->
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"
></script>
</body>
</html>
.navbar {
box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
/* Carousel Styles */
#heroCarousel .carousel-item {
height: 65vh; /* Adjust height as needed */
min-height: 400px;
background: no-repeat center center scroll;
background-size: cover;
}
#heroCarousel .carousel-item img {
/* Hide the actual image element, use background-image for better control */
/* visibility: hidden; */
/* Or use object-fit if you prefer img tags */
object-fit: cover;
height: 100%;
width: 100%;
}
#heroCarousel .carousel-caption {
background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for readability */
padding: 1rem;
border-radius: .25rem;
bottom: 3rem; /* Position caption */
}
.booking-section {
/* Style the booking form section */
margin-top: -50px; /* Pull booking form up slightly over carousel */
position: relative;
z-index: 10;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.card {
transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
footer {
.navbar {
box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
/* Carousel Styles */
#heroCarousel .carousel-item {
height: 65vh; /* Adjust height as needed */
min-height: 400px;
background: no-repeat center center scroll;
background-size: cover;
}
#heroCarousel .carousel-item img {
/* Hide the actual image element, use background-image for better control */
/* visibility: hidden; */
/* Or use object-fit if you prefer img tags */
object-fit: cover;
height: 100%;
width: 100%;
}
#heroCarousel .carousel-caption {
background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for readability */
padding: 1rem;
border-radius: .25rem;
bottom: 3rem; /* Position caption */
}
.booking-section {
/* Style the booking form section */
margin-top: -50px; /* Pull booking form up slightly over carousel */
position: relative;
z-index: 10;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.card {
transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
footer {
Okay, let's update the website to incorporate a dominant yellow color scheme, add example flight prices to the destinations, and ensure links are set up as placeholders.
Now the website uses a yellow primary color scheme.
#FFC107).#booking-section, #destinations, #services) or use placeholders (#).Okay, here is an interactive portfolio website structure for Sultan Rafif Fauzan using HTML, Bootstrap, and custom CSS, incorporating the black, purple, and blue color scheme.
This setup provides:
index.html): Includes sections for Home (Hero), About, Skills, Portfolio, and Contact, using Bootstrap's grid and components. Placeholder images and links are used – remember to replace these with Sultan Rafif Fauzan's actual details, project images, project links, and social media URLs.style.css):
#121212, #1a1a1a) as the base.#8A2BE2) and blue (#4169E1) as primary accent colors for buttons, links, highlights, and borders.Remember to update all placeholder content (your.email@example.com, # links, placeholder image URLs, project descriptions, skills list) with the correct information for Sultan Rafif Fauzan.*
Okay, let's integrate a Bootstrap Carousel into the hero section and add some basic JavaScript for smooth scrolling and active navigation link highlighting.
Key changes:
index.html):
#heroCarousel) containing three slides. Each slide has a background image placeholder and content.<body> tag now includes data-bs-spy="scroll" data-bs-target="#navbarNav" data-bs-offset="70" to enable Bootstrap's ScrollSpy for active navigation link highlighting.script.js is added before the closing </body> tag.style.css):
#heroCarousel, .carousel-item, .carousel-background, .carousel-container, and .carousel-content to style the hero carousel appropriately within the dark theme. Includes a dark overlay on backgrounds for text readability..navbar .nav-link.active style is slightly enhanced.script.js):
navbar-scrolled class to the navbar when the user scrolls down (you'd need to add the corresponding CSS rule in style.css if you uncomment/use this).Remember again to replace all placeholder content (images, text, links) with Sultan Rafif Fauzan's actual information.
Okay, let's add entry/exit animations to the images using the AOS (Animate On Scroll) library. This library makes it easy to trigger animations as elements enter the viewport.
Changes Made:
index.html):
<head>.</body> tag (after Bootstrap's JS).data-aos attributes to various elements:
data-aos="fade-up" with delays).data-aos="fade-right") and text (data-aos="fade-left").data-aos="zoom-in" with delays).data-aos="fade-up" with delays). Note: The animation is applied to the column containing the card for better grouping.data-aos="zoom-in-up").div.portfolio-img-wrapper to help contain potential overflow from hover effects if needed.style.css):
html, body { overflow-x: hidden; } to prevent horizontal scrollbars that can sometimes appear due to AOS animations happening slightly outside the viewport boundary during transition..portfolio-img-wrapper { overflow: hidden; } to ensure the image zoom hover effect stays within the wrapper.script.js):
AOS.init({...}); within the DOMContentLoaded listener to initialize the library. Key options used:
duration: Animation speed.easing: Animation timing function.once: true: Animations only happen once when scrolling down. Set to false if you want them to re-trigger when scrolling up past them.Now, as you scroll down the page, the profile picture, skill cards, portfolio items, and contact section content should animate into view based on the data-aos attributes assigned.*