Okay, let's recreate the visual structure and styling of the Twelve Labs website's landing page using HTML and CSS.
Keep in mind:
- This will focus on the layout, general appearance, colors, and typography based on the live site.
- Exact animations, interactive elements (like hover states, complex scrolling effects, video backgrounds), and dynamic content are simplified or omitted for this static HTML/CSS recreation.
- The specific gradient and aurora background effects are difficult to replicate exactly with just CSS; we'll use simpler gradient approximations or solid dark backgrounds.
- We'll use a modern sans-serif font similar to the one used on the site (like Inter, via Google Fonts).
1. HTML Structure (index.html)
We'll outline the main sections: Header, Hero, Feature sections, Use Cases, Trust Bar, and Footer.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Twelve Labs UI Recreation</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<header class="site-header">
<div class="container">
<div class="logo">
<!-- Replace with your logo or text -->
<a href="#">Twelve Labs</a>
</div>
<nav class="main-nav">
<ul>
<li><a href="#">Platform</a></li>
<li><a href="#">Solutions</a></li>
<li><a href="#">Developers</a></li>
<li><a href="#">Company</a></li>
</ul>
</nav>
<div class="header-actions">
<a href="#" class="btn btn-outline">Contact Sales</a>
<a href="#" class="btn btn-primary">Get started</a>
</div>
<!-- Mobile menu toggle (hidden on desktop) -->
<button class="mobile-menu-toggle">
<span></span>
<span></span>
<span></span>
</button>
</div>
</header>
<main>
<section class="hero-section">
<div class="container">
<h1>Make video <span class="gradient-text">searchable.</span></h1>
<p class="subtitle">
Empower your applications with the leading multimodal video understanding platform.
</p>
<div class="hero-ctas">
<a href="#" class="btn btn-primary btn-large">Get started</a>
<a href="#" class="btn btn-secondary btn-large">Request a demo</a>
</div>
<!-- Background elements could go here -->
<div class="hero-background">
<!-- Placeholder for abstract background shapes/gradients -->
</div>
</div>
</section>
<section class="section problem-solution-section">
<div class="container">
<h2 class="section-title">Unlock the full potential of video data.</h2>
<div class="content-grid">
<div class="text-block">
<h3>The Problem</h3>
<p>Video is exploding, but its insights remain hidden. Existing tools struggle with nuances, context, and multimodal understanding.</p>
</div>
<div class="image-block">
<!-- Placeholder for an image/graphic -->
<div class="graphic-placeholder"></div>
</div>
</div>
<div class="content-grid reversed">
<div class="text-block">
<h3>The Solution</h3>
<p>Twelve Labs offers the most advanced AI for video understanding, enabling precise search, analysis, and generation.</p>
</div>
<div class="image-block">
<!-- Placeholder for an image/graphic -->
<div class="graphic-placeholder"></div>
</div>
</div>
</div>
</section>
<section class="section features-section">
<div class="container">
<h2 class="section-title center-text">Powerful capabilities at your fingertips.</h2>
<div class="features-grid">
<div class="feature-card">
<div class="icon-placeholder"></div>
<h3>Semantic Search</h3>
<p>Find exact moments or concepts within videos using natural language queries.</p>
</div>
<div class="feature-card">
<div class="icon-placeholder"></div>
<h3>Multimodal Analysis</h3>
<p>Understand video by analyzing visual, audio, text, and event data simultaneously.</p>
</div>
<div class="feature-card">
<div class="icon-placeholder"></div>
<h3>Content Moderation</h3>
<p>Automatically identify and flag harmful or inappropriate content in video.</p>
</div>
<div class="feature-card">
<div class="icon-placeholder"></div>
<h3>Indexing & Metadata</h3>
<p>Generate rich, timestamped metadata for every frame and segment.</p>
</div>
<div class="feature-card">
<div class="icon-placeholder"></div>
<h3>Generation & Summarization</h3>
<p>Create summaries, clips, or new content based on video understanding.</p>
</div>
<div class="feature-card">
<div class="icon-placeholder"></div>
<h3>API & SDK Access</h3>
<p>Easily integrate video AI into your existing applications and workflows.</p>
</div>
</div>
</div>
</section>
<section class="section use-cases-section">
<div class="container">
<h2 class="section-title">Trusted by leading companies.</h2>
<!-- Trust bar/Logos section -->
<div class="trust-bar">
<!-- Placeholder logos -->
<div class="logo-item">Logo 1</div>
<div class="logo-item">Logo 2</div>
<div class="logo-item">Logo 3</div>
<div class="logo-item">Logo 4</div>
<div class="logo-item">Logo 5</div>
</div>
</div>
</section>
<section class="section cta-section">
<div class="container center-text">
<h2>Ready to transform your video strategy?</h2>
<div class="cta-actions">
<a href="#" class="btn btn-primary btn-large">Get started</a>
<a href="#" class="btn btn-secondary btn-large">Request a demo</a>
</div>
</div>
</section>
</main>
<footer class="site-footer">
<div class="container">
<div class="footer-content">
<div class="footer-brand">
<div class="logo">Twelve Labs</div>
<p>© 2023 Twelve Labs. All rights reserved.</p>
</div>
<div class="footer-links">
<div class="footer-col">
<h4>Platform</h4>
<ul>
<li><a href="#">Overview</a></li>
<li><a href="#">API</a></li>
<li><a href="#">Pricing</a></li>
</ul>
</div>
<div class="footer-col">
<h4>Company</h4>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="footer-col">
<h4>Resources</h4>
<ul>
<li><a href="#">Docs</a></li>
<li><a href="#">Support</a></li>
<li><a href="#">Legal</a></li>
</ul>
</div>
</div>
</div>
</div>
</footer>
</body>
</html>
2. CSS Styling (style.css)
This CSS will apply the styling, layout (using Flexbox and Grid), colors, and basic responsiveness.
/* Global Styles */
:root {
--dark-bg: #0a0a0a; /* Very dark background */
--card-bg: #1a1a1a; /* Slightly lighter for cards */
--text-color: #f0f0f0; /* Light text color */
--muted-text: #a0a0a0; /* Muted grey text */
--primary-color: #007bff; /* Example primary blue (adjust to site colors) */
--primary-gradient-start: #007bff; /* Adjust for actual gradient colors */
--primary-gradient-end: #00c6ff;
--secondary-button-border: #444; /* Border for outline buttons */
--spacing-unit: 1rem; /* Base spacing unit */
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--dark-bg);
overflow-x: hidden; /* Prevent horizontal scroll from potential background elements */
}
a {
color: inherit;
text-decoration: none;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 var(--spacing-unit); /* Responsive padding */
}
.section {
padding: calc(var(--spacing-unit) * 4) 0; /* Large top/bottom padding for sections */
position: relative; /* Needed for potential background elements */
z-index: 1; /* Ensure content is above backgrounds */
}
.section-title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: calc(var(--spacing-unit) * 3);
text-align: left; /* Default */
line-height: 1.2;
}
.section-title.center-text {
text-align: center;
}
.center-text {
text-align: center;
}
/* Buttons */
.btn {
display: inline-block;
padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
border-radius: 6px;
font-weight: 600;
transition: all 0.3s ease;
border: 1px solid transparent;
cursor: pointer;
font-size: 1rem;
}
.btn-primary {
background: linear-gradient(90deg, var(--primary-gradient-start), var(--primary-gradient-end));
color: var(--dark-bg); /* Dark text on bright button */
border-color: transparent; /* No border needed with gradient */
}
.btn-primary:hover {
opacity: 0.9;
transform: translateY(-2px);
}
.btn-outline {
background-color: transparent;
color: var(--text-color);
border-color: var(--secondary-button-border);
}
.btn-outline:hover {
background-color: rgba(255, 255, 255, 0.05);
border-color: var(--text-color);
}
.btn-secondary {
background-color: transparent;
color: var(--text-color);
border-color: var(--secondary-button-border);
}
.btn-secondary:hover {
background-color: rgba(255, 255, 255, 0.05);
border-color: var(--text-color);
}
.btn-large {
padding: calc(var(--spacing-unit) * 1.2) calc(var(--spacing-unit) * 2.5);
font-size: 1.1rem;
}
/* Header */
.site-header {
position: fixed; /* Fixed header */
top: 0;
left: 0;
width: 100%;
background-color: rgba(10, 10, 10, 0.8); /* Semi-transparent dark background */
backdrop-filter: blur(10px); /* Frosted glass effect */
padding: var(--spacing-unit) 0;
z-index: 100; /* Ensure it's above other content */
}
.site-header .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo a {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-color);
text-decoration: none;
}
.main-nav ul {
list-style: none;
display: flex;
gap: calc(var(--spacing-unit) * 1.5);
}
.main-nav a {
font-size: 1rem;
color: var(--muted-text);
transition: color 0.3s ease;
}
.main-nav a:hover {
color: var(--text-color);
}
.header-actions {
display: flex;
gap: var(--spacing-unit);
}
.mobile-menu-toggle {
display: none; /* Hidden by default on desktop */
background: none;
border: none;
cursor: pointer;
padding: var(--spacing-unit) 0;
z-index: 110; /* Above header content */
}
.mobile-menu-toggle span {
display: block;
width: 25px;
height: 3px;
background-color: var(--text-color);
margin-bottom: 5px;
transition: all 0.3s ease;
}
/* Hero Section */
.hero-section {
text-align: center;
padding: 180px 0 120px 0; /* More padding for header and content */
position: relative;
overflow: hidden; /* Hide background elements that go outside */
}
.hero-section h1 {
font-size: 4.5rem; /* Large heading */
font-weight: 800;
margin-bottom: var(--spacing-unit);
line-height: 1.1;
}
.hero-section .gradient-text {
background: linear-gradient(90deg, var(--primary-gradient-start), var(--primary-gradient-end));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent; /* Fallback */
}
.hero-section .subtitle {
font-size: 1.5rem;
color: var(--muted-text);
margin-bottom: calc(var(--spacing-unit) * 3);
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
.hero-ctas {
display: flex;
justify-content: center;
gap: var(--spacing-unit);
}
/* Basic background placeholder - replace with actual complex background */
.hero-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at 50% 20%, rgba(0, 119, 255, 0.15) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(0, 198, 255, 0.1) 0%, transparent 40%);
pointer-events: none;
z-index: 0; /* Below content */
}
/* Problem/Solution Section */
.content-grid {
display: grid;
grid-template-columns: 1fr 1fr; /* Two columns */
gap: calc(var(--spacing-unit) * 4); /* Space between columns */
align-items: center; /* Vertically align */
margin-bottom: calc(var(--spacing-unit) * 6); /* Space between blocks */
}
.content-grid.reversed {
direction: rtl; /* Reverse column order */
}
.content-grid.reversed > .text-block {
direction: ltr; /* Restore text direction */
}
.content-grid.reversed > .image-block {
direction: ltr; /* Restore image direction */
}
.text-block h3 {
font-size: 2rem;
font-weight: 600;
margin-bottom: var(--spacing-unit);
}
.text-block p {
font-size: 1.1rem;
color: var(--muted-text);
}
.graphic-placeholder {
width: 100%;
height: 300px; /* Placeholder height */
background-color: var(--card-bg); /* Placeholder color */
border-radius: 8px;
display: flex;
justify-content: center;
align-items: center;
color: var(--muted-text);
font-size: 1.2rem;
}
/* Features Section */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
gap: calc(var(--spacing-unit) * 2); /* Space between cards */
}
.feature-card {
background-color: var(--card-bg);
border-radius: 8px;
padding: calc(var(--spacing-unit) * 2);
border: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
flex-direction: column;
gap: var(--spacing-unit);
transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
transform: translateY(-5px);
border-color: rgba(255, 255, 255, 0.3);
}
.icon-placeholder {
width: 40px;
height: 40px;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 4px;
margin-bottom: var(--spacing-unit);
}
.feature-card h3 {
font-size: 1.3rem;
font-weight: 600;
margin-bottom: var(--spacing-unit) * 0.5;
}
.feature-card p {
font-size: 1rem;
color: var(--muted-text);
flex-grow: 1; /* Make paragraph take up space */
}
/* Trust Bar / Logos */
.trust-bar {
display: flex;
flex-wrap: wrap; /* Allow wrapping */
justify-content: center; /* Center logos */
align-items: center;
gap: calc(var(--spacing-unit) * 3); /* Space between logos */
padding: calc(var(--spacing-unit) * 2) 0;
/* Potentially add a subtle top border */
border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.logo-item {
/* Placeholder styles - replace with actual logo images or SVGs */
font-size: 1.2rem;
color: var(--muted-text);
opacity: 0.7; /* Slightly faded */
/* If using images, style img tag: max-height, filter: grayscale etc. */
}
/* CTA Section */
.cta-section h2 {
font-size: 3rem;
font-weight: 700;
margin-bottom: calc(var(--spacing-unit) * 2);
}
.cta-actions {
display: flex;
justify-content: center;
gap: var(--spacing-unit);
}
/* Footer */
.site-footer {
background-color: var(--dark-bg);
padding: calc(var(--spacing-unit) * 4) 0;
border-top: 1px solid rgba(255, 255, 255, 0.05);
color: var(--muted-text);
font-size: 0.9rem;
}
.footer-content {
display: flex;
justify-content: space-between;
gap: calc(var(--spacing-unit) * 4);
flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
.footer-brand {
flex-basis: 250px; /* Base width for the brand column */
}
.footer-brand .logo {
font-size: 1.3rem;
font-weight: 700;
color: var(--text-color);
margin-bottom: var(--spacing-unit);
}
.footer-links {
display: flex;
gap: calc(var(--spacing-unit) * 3);
flex-wrap: wrap; /* Allow columns to wrap */
}
.footer-col {
min-width: 120px; /* Minimum width for link columns */
}
.footer-col h4 {
font-size: 1rem;
font-weight: 600;
color: var(--text-color);
margin-bottom: var(--spacing-unit);
}
.footer-col ul {
list-style: none;
display: flex;
flex-direction: column;
gap: var(--spacing-unit) * 0.5;
}
.footer-col a {
color: var(--muted-text);
transition: color 0.3s ease;
}
.footer-col a:hover {
color: var(--text-color);
}
/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
.hero-section h1 {
font-size: 3.5rem;
}
.hero-section .subtitle {
font-size: 1.3rem;
}
.section-title {
font-size: 2rem;
}
.content-grid {
gap: calc(var(--spacing-unit) * 2);
}
.text-block h3 {
font-size: 1.7rem;
}
}
@media (max-width: 768px) {
.site-header .container {
flex-wrap: wrap; /* Allow logo and nav to wrap */
padding: var(--spacing-unit) var(--spacing-unit);
}
.site-header .logo {
flex-grow: 1; /* Logo takes available space to push toggle right */
}
.main-nav,
.header-actions {
display: none; /* Hide desktop nav and actions on mobile */
width: 100%; /* Allow nav/actions to take full width if needed for mobile menu */
flex-direction: column; /* Stack items in columns */
align-items: center; /* Center items */
gap: var(--spacing-unit) * 1.5;
margin-top: var(--spacing-unit);
}
.header-actions .btn {
width: 80%; /* Make buttons wider on mobile */
text-align: center;
}
.mobile-menu-toggle {
display: block; /* Show toggle button */
}
/* Add JS class to show mobile menu */
/* .site-header.menu-open .main-nav,
.site-header.menu-open .header-actions {
display: flex;
} */
/* Toggle icon animation */
/* .site-header.menu-open .mobile-menu-toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.site-header.menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .mobile-menu-toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); } */
.hero-section {
padding: 150px 0 80px 0;
}
.hero-section h1 {
font-size: 2.5rem;
}
.hero-section .subtitle {
font-size: 1.1rem;
}
.hero-ctas {
flex-direction: column; /* Stack buttons vertically */
align-items: center;
}
.hero-ctas .btn {
width: 80%; /* Make buttons wider on mobile */
text-align: center;
}
.section {
padding: calc(var(--spacing-unit) * 3) 0;
}
.section-title {
font-size: 1.8rem;
margin-bottom: calc(var(--spacing-unit) * 2);
}
.content-grid {
grid-template-columns: 1fr; /* Stack columns */
gap: calc(var(--spacing-unit) * 3); /* Space between stacked blocks */
margin-bottom: calc(var(--spacing-unit) * 4);
}
.content-grid.reversed {
direction: ltr; /* Remove RTL override on mobile */
}
.content-grid .text-block {
order: 1; /* Text first */
}
.content-grid .image-block {
order: 2; /* Image second */
}
.content-grid.reversed .text-block {
order: 1; /* Keep text first even if reversed class is there */
}
.content-grid.reversed .image-block {
order: 2;
}
.text-block h3 {
font-size: 1.5rem;
}
.graphic-placeholder {
height: 200px; /* Smaller placeholder on mobile */
}
.features-grid {
grid-template-columns: 1fr; /* Stack features */
}
.feature-card {
padding: calc(var(--spacing-unit) * 1.5);
}
.trust-bar {
gap: calc(var(--spacing-unit) * 2);
}
.cta-section h2 {
font-size: 2rem;
}
.cta-actions {
flex-direction: column; /* Stack CTA buttons */
align-items: center;
}
.cta-actions .btn {
width: 80%; /* Make buttons wider on mobile */
text-align: center;
}
.footer-content {
flex-direction: column; /* Stack footer content */
gap: calc(var(--spacing-unit) * 3);
}
.footer-links {
flex-direction: column; /* Stack footer link columns */
gap: calc(var(--spacing-unit) * 2);
}
}
How to Use:
- Save the first code block as
index.html.
- Save the second code block as
style.css in the same directory.
- Open
index.html in your web browser.
Explanation:
- HTML: Sets up the semantic structure with a header, main content sections, and a footer. Uses classes (
container, section, btn, etc.) for targeting with CSS. Includes placeholders for logos, graphics, and icons. Links Google Fonts for the 'Inter' font.
- CSS:
- Defines CSS variables (
:root) for colors and spacing to make changes easier.
- Resets default margins/padding and sets
box-sizing.
- Applies basic body styles (font, background, text color).
- Styles the
.container for centering content and adding horizontal padding.
- Styles the
.section for consistent vertical padding.
- Styles buttons with primary, secondary, and outline variations, including hover effects.
- Header: Uses
position: fixed, flexbox for layout, and backdrop-filter for the frosted effect. Includes basic styles for navigation and action buttons. Sets up the mobile menu toggle to be hidden initially.
- Hero: Centers text, uses large font sizes, applies a gradient background clip to the main heading. Includes a basic radial gradient placeholder for the background effect.
- Problem/Solution: Uses CSS Grid for the two-column layout and the
reversed class to easily swap column order. Includes placeholder styles for graphics.
- Features: Uses CSS Grid with
repeat(auto-fit, minmax(..)) for a responsive card grid. Styles the cards with background, border, padding, and subtle hover effects.
- Trust Bar: Uses Flexbox to align logos, allowing them to wrap.
- CTA Section: Centers text and uses Flexbox for buttons.
- Footer: Uses Flexbox to layout the main footer sections (brand and links), and again for the link columns. Allows wrapping for responsiveness.
- Responsiveness (
@media queries): Adjusts font sizes, padding, and changes layout direction (flex-direction: column, grid-template-columns: 1fr) for screens smaller than 1024px and 768px. Crucially, it hides the desktop navigation and shows the mobile toggle on small screens. Note: The actual mobile menu toggle functionality requires JavaScript, which is not included here.
This provides a solid foundation for recreating the visual design, capturing the overall feel, layout, and responsiveness of the Twelve Labs website's key sections. You would replace the placeholder content and potentially add more complex background graphics or animations if needed for a more exact replica.