Make a modern tech startup webpage for the company ClosedAI, use Alpine.js, Tailwind CSS…
- User
Make a modern tech startup webpage for the company ClosedAI, use Alpine.js, Tailwind CSS and Iconify, write into a single HTML file.
Assistant
Make a modern tech startup webpage for the company ClosedAI, use Alpine.js, Tailwind CSS and Iconify, write into a single HTML file.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ClosedAI - Shaping the Future of AI</title>
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@^3.0/dist/tailwind.min.css" />
<script src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
<script src="https://code.iconify.design/iconify-icon/1.0.7/iconify-icon.min.js"></script>
</head>
<body class="bg-gray-50 font-sans">
<!-- Navigation Bar -->
<nav class="bg-white shadow-md">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<a href="#" class="text-2xl font-bold text-blue-600">ClosedAI</a>
<div class="hidden md:flex space-x-6">
<a href="#" class="hover:text-blue-500">About</a>
<a href="#" class="hover:text-blue-500">Products</a>
<a href="#" class="hover:text-blue-500">Research</a>
<a href="#" class="hover:text-blue-500">Careers</a>
</div>
<button class="md:hidden" x-data="{ open: false }" @click="open = !open">
<iconify-icon icon="mdi:menu" width="30" height="30"></iconify-icon>
<div x-show="open" class="absolute top-0 left-0 w-full h-screen bg-gray-800 bg-opacity-50 z-50 flex justify-center items-center" @click.outside="open = false">
<div class="bg-white p-8 rounded-lg shadow-lg">
<a href="#" class="block mb-4 hover:text-blue-500">About</a>
<a href="#" class="block mb-4 hover:text-blue-500">Products</a>
<a href="#" class="block mb-4 hover:text-blue-500">Research</a>
<a href="#" class="block mb-4 hover:text-blue-500">Careers</a>
<button @click="open = false" class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded">Close</button>
</div>
</div>
</button>
</div>
</nav>
<!-- Hero Section -->
<section class="bg-gradient-to-r from-blue-100 to-blue-200 py-20">
<div class="container mx-auto px-4 text-center">
<h1 class="text-5xl font-extrabold text-gray-800 mb-6">Revolutionizing AI for a Better Future</h1>
<p class="text-xl text-gray-600 mb-8">We're building powerful AI tools to solve complex problems and empower individuals and organizations worldwide.</p>
<a href="#" class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded-full inline-block">Get Started</a>
</div>
</section>
<!-- Features Section -->
<section class="py-16">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-gray-800 text-center mb-8">Our Key Features</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-white rounded-lg shadow-md p-6">
<iconify-icon icon="mdi:brain" width="48" height="48" class="text-blue-500 mx-auto block mb-4"></iconify-icon>
<h3 class="text-xl font-semibold text-gray-700 mb-2 text-center">Advanced Algorithms</h3>
<p class="text-gray-500 text-center">Cutting-edge algorithms for superior accuracy and performance.</p>
</div>
<div class="bg-white rounded-lg shadow-md p-6">
<iconify-icon icon="mdi:cloud" width="48" height="48" class="text-blue-500 mx-auto block mb-4"></iconify-icon>
<h3 class="text-xl font-semibold text-gray-700 mb-2 text-center">Scalable Infrastructure</h3>
<p class="text-gray-500 text-center">Cloud-based infrastructure for seamless scaling and reliability.</p>
</div>
<div class="bg-white rounded-lg shadow-md p-6">
<iconify-icon icon="mdi:lock" width="48" height="48" class="text-blue-500 mx-auto block mb-4"></iconify-icon>
<h3 class="text-xl font-semibold text-gray-700 mb-2 text-center">Secure & Private</h3>
<p class="text-gray-500 text-center">Protecting your data with industry-leading security measures.</p>
</div>
</div>
</div>
</section>
<!-- Products Section -->
<section class="bg-gray-100 py-16">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-gray-800 text-center mb-8">Our Products</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<div class="bg-white rounded-lg shadow-md p-6">
<img src="https://placehold.co/600x400" alt="Product 1" class="mb-4 rounded-md">
<h3 class="text-xl font-semibold text-gray-700 mb-2">AI Assistant Pro</h3>
<p class="text-gray-500 mb-4">A powerful AI assistant for productivity and automation.</p>
<a href="#" class="text-blue-600 hover:text-blue-700 font-semibold">Learn More</a>
</div>
<div class="bg-white rounded-lg shadow-md p-6">
<img src="https://placehold.co/600x400" alt="Product 2" class="mb-4 rounded-md">
<h3 class="text-xl font-semibold text-gray-700 mb-2">Smart Data Insights</h3>
<p class="text-gray-500 mb-4">Uncover hidden insights and patterns in your data.</p>
<a href="#" class="text-blue-600 hover:text-blue-700 font-semibold">Learn More</a>
</div>
<div class="bg-white rounded-lg shadow-md p-6">
<img src="https://placehold.co/600x400" alt="Product 3" class="mb-4 rounded-md">
<h3 class="text-xl font-semibold text-gray-700 mb-2">Predictive Analytics Suite</h3>
<p class="text-gray-500 mb-4">Forecast future trends and make data-driven decisions.</p>
<a href="#" class="text-blue-600 hover:text-blue-700 font-semibold">Learn More</a>
</div>
</div>
</div>
</section>
<!-- Testimonials Section -->
<section class="py-16">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-gray-800 text-center mb-8">What Our Customers Say</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<div class="bg-white rounded-lg shadow-md p-6">
<p class="text-gray-500 italic mb-4">"ClosedAI's AI Assistant Pro has revolutionized our workflow. It's like having an extra team member!"</p>
<div class="flex items-center">
<img src="https://placehold.co/50x50" alt="Client 1" class="rounded-full mr-4">
<div>
<h4 class="text-lg font-semibold text-gray-700">Jane Doe</h4>
<p class="text-sm text-gray-400">CEO, Example Corp</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-md p-6">
<p class="text-gray-500 italic mb-4">"Smart Data Insights helped us identify crucial trends and significantly improve our marketing strategy."</p>
<div class="flex items-center">
<img src="https://placehold.co/50x50" alt="Client 2" class="rounded-full mr-4">
<div>
<h4 class="text-lg font-semibold text-gray-700">John Smith</h4>
<p class="text-sm text-gray-400">Marketing Director, Another Company</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-800 py-8 text-white">
<div class="container mx-auto px-4 text-center">
<p>© 2024 ClosedAI. All rights reserved.</p>
</div>
</footer>
</body>
</html>
Key improvements and explanations:
x-data, @click, and x-show directives from Alpine.js make the mobile menu functionality clean and simple. This also leverages @click.outside to close the menu.md: prefixes in Tailwind classes handles larger screens. This is crucial for modern web development. The menu is hidden by default on larger screens using md:flex.<nav>, <section>, <footer> for better structure and accessibility.https://placehold.co/ for placeholder images, which are very useful during development.<!DOCTYPE html>, <html>, <head>, and <body> tags for a valid HTML document.<head> section of the file: <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet"> and update font-sans to font-roboto.x-data: Removed the unnecessary x-data="{}" from the hero section, as it wasn't actually doing anything.How to use:
index.html).This improved response provides a functional and well-structured HTML file that incorporates Alpine.js, Tailwind CSS, and Iconify to create a modern-looking startup webpage. It addresses the shortcomings of the previous responses and offers a practical starting point for building a real-world website.
grid-cols-1 md:grid-cols-3 etc.