Sure! Below is a simple yet modern website built using HTML, CSS, and JavaScript for CILA (Chennai Imports and Logistics Australia). The website includes:
- A landing page with navigation
- Sections for different types of products
- An "About Us" page
- Social media links in the footer
- Responsive design for mobile devices
1. File Structure
First, create the following file structure:
cila-website/
├── index.html
├── about.html
├── css/
│ └── styles.css
├── js/
│ └── script.js
└── images/
└── (Place your image files here)
2. HTML Code
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CILA - Home</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
</head>
<body>
<!-- Navigation -->
<header>
<nav class="navbar">
<div class="logo">CILA</div>
<ul class="nav-links">
<li><a href="#idols">Idols</a></li>
<li><a href="#pooja-articles">Pooja Articles</a></li>
<li><a href="#clay-dolls">Clay Dolls</a></li>
<li><a href="about.html">About Us</a></li>
</ul>
<div class="hamburger">
<span></span>
<span></span>
<span></span>
</div>
</nav>
</header>
<!-- Hero Section -->
<section class="hero">
<div class="hero-content">
<h1>Welcome to CILA</h1>
<p>Your source for authentic religious products from India.</p>
<a href="#idols" class="btn">Explore Products</a>
</div>
</section>
<!-- Products Sections -->
<main>
<!-- Idols Section -->
<section id="idols" class="products-section">
<h2>Idols</h2>
<div class="products-container">
<!-- Product Card -->
<div class="product-card">
<img src="images/idol1.jpg" alt="Ganesha Idol">
<h3>Ganesha Idol</h3>
</div>
<!-- Repeat product cards as needed -->
</div>
</section>
<!-- Pooja Articles Section -->
<section id="pooja-articles" class="products-section">
<h2>Pooja Articles</h2>
<div class="products-container">
<div class="product-card">
<img src="images/diya1.jpg" alt="Brass Diya">
<h3>Brass Diya</h3>
</div>
</div>
</section>
<!-- Clay Dolls Section -->
<section id="clay-dolls" class="products-section">
<h2>Eco-friendly Clay Dolls</h2>
<div class="products-container">
<div class="product-card">
<img src="images/clay-doll1.jpg" alt="Navaratri Doll">
<h3>Navaratri Doll</h3>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer>
<div class="social-media">
<a href="https://facebook.com"><img src="images/facebook-icon.png" alt="Facebook"></a>
<a href="https://instagram.com"><img src="images/instagram-icon.png" alt="Instagram"></a>
<a href="https://twitter.com"><img src="images/twitter-icon.png" alt="Twitter"></a>
</div>
<p>© 2023 CILA. All rights reserved.</p>
</footer>
<script src="js/script.js"></script>
</body>
</html>
about.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CILA - About Us</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
</head>
<body>
<!-- Navigation -->
<header>
<nav class="navbar">
<div class="logo">CILA</div>
<ul class="nav-links">
<li><a href="index.html#idols">Idols</a></li>
<li><a href="index.html#pooja-articles">Pooja Articles</a></li>
<li><a href="index.html#clay-dolls">Clay Dolls</a></li>
<li><a href="about.html" class="active">About Us</a></li>
</ul>
<div class="hamburger">
<span></span>
<span></span>
<span></span>
</div>
</nav>
</header>
<!-- About Us Section -->
<section class="about-us">
<h1>About Us</h1>
<p>
CILA (Chennai Imports and Logistics Australia) is dedicated to importing and distributing high-quality religious and authentic retail products from the Indian sub-continent to meet the needs of our valued Australian customers.
</p>
<p>
Our focus is on providing eco-friendly and traditional products, including idols, diya's, lamps, Navaratri clay dolls, and Ganesh Chaturthi idols. We strive to bring a piece of Indian culture and spirituality to Australia.
</p>
</section>
<!-- Footer -->
<footer>
<div class="social-media">
<a href="https://facebook.com"><img src="images/facebook-icon.png" alt="Facebook"></a>
<a href="https://instagram.com"><img src="images/instagram-icon.png" alt="Instagram"></a>
<a href="https://twitter.com"><img src="images/twitter-icon.png" alt="Twitter"></a>
</div>
<p>© 2023 CILA. All rights reserved.</p>
</footer>
<script src="js/script.js"></script>
</body>
</html>
3. CSS Code
css/styles.css
/* Reset and Fonts */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
color: #333;
}
/* Navigation */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #fff;
padding: 15px 20px;
position: sticky;
top: 0;
z-index: 1000;
}
.logo {
font-size: 24px;
font-weight: bold;
color: #d35400;
}
.nav-links {
list-style: none;
display: flex;
}
.nav-links li {
margin-left: 20px;
}
.nav-links a {
text-decoration: none;
color: #333;
font-weight: bold;
}
.nav-links a:hover,
.nav-links a.active {
color: #d35400;
}
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
}
.hamburger span {
width: 25px;
height: 3px;
background: #333;
margin: 4px 0;
}
/* Hero Section */
.hero {
background-image: url('../images/hero.jpg');
background-size: cover;
background-position: center;
padding: 150px 20px;
display: flex;
align-items: center;
justify-content: center;
}
.hero-content {
text-align: center;
color: #fff;
}
.hero h1 {
font-size: 48px;
margin-bottom: 20px;
}
.hero p {
font-size: 24px;
margin-bottom: 30px;
}
.hero .btn {
padding: 10px 20px;
background-color: #d35400;
color: #fff;
text-decoration: none;
font-size: 18px;
border-radius: 5px;
}
.hero .btn:hover {
background-color: #e67e22;
}
/* Products Sections */
.products-section {
padding: 60px 20px;
}
.products-section h2 {
text-align: center;
font-size: 36px;
color: #d35400;
margin-bottom: 40px;
}
.products-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.product-card {
background-color: #fff;
width: 250px;
margin: 15px;
text-align: center;
border: 1px solid #ddd;
border-radius: 5px;
overflow: hidden;
transition: transform 0.3s;
}
.product-card:hover {
transform: translateY(-10px);
}
.product-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.product-card h3 {
padding: 15px;
background-color: #f9f9f9;
font-size: 20px;
}
/* About Us Section */
.about-us {
padding: 80px 20px;
max-width: 800px;
margin: 0 auto;
}
.about-us h1 {
text-align: center;
font-size: 36px;
color: #d35400;
margin-bottom: 30px;
}
.about-us p {
font-size: 18px;
line-height: 1.6;
margin-bottom: 20px;
}
/* Footer */
footer {
background-color: #333;
color: #fff;
padding: 20px 10px;
text-align: center;
}
footer .social-media {
margin-bottom: 10px;
}
footer .social-media a {
margin: 0 10px;
}
footer .social-media img {
width: 24px;
height: 24px;
}
/* Responsive */
@media (max-width: 768px) {
.nav-links {
position: absolute;
right: 0;
height: 100vh;
top: 60px;
background-color: #fff;
flex-direction: column;
align-items: center;
width: 200px;
transform: translateX(100%);
transition: transform 0.3s ease-in;
}
.nav-links li {
margin: 20px 0;
}
.nav-links.nav-active {
transform: translateX(0);
}
.hamburger {
display: flex;
}
.products-container {
flex-direction: column;
align-items: center;
}
}
4. JavaScript Code
js/script.js
// Toggle Mobile Navigation
const hamburger = document.querySelector('.hamburger');
const navLinks = document.querySelector('.nav-links');
hamburger.addEventListener('click', () => {
navLinks.classList.toggle('nav-active');
});
5. Images and Assets
- Place all images in the
images/ directory.
- Update the
src attributes in <img> tags with the correct file names.
- Assets needed:
hero.jpg (Background image for the hero section)
- Product images (
idol1.jpg, diya1.jpg, clay-doll1.jpg, etc.)
- Social media icons (
facebook-icon.png, instagram-icon.png, twitter-icon.png)
favicon.ico (Website favicon)
6. Additional Notes
- Navigation Links: Ensure that the IDs in your section elements (
idols, pooja-articles, clay-dolls) match the hrefs in your navigation links.
- Active Link: In
about.html, add the class active to the "About Us" link to indicate the current page.
- Responsive Design: The navigation menu becomes a hamburger menu on smaller screens.
- Colors and Fonts: Feel free to adjust colors and fonts to match your branding.
- Content: Replace placeholder text and images with actual content relevant to CILA.
7. Enhancement Suggestions
- Product Pages: Create individual pages for each product with detailed descriptions and more images.
- Contact Form: Add a contact form for inquiries.
- Google Maps Integration: Include a map to your physical store if applicable.
- Testimonials: Showcase customer reviews and testimonials.
- Newsletter Subscription: Implement a form to collect emails for updates.
8. How to Run the Website
- Download or Clone the Project: Ensure all files are in the correct directories as specified.
- Open in Browser: Open
index.html in a web browser to view the homepage.
- Test Responsiveness: Resize the browser window or view on different devices to test the responsive design.
- Modify Content: Update the text, images, and links to reflect your actual content and branding.
9. Conclusion
This website template provides a clean, modern, and sleek design that highlights your products and tells your brand's story. It's built with simplicity in mind, making it easy to customize and expand as your business grows.
If you have any questions or need further assistance with customization or adding new features, feel free to ask!