Creating a directory and listings template like "Globo" involves designing a clean, user-friendly layout that facilitates easy navigation and search for various listings. Below is a structured outline and sample HTML code snippets to help you get started with the "Globo" HTML template.
details.html (Details Page)
about.html (About Page)
contact.html (Contact Page)
Globo - Directory & Listings HTML Template
1. Project Structure
You might organize your project like this:css
globo/
├── index.html
├── listing.html
├── details.html
├── about.html
├── contact.html
├── assets/
│ ├── css/
│ ├── js/
│ └── images/
└── README.md
2. HTML Structure
index.html (Home Page)html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Globo - Directory & Listings</title>
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
<body>
<!-- Header -->
<header>
<nav>
<div class="logo">Globo</div>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<div class="search-bar">
<input type="text" placeholder="Search for listings...">
<button type="submit"><i class="fas fa-search"></i></button>
</div>
</header>
<!-- Hero Section -->
<section class="hero">
<h1>Find Your Perfect Listing</h1>
<p>Your one-stop solution for discovering local businesses and services.</p>
</section>
<!-- Featured Listings Section -->
<section class="featured-listings">
<h2>Featured Listings</h2>
<div class="listing-cards">
<div class="listing-card">
<img src="assets/images/listing1.jpg" alt="Listing 1">
<h3>Business Name 1</h3>
<p>Short description of the business.</p>
<a href="details.html" class="view-details">View Details</a>
</div>
<div class="listing-card">
<img src="assets/images/listing2.jpg" alt="Listing 2">
<h3>Business Name 2</h3>
<p>Short description of the business.</p>
<a href="details.html" class="view-details">View Details</a>
</div>
<div class="listing-card">
<img src="assets/images/listing3.jpg" alt="Listing 3">
<h3>Business Name 3</h3>
<p>Short description of the business.</p>
<a href="details.html" class="view-details">View Details</a>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<p>© 2023 Globo. All rights reserved.</p>
<div class="social-media">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
</div>
</footer>
<script src="assets/js/scripts.js"></script>
</body>
</html>
3. CSS Styles (assets/css/styles.css)
Here’s a basic CSS file to style your template. Adjust the styles as per your design preferences.css
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
color: #333;
}
header {
background: #4A90E2;
color: white;
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
nav ul {
list-style-type: none;
display: flex;
margin: 0;
padding: 0;
}
nav ul li {
margin-left: 20px;
}
nav a {
color: white;
text-decoration: none;
}
.search-bar {
display: flex;
}
.search-bar input {
padding: 10px;
border: none;
border-radius: 5px 0 0 5px;
}
.search-bar button {
padding: 10px;
border: none;
background: #FF5733;
color: white;
border-radius: 0 5px 5px 0;
}
.hero {
background: url('assets/images/hero-bg.jpg') no-repeat center center/cover;
text-align: center;
padding: 100px 20px;
color: white;
}
.featured-listings {
padding: 50px 20px;
text-align: center;
}
.listing-cards {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
}
.listing-card {
background: white;
border-radius: 8px;
padding: 20px;
margin: 10px;
width: 300px;
}
.view-details {
display: block;
margin-top: 10px;
color: #FF5733;
text-decoration: none;
}
footer {
background: #333;
color: white;
text-align: center;
padding: 20px;
}
.social-media a {
margin: 0 10px;
color: white;
}
4. JavaScript (assets/js/scripts.js)
You can add interactivity as needed. Here’s a placeholder for your JS file.javascript
// Placeholder for future JavaScript functionalities
console.log('Globo template loaded.');
Additional Pages
listing.html (Listings Page)html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Listings</title>
<link rel="stylesheet" href="assets/css/styles.css">
</head>
<body>
<header>
<nav>
<div class="logo">Globo</div>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<section>
<h2>All Listings</h2>
<div class="listing-cards">
<div class="listing-card">
<img src="assets/images/listing1.jpg" alt="Listing 1">
<h3>Business Name 1</h3>
<p>Short description of the business.</p>
<a href="details.html" class="view-details">View Details</a>
</div>
<!-- Add more listing cards as needed -->
</div>
</section>
<footer>
<p>© 2023 Globo. All rights reserved.</p>
</footer>
</body>
</html>
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Listing Details</title>
<link rel="stylesheet" href="assets/css/styles.css">
</head>
<body>
<header>
<nav>
<div class="logo">Globo</div>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<section>
<h2>Business Name 1</h2>
<img src="assets/images/listing1.jpg" alt="Business Name 1">
<p>Full description of the business.</p>
<a href="index.html" class="view-details">Back to Listings</a>
</section>
<footer>
<p>© 2023 Globo. All rights reserved.</p>
</footer>
</body>
</html>
html
<section>
<h2>About Us</h2>
<p>Information about the Globo directory and listings service.</p>
</section>
html
<section>
<h2>Contact Us</h2>
<form>
<input type="text" placeholder="Your Name" required>
<input type="email" placeholder="Your Email" required>
<textarea placeholder="Your Message" required></textarea>
<button type="submit" class="cta-button">Send Message</button>