refactor: Reorganize hero section into two-column layout

This commit is contained in:
Paul Gauthier (aider) 2025-03-19 10:31:22 -07:00
parent 9978c8ea48
commit 9d51d4a572

View file

@ -76,28 +76,51 @@
.hero {
padding: 80px 0;
text-align: center;
background: linear-gradient(135deg, #f5f7ff 0%, #e9ecf8 100%);
}
.hero-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
align-items: center;
}
.hero-content {
text-align: left;
}
.hero-video {
display: flex;
justify-content: center;
align-items: center;
}
.hero h1 {
font-size: 3rem;
margin-bottom: 20px;
margin-bottom: 24px;
color: var(--dark);
text-align: left;
}
.hero p {
font-size: 1.2rem;
max-width: 700px;
margin: 0 auto 40px;
margin: 0 0 40px;
color: #495057;
}
.buttons {
display: flex;
gap: 20px;
justify-content: center;
margin-bottom: 40px;
justify-content: flex-start;
margin-top: 32px;
margin-bottom: 0;
}
.btn-primary {
padding: 14px 28px;
font-size: 1.1rem;
}
.btn {
@ -416,8 +439,9 @@
<section class="hero">
<div class="container">
<div class="hero-grid">
<div class="hero-content">
<h1>AI Pair Programming in Your Terminal</h1>
<p>Aider lets you pair program with LLMs, to edit code in your local git repository. Start a new project or work with an existing code base.</p>
<div class="stats-container">
<a href="https://github.com/Aider-AI/aider" class="github-badge badge-stars">
@ -438,10 +462,15 @@
</a>
</div>
<p>Aider lets you pair program with LLMs, to edit code in your local git repository. Start a new project or work with an existing code base.</p>
<div class="buttons">
<a href="#getting-started" class="btn btn-primary">Get Started</a>
<a href="https://aider.chat/docs/" class="btn btn-secondary">Documentation</a>
</div>
</div>
<div class="hero-video">
<div class="video-container">
<video autoplay loop muted playsinline>
<source src="/assets/shell-cmds-small.mp4" type="video/mp4">
@ -449,6 +478,8 @@
</video>
</div>
</div>
</div>
</div>
</section>
<section class="features" id="features">