You got it! Here's the HTML code for the "Flux" homepage, including inline styles for a quick demonstration of the layout and appearance.
For a real-world project, it's highly recommended to separate CSS into a .css file for better maintainability and organization.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flux - The Pulse of the World</title>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Basic global styles - for a real project, this would be in a separate CSS file -->
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
color: #333;
line-height: 1.6;
}
a {
color: #1DA1F2; /* Twitter-like blue */
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
button {
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}
button:hover {
transform: translateY(-1px);
}
.primary-button {
padding: 15px 40px;
font-size: 1.2em;
font-weight: bold;
background-color: #1DA1F2;
color: white;
border: none;
border-radius: 30px;
}
.secondary-button {
padding: 10px 25px;
font-size: 1em;
background-color: transparent;
color: #1DA1F2;
border: 1px solid #1DA1F2;
border-radius: 20px;
}
section {
padding: 60px 0;
}
</style>
</head>
<body>
<!-- Header -->
<header style="background-color: white; padding: 20px 0; border-bottom: 1px solid #eee;">
<div class="container" style="display: flex; justify-content: space-between; align-items: center;">
<div style="display: flex; align-items: center;">
<a href="#" style="text-decoration: none;">
<h1 style="margin: 0; color: #1DA1F2; font-size: 2.5em; display: inline-block;">Flux</h1>
<p style="margin: 0; font-size: 0.8em; color: #777; display: inline-block; margin-left: 10px;">The Pulse of the World</p>
</a>
</div>
<nav>
<ul style="list-style: none; margin: 0; padding: 0; display: flex; gap: 25px;">
<li><a href="#" style="color: #333; font-weight: bold;">Home</a></li>
<li><a href="#" style="color: #333;">About</a></li>
<li><a href="#" style="color: #333;">Blog</a></li>
<li><a href="#" style="color: #333;">Help</a></li>
</ul>
</nav>
<div>
<a href="#" style="color: #1DA1F2; font-weight: bold; margin-right: 20px;">Log In</a>
<button class="primary-button" style="font-size: 1em; padding: 10px 25px;">Sign Up</button>
</div>
</div>
</header>
<!-- Hero Section -->
<section style="background-color: #e6f7ff; padding: 100px 0; text-align: center;">
<div class="container">
<h1 style="font-size: 3.5em; margin-bottom: 20px; color: #1DA1F2;">Catch the Pulse. Share Your Voice.</h1>
<p style="font-size: 1.3em; max-width: 800px; margin: 0 auto 40px auto; color: #555;">
Discover what's happening worldwide, in real-time. Connect with diverse perspectives, express your thoughts, and join the global conversation, all in 280 characters or less.
</p>
</div>
</section>
<!-- Main Call to Action -->
<section style="text-align: center; padding: 40px 0;">
<button class="primary-button">Sign Up for Flux – It's Free!</button>
<p style="margin-top: 15px; font-size: 1em;">Already on Flux? <a href="#">Log In</a></p>
</section>
<!-- Why Flux? - Benefits Section -->
<section style="background-color: #f9f9f9;">
<div class="container">
<h2 style="text-align: center; font-size: 2.5em; margin-bottom: 50px;">Why Flux?</h2>
<div style="display: flex; justify-content: space-around; flex-wrap: wrap; gap: 40px;">
<div style="width: 28%; min-width: 280px; text-align: center; padding: 25px; border-radius: 10px; background-color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.08);">
<h3 style="font-size: 1.5em; color: #1DA1F2;">⚡ Real-Time Feed</h3>
<p style="color: #666;">See what's unfolding, as it happens. From breaking news to live events and trending discussions – it's all here, now.</p>
</div>
<div style="width: 28%; min-width: 280px; text-align: center; padding: 25px; border-radius: 10px; background-color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.08);">
<h3 style="font-size: 1.5em; color: #1DA1F2;">💬 Connect & Engage</h3>
<p style="color: #666;">Follow friends, experts, artists, and brands. Reply, repost, and join the conversations that matter to you.</p>
</div>
<div style="width: 28%; min-width: 280px; text-align: center; padding: 25px; border-radius: 10px; background-color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.08);">
<h3 style="font-size: 1.5em; color: #1DA1F2;">✍️ Express Yourself</h3>
<p style="color: #666;">Share your thoughts, photos, videos, and links in concise updates. Your voice, amplified to the world.</p>
</div>
<div style="width: 28%; min-width: 280px; text-align: center; padding: 25px; border-radius: 10px; background-color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.08);">
<h3 style="font-size: 1.5em; color: #1DA1F2;">🔍 Discover & Explore</h3>
<p style="color: #666;">Uncover trending topics, explore new interests, and find communities that share your passions.</p>
</div>
</div>
</div>
</section>
<!-- Featured Content/Trends Section -->
<section>
<div class="container">
<h2 style="text-align: center; font-size: 2.5em; margin-bottom: 50px;">Trending Now on Flux</h2>
<div style="display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px;">
<div style="width: 28%; min-width: 280px; padding: 20px; border: 1px solid #eee; border-radius: 8px; background-color: white;">
<h4 style="font-size: 1.3em; margin-bottom: 10px; color: #1DA1F2;">#TechInsights2024</h4>
<p style="color: #666;">What's next in AI? Join the discussion!</p>
</div>
<div style="width: 28%; min-width: 280px; padding: 20px; border: 1px solid #eee; border-radius: 8px; background-color: white;">
<h4 style="font-size: 1.3em; margin-bottom: 10px; color: #1DA1F2;">@DailyMotivation</h4>
<p style="color: #666;">Inspiring quotes and tips for your day.</p>
</div>
<div style="width: 28%; min-width: 280px; padding: 20px; border: 1px solid #eee; border-radius: 8px; background-color: white;">
<h4 style="font-size: 1.3em; margin-bottom: 10px; color: #1DA1F2;">#WorldCupFever</h4>
<p style="color: #666;">Who's winning today? Live updates!</p>
</div>
</div>
<div style="text-align: center; margin-top: 50px;">
<button class="secondary-button">Explore More Trends</button>
</div>
</div>
</section>
<!-- Final Call to Action -->
<section style="background-color: #e6f7ff; text-align: center; padding: 80px 0;">
<h2 style="font-size: 2.8em; margin-bottom: 20px; color: #1DA1F2;">Ready to Join the Conversation?</h2>
<p style="font-size: 1.3em; margin-bottom: 40px; color: #555;">Sign up for Flux today and instantly connect with millions of voices across the globe.</p>
<button class="primary-button">Create Your Flux Account</button>
</section>
<!-- Footer -->
<footer style="background-color: #f8f8f8; padding: 60px 0; border-top: 1px solid #eee;">
<div class="container" style="display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px;">
<div style="width: 200px;">
<h4 style="color: #333; font-size: 1.2em; margin-bottom: 15px;">Flux</h4>
<ul style="list-style: none; padding: 0;">
<li style="margin-bottom: 8px;"><a href="#" style="color: #555;">About Us</a></li>
<li style="margin-bottom: 8px;"><a href="#" style="color: #555;">Careers</a></li>
<li style="margin-bottom: 8px;"><a href="#" style="color: #555;">Press</a></li>
</ul>
</div>
<div style="width: 200px;">
<h4 style="color: #333; font-size: 1.2em; margin-bottom: 15px;">Help</h4>
<ul style="list-style: none; padding: 0;">
<li style="margin-bottom: 8px;"><a href="#" style="color: #555;">Help Center</a></li>
<li style="margin-bottom: 8px;"><a href="#" style="color: #555;">Safety</a></li>
<li style="margin-bottom: 8px;"><a href="#" style="color: #555;">Rules & Policies</a></li>
</ul>
</div>
<div style="width: 200px;">
<h4 style="color: #333; font-size: 1.2em; margin-bottom: 15px;">Legal</h4>
<ul style="list-style: none; padding: 0;">
<li style="margin-bottom: 8px;"><a href="#" style="color: #555;">Terms of Service</a></li>
<li style="margin-bottom: 8px;"><a href="#" style="color: #555;">Privacy Policy</a></li>
<li style="margin-bottom: 8px;"><a href="#" style="color: #555;">Cookie Policy</a></li>
</ul>
</div>
<div style="width: 200px;">
<h4 style="color: #333; font-size: 1.2em; margin-bottom: 15px;">Connect</h4>
<ul style="list-style: none; padding: 0;">
<li style="margin-bottom: 8px;"><a href="#" style="color: #555;">Facebook</a></li>
<li style="margin-bottom: 8px;"><a href="#" style="color: #555;">Instagram</a></li>
<li style="margin-bottom: 8px;"><a href="#" style="color: #555;">LinkedIn</a></li>
</ul>
</div>
</div>
<div style="text-align: center; margin-top: 60px; font-size: 0.9em; color: #777;">
<p>© 2024 Flux, Inc. All rights reserved.</p>
</div>
</footer>
</body>
</html>