Creating a frontend that resembles the Bolt interface (like the Bolt Food or Bolt Ride app) involves designing a clean, modern, and user-friendly UI. Below is an example of how you can create such a frontend using HTML, CSS, and JavaScript.
Features of the Bolt-like Interface:
- Header with Logo and Navigation.
- Search Bar for Quick Actions.
- Card-based Layout for Services (e.g., Food Delivery, Ride Booking).
- Footer with Additional Links.
Code Implementation
1. HTML (Structure)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bolt-like Frontend</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Header Section -->
<header class="header">
<div class="logo">
<img src="https://upload.wikimedia.org/wikipedia/commons/7/7d/Bolt_logo.png" alt="Bolt Logo">
</div>
<nav class="nav">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Orders</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Support</a></li>
</ul>
</nav>
</header>
<!-- Main Content -->
<main class="main-content">
<!-- Search Bar -->
<section class="search-bar">
<input type="text" placeholder="Where to?" />
<button>Search</button>
</section>
<!-- Service Cards -->
<section class="service-cards">
<h2>What do you need today?</h2>
<div class="cards">
<div class="card">
<img src="https://via.placeholder.com/150" alt="Food Delivery">
<h3>Food Delivery</h3>
<p>Order food from your favorite restaurants.</p>
</div>
<div class="card">
<img src="https://via.placeholder.com/150" alt="Ride Booking">
<h3>Ride Booking</h3>
<p>Book a ride to your destination.</p>
</div>
<div class="card">
<img src="https://via.placeholder.com/150" alt="Grocery Delivery">
<h3>Grocery Delivery</h3>
<p>Get groceries delivered to your door.</p>
</div>
</div>
</section>
</main>
<!-- Footer Section -->
<footer class="footer">
<p>© 2023 Bolt-like App. All rights reserved.</p>
<ul>
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Terms of Service</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</footer>
</body>
</html>
2. CSS (Styling)
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
/* Body Styling */
body {
background-color: #f9f9f9;
color: #333;
line-height: 1.6;
}
/* Header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
background-color: #fff;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.header .logo img {
height: 40px;
}
.nav ul {
list-style: none;
display: flex;
gap: 1rem;
}
.nav ul li a {
text-decoration: none;
color: #333;
font-weight: bold;
}
.nav ul li a:hover {
color: #ff6b00;
}
/* Search Bar */
.search-bar {
display: flex;
justify-content: center;
margin: 2rem 0;
}
.search-bar input {
padding: 0.7rem;
width: 300px;
border: 1px solid #ddd;
border-radius: 5px 0 0 5px;
outline: none;
}
.search-bar button {
padding: 0.7rem 1.5rem;
background-color: #ff6b00;
color: #fff;
border: none;
border-radius: 0 5px 5px 0;
cursor: pointer;
}
.search-bar button:hover {
background-color: #e66000;
}
/* Service Cards */
.service-cards {
text-align: center;
}
.service-cards h2 {
margin-bottom: 1.5rem;
font-size: 1.8rem;
color: #333;
}
.cards {
display: flex;
justify-content: center;
gap: 1.5rem;
flex-wrap: wrap;
}
.card {
background-color: #fff;
padding: 1rem;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
width: 200px;
text-align: center;
transition: transform 0.3s ease;
}
.card:hover {
transform: translateY(-10px);
}
.card img {
width: 100%;
height: 120px;
object-fit: cover;
border-radius: 10px;
}
.card h3 {
margin: 1rem 0 0.5rem;
font-size: 1.2rem;
color: #333;
}
.card p {
font-size: 0.9rem;
color: #666;
}
/* Footer */
.footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 1rem;
margin-top: 2rem;
}
.footer ul {
list-style: none;
display: flex;
justify-content: center;
gap: 1rem;
margin-top: 1rem;
}
.footer ul li a {
color: #ff6b00;
text-decoration: none;
}
.footer ul li a:hover {
text-decoration: underline;
}
Key Features of the Design:
- Responsive Layout: The card layout wraps on smaller screens.
- Hover Effects: Buttons and cards have smooth hover animations.
- Modern Colors: Orange (
#ff6b00) is used as the primary accent color, inspired by Bolt's branding.
- Clean Typography: Simple and readable fonts are used throughout.
How to Use:
- Save the HTML code in
index.html.
- Save the CSS code in
styles.css in the same folder.
- Open
index.html in your browser to view the frontend.
Let me know if you'd like to add more features, such as interactivity with JavaScript or responsiveness enhancements!