Certainly! Below is the code for a landing page of an AI SaaS company named LuminoAI. The page includes rainbow effects, a button with cool effects, and a popup newsletter modal. The technologies used are HTML, Tailwind CSS, and JavaScript.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>LuminoAI - Illuminate Your Data Insights</title>
<!-- Tailwind CSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Custom CSS for rainbow effects -->
<style>
.rainbow-text {
background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: rainbow-text 5s ease-in-out infinite;
background-size: 400% 100%;
}
@keyframes rainbow-text {
0% { background-position: 0% 50%; }
100% { background-position: 100% 50%; }
}
.rainbow-button {
background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
background-size: 400% 100%;
animation: rainbow-button 5s ease-in-out infinite;
}
@keyframes rainbow-button {
0% { background-position: 0% 50%; }
100% { background-position: 100% 50%; }
}
/* Modal styles */
.modal {
display: none;
}
</style>
</head>
<body class="bg-gray-100">
<!-- Header -->
<header class="bg-white shadow-md">
<div class="container mx-auto px-6 py-4 flex justify-between items-center">
<div class="text-3xl font-bold rainbow-text">
LuminoAI
</div>
<nav>
<a href="#" class="text-gray-700 hover:text-blue-500 px-3">Home</a>
<a href="#" class="text-gray-700 hover:text-blue-500 px-3">Features</a>
<a href="#" class="text-gray-700 hover:text-blue-500 px-3">Contact</a>
</nav>
</div>
</header>
<!-- Hero Section -->
<section class="container mx-auto px-6 py-16 text-center">
<h1 class="text-5xl font-bold mb-4 rainbow-text">Illuminate Your Data Insights</h1>
<p class="text-xl text-gray-700 mb-8">
LuminoAI leverages cutting-edge AI technology to bring clarity and actionable insights to your data.
</p>
<button id="get-started-btn" class="rainbow-button text-white font-bold py-4 px-8 rounded-full shadow-lg transform hover:scale-105 transition duration-300">
Get Started
</button>
</section>
<!-- Features Section -->
<section class="bg-white py-16">
<div class="container mx-auto px-6">
<h2 class="text-4xl font-bold text-center mb-12">Features</h2>
<div class="flex flex-wrap">
<div class="w-full md:w-1/3 px-6 mb-12">
<div class="bg-gray-100 p-6 rounded-lg shadow-md hover:shadow-xl transition duration-300 transform hover:-translate-y-2">
<h3 class="text-2xl font-bold mb-4">AI-Powered Analytics</h3>
<p class="text-gray-700">Harness the power of AI to gain deeper insights into your data.</p>
</div>
</div>
<div class="w-full md:w-1/3 px-6 mb-12">
<div class="bg-gray-100 p-6 rounded-lg shadow-md hover:shadow-xl transition duration-300 transform hover:-translate-y-2">
<h3 class="text-2xl font-bold mb-4">User-Friendly Dashboard</h3>
<p class="text-gray-700">Interact with your data through an intuitive and dynamic dashboard.</p>
</div>
</div>
<div class="w-full md:w-1/3 px-6 mb-12">
<div class="bg-gray-100 p-6 rounded-lg shadow-md hover:shadow-xl transition duration-300 transform hover:-translate-y-2">
<h3 class="text-2xl font-bold mb-4">Customizable Reports</h3>
<p class="text-gray-700">Generate reports tailored to your specific needs and preferences.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-6">
<div class="container mx-auto px-6 text-center">
<p>© 2023 LuminoAI. All rights reserved.</p>
</div>
</footer>
<!-- Newsletter Modal -->
<div id="newsletter-modal" class="modal fixed inset-0 flex items-center justify-center z-50 bg-black bg-opacity-50">
<div class="bg-white rounded-lg shadow-lg max-w-md mx-auto p-6 relative">
<button id="close-modal" class="absolute top-2 right-2 text-gray-600 hover:text-gray-900 text-2xl">×</button>
<h3 class="text-2xl font-bold mb-4">Subscribe to our Newsletter</h3>
<p class="mb-4 text-gray-700">Stay updated with the latest news from LuminoAI.</p>
<input type="email" placeholder="Enter your email" class="w-full mb-4 p-3 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500">
<button class="w-full bg-blue-500 text-white font-bold py-3 rounded hover:bg-blue-600 transition duration-300">Subscribe</button>
</div>
</div>
<!-- JavaScript for Modal -->
<script>
// Get elements
const getStartedBtn = document.getElementById('get-started-btn');
const newsletterModal = document.getElementById('newsletter-modal');
const closeModalBtn = document.getElementById('close-modal');
// Show modal when Get Started button is clicked
getStartedBtn.addEventListener('click', () => {
newsletterModal.style.display = 'flex';
});
// Close modal when close button is clicked
closeModalBtn.addEventListener('click', () => {
newsletterModal.style.display = 'none';
});
// Close modal when clicking outside of the modal content
window.addEventListener('click', (event) => {
if (event.target == newsletterModal) {
newsletterModal.style.display = 'none';
}
});
</script>
</body>
</html>
Explanation:
- LuminoAI is the catchy name of the AI SaaS company.
- The rainbow-text and rainbow-button classes create animated rainbow effects using CSS gradients and keyframe animations.
- The Get Started button has a hover effect that slightly scales the button for an interactive feel.
- The Newsletter Modal pops up when the Get Started button is clicked, prompting users to subscribe.
- Tailwind CSS is included via CDN for quick styling.
- JavaScript is used to handle the opening and closing of the modal.
How to Use:
-
Set Up Tailwind CSS: The code uses the Tailwind CSS CDN for styling. Ensure you have an internet connection or set up Tailwind CSS locally if necessary.
-
Save the Code: Copy and paste the code into a file with an .html extension (e.g., index.html).
-
Run the File: Open the HTML file in a web browser. You should see the landing page with all the effects and functionality as described.
Customization:
- Content: Replace the placeholder text and features with your actual content.
- Colors and Styles: Modify the Tailwind classes or the custom CSS to match your brand's color scheme.
- Functionality: Extend the JavaScript to handle form submissions or integrate with your backend services.
Screenshots:
Due to the text-based nature of this platform, I'm unable to provide screenshots. However, once you run the code in your browser, you'll see the vibrant rainbow effects and the interactive elements as intended.
Note:
Remember to test the page across different browsers to ensure compatibility and responsiveness. Tailwind CSS is mobile-first and should display well on various screen sizes.