A great challenge!
Here's a store front page design inspired by Shadcn's Zinc aesthetic, featuring a sidebar, footer, navbar, categories, packages, and a prominent "sale" section. I'll use HTML, CSS (with a dash of Tailwind CSS utility classes for brevity), and a pinch of JavaScript for interactivity.
Store Name: ZincWare
Preview:
Please imagine a sleek, dark-themed store front with the following layout:
HTML Structure:
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ZincWare</title>
<link rel="stylesheet" href="styles.css"> <!-- our custom styles -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css"> <!-- Tailwind CSS -->
</head>
<body class="bg-zinc-900 text-zinc-200 font-sans">
<!-- Navbar -->
<nav id="navbar" class="fixed top-0 left-0 w-full bg-zinc-800 py-4 flex justify-between items-center px-6 z-10">
<div class="flex items-center space-x-4">
<button id="sidebar-toggle" class="text-zinc-400 hover:text-zinc-200 transition-colors duration-200">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="w-6 h-6">
<path d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
<a href="#" class="text-2xl font-bold text-zinc-100">ZincWare</a>
</div>
<div class="flex items-center space-x-4">
<input type="search" placeholder="Search..." class="bg-zinc-700 text-zinc-200 px-4 py-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-zinc-500 w-64">
<button class="bg-zinc-600 hover:bg-zinc-500 text-zinc-200 px-4 py-2 rounded-lg transition-colors duration-200">Cart (0)</button>
</div>
</nav>
<!-- Sidebar -->
<aside id="sidebar" class="fixed top-0 left-0 h-screen w-64 bg-zinc-800 py-6 px-4 transform -translate-x-full transition-transform duration-300 z-20">
<nav class="flex flex-col space-y-4">
<a href="#" class="text-zinc-400 hover:text-zinc-200 transition-colors duration-200">Categories</a>
<ul class="flex flex-col space-y-2">
<li><a href="#" class="text-zinc-300 hover:text-zinc-100 transition-colors duration-200">Software</a></li>
<li><a href="#" class="text-zinc-300 hover:text-zinc-100 transition-colors duration-200">Hardware</a></li>
<li><a href="#" class="text-zinc-300 hover:text-zinc-100 transition-colors duration-200">Services</a></li>
<li><a href="#" class="text-zinc-300 hover:text-zinc-100 transition-colors duration-200">Bundles</a></li>
</ul>
<a href="#" class="text-zinc-400 hover:text-zinc-200 transition-colors duration-200">Support</a>
<a href="#" class="text-zinc-400 hover:text-zinc-200 transition-colors duration-200">Account</a>
</nav>
</aside>
<!-- Main Content -->
<main class="flex flex-col pt-16"> <!-- pt-16 to account for navbar height -->
<!-- Hero Section (Sale) -->
<section class="bg-zinc-700 py-12 px-6 text-center">
<h1 class="text-4xl font-bold text-zinc-100 mb-4">Limited Time Offer: 20% Off All Packages!</h1>
<p class="text-zinc-300 mb-6">Upgrade your workflow with our premium software bundles. Sale ends soon!</p>
<button class="bg-orange-500 hover:bg-orange-400 text-zinc-900 px-6 py-3 rounded-lg transition-colors duration-200">Shop Now</button>
</section>
<!-- Categories Section -->
<section class="py-12 px-6">
<h2 class="text-3xl font-bold text-zinc-100 mb-6">Browse Categories</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-zinc-800 p-6 rounded-lg">
<h3 class="text-xl font-bold text-zinc-100 mb-2">Software</h3>
<p class="text-zinc-300 mb-4">Productivity, Design, Development tools</p>
<button class="bg-zinc-600 hover:bg-zinc-500 text-zinc-200 px-4 py-2 rounded-lg transition-colors duration-200">Explore</button>
</div>
<div class="bg-zinc-800 p-6 rounded-lg">
<h3 class="text-xl font-bold text-zinc-100 mb-2">Hardware</h3>
<p class="text-zinc-300 mb-4">Laptops, Desktops, Accessories</p>
<button class="bg-zinc-600 hover:bg-zinc-500 text-zinc-200 px-4 py-2 rounded-lg transition-colors duration-200">Explore</button>
</div>
<div class="bg-zinc-800 p-6 rounded-lg">
<h3 class="text-xl font-bold text-zinc-100 mb-2">Services</h3>
<p class="text-zinc-300 mb-4">Consulting, Support, Training</p>
<button class="bg-zinc-600 hover:bg-zinc-500 text-zinc-200 px-4 py-2 rounded-lg transition-colors duration-200">Explore</button>
</div>
</div>
</section>
<!-- Packages Section -->
<section class="py-12 px-6 bg-zinc-800">
<h2 class="text-3xl font-bold text-zinc-100 mb-6">Popular Packages</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="bg-zinc-700 p-6 rounded-lg">
<h3 class="text-xl font-bold text-zinc-100 mb-2">Starter</h3>
<p class="text-zinc-300 mb-4">Perfect for individuals</p>
<ul class="text-zinc-300 mb-4">
<li>1 User License</li>
<li>Basic Support</li>
<li> Limited Features</li>
</ul>
<div class="flex items-center space-x-4">
<span class="text-2xl font-bold text-zinc-100">$9.99/month</span>
<button class="bg-orange-500 hover:bg-orange-400 text-zinc-900 px-4 py-2 rounded-lg transition-colors duration-200">Buy Now</button>
</div>
</div>
<div class="bg-zinc-700 p-6 rounded-lg">
<h3 class="text-xl font-bold text-zinc-100 mb-2">Premium</h3>
<p class="text-zinc-300 mb-4">For growing teams</p>
<ul class="text-zinc-300 mb-4">
<li>10 User Licenses</li>
<li>Priority Support</li>
<li>Advanced Features</li>
</ul>
<div class="flex items-center space-x-4">
<span class="text-2xl font-bold text-zinc-100">$29.99/month</span>
<button class="bg-orange-500 hover:bg-orange-400 text-zinc-900 px-4 py-2 rounded-lg transition-colors duration-200">Buy Now</button>
</div>
</div>
<div class="bg-zinc-700 p-6 rounded-lg">
<h3 class="text-xl font-bold text-zinc-100 mb-2">Enterprise</h3>
<p class="text-zinc-300 mb-4">Custom solutions for large businesses</p>
<ul class="text-zinc-300 mb-4">
<li>Unlimited User Licenses</li>
<li>Dedicated Support</li>
<li>All Features</li>
</ul>
<div class="flex items-center space-x-4">
<span class="text-2xl font-bold text-zinc-100">Custom Pricing</span>
<button class="bg-orange-500 hover:bg-orange-400 text-zinc-900 px-4 py-2 rounded-lg transition-colors duration-200">Contact Us</button>
</div>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="bg-zinc-800 py-6 px-6 text-center text-zinc-400">
<div class="flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0">
<span>© 2023 ZincWare. All rights reserved.</span>
<nav class="flex space-x-4">
<a href="#" class="hover:text-zinc-200 transition-colors duration-200">Terms</a>
<a href="#" class="hover:text-zinc-200 transition-colors duration-200">Privacy</a>
<a href="#" class="hover:text-zinc-200 transition-colors duration-200">Support</a>
</nav>
</div>
</footer>
<script src="script.js"></script> <!-- our custom script -->
</body>
</html>
CSS (in styles.css file):
css Copy code
/* Custom styles, you can add more here */
body {
@apply font-sans;
}
#sidebar {
scrollbar-width: thin;
scrollbar-color: #333 #444;
}
#sidebar::-webkit-scrollbar {
width: 6px;
}
#sidebar::-webkit-scrollbar-thumb {
@apply bg-zinc-600 rounded-full;
}
#sidebar::-webkit-scrollbar-track {
@apply bg-zinc-800;
}
JavaScript (in script.js file):
javascript Copy code
// Toggle sidebar
document.getElementById('sidebar-toggle').addEventListener('click', () => {
const sidebar = document.getElementById('sidebar');
sidebar.classList.toggle('-translate-x-full');
});
// Optional: Add smooth scrolling to anchor links
document.querySelectorAll('a[href^="#"]').forEach((anchor) => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth',
});
});
});
Explanation:
Navbar : Fixed top navbar with a toggle button for the sidebar, logo, search input, and cart button.
Sidebar : Fixed left sidebar with navigation links, hidden by default. Toggled by clicking the navbar button.
Main Content : Divided into three sections:
Hero Section (Sale) : Prominent call-out for the limited-time sale.
Categories Section : Grid showcasing three categories with brief descriptions and "Explore" buttons.
Packages Section : Grid featuring three packages (Starter, Premium, Enterprise) with features, pricing, and "Buy Now" buttons.
Footer : Simple footer with copyright text, terms, privacy, and support links.
Shadcn Zinc Inspiration :
Dark theme with various shades of zinc (gray-blue) colors: #333, #444, #555, #666, #777, #888 (mapped to Tailwind's zinc-700, zinc-600, etc.)
Clean, minimalistic design with ample whitespace
Rounded corners and subtle shadows (via Tailwind's rounded-lg and shadow-md)
Simple, bold typography (using font-sans and font sizes text-2xl, text-3xl, etc.)
Tailwind CSS :
I've used utility classes from Tailwind CSS to keep the HTML concise and readable. If you're unfamiliar with Tailwind, you can replace the utility classes with custom CSS rules.
This design should give you a solid starting point for your ZincWare store front. Feel free to customize and extend it as needed!
Run this code, and you should see a beautiful, functional store front page. Happy coding!