gpt-4o-2024-11-20· OpenAI
WildChat-4.8M (AI2)
Create A landing page for saas that helps building websites with ai. Use HTML CSS js
- User
Create A landing page for saas that helps building websites with ai. Use HTML CSS js
- Assistant
Create A landing page for saas that helps building websites with ai. Use HTML CSS js
Certainly! Below is a simple example of an HTML, CSS, and JavaScript code for a SaaS landing page that showcases a service for building websites with AI.
index.html):<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Website Builder</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header class="header">
<div class="container">
<h1>Build Stunning Websites with AI</h1>
<p>Let AI handle the hard work. Create professional websites in minutes, not days!</p>
<button class="cta-button" id="getStartedBtn">Get Started for Free</button>
<button class="cta-button learn-more" id="learnMoreBtn">Learn More</button>
</div>
</header>
<main>
<section class="features-section">
<div class="container">
<h2>Why Choose Our AI Website Builder?</h2>
<div class="features">
<div class="feature">
<h3>AI-Powered Design</h3>
<p>Get stunning, personalized designs automatically tailored to your needs.</p>
</div>
<div class="feature">
<h3>Fast and Easy</h3>
<p>Create professional sites in minutes with a few clicks.</p>
</div>
<div class="feature">
<h3>100% Customizable</h3>
<p>Edit content and design to perfectly match your brand.</p>
</div>
</div>
</div>
</section>
<section class="cta-section">
<div class="container">
<h2>Get Started Today!</h2>
<p>Sign up now and bring your website dreams to life.</p>
<button class="cta-button" id="signUpNow">Sign Up Now</button>
</div>
</section>
</main>
<footer class="footer">
<div class="container">
<p>© 2023 AI Website Builder. All Rights Reserved.</p>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>
styles.css):/* Reset some defaults */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f9f9f9;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
header.header {
background: #2A2A72;
color: #fff;
text-align: center;
padding: 50px 0;
}
header .cta-button {
background: #FF7A59;
color: #fff;
border: none;
padding: 15px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 1.1rem;
margin: 10px;
}
header .cta-button.learn-more {
background: transparent;
border: 2px solid white;
}
header .cta-button:hover {
background: #e06547;
}
.features-section {
padding: 50px 0;
background: #fff;
}
.features .feature {
padding: 20px;
margin-bottom: 20px;
text-align: center;
}
.features .feature h3 {
margin-bottom: 10px;
color: #2A2A72;
}
.cta-section {
background: #FF7A59;
color: #fff;
text-align: center;
padding: 50px 0;
margin-top: 30px;
}
footer.footer {
text-align: center;
padding: 20px 0;
background: #333;
color: #fff;
}
footer.footer p {
margin: 0;
}
script.js):document.addEventListener("DOMContentLoaded", () => {
// Get Started button click event
const getStartedBtn = document.getElementById("getStartedBtn");
const learnMoreBtn = document.getElementById("learnMoreBtn");
const signUpNow = document.getElementById("signUpNow");
// Display confirmation message
getStartedBtn.addEventListener("click", () => {
alert("Welcome! Redirecting you to get started...");
window.location.href = "#";
});
learnMoreBtn.addEventListener("click", () => {
alert("Learn more about our tools here.");
window.location.href = "#features-section";
});
signUpNow.addEventListener("click", () => {
alert("Sign up now to create your first website!");
window.location.href = "#";
});
});
You can test this landing page simply by saving the files in a project folder and running it in your browser!
Not yet included in a published release.