Skip to content

Commit a292b9f

Browse files
committed
refactor: redesign landing page hero-actions as unified get-started panel
1 parent 5725468 commit a292b9f

File tree

1 file changed

+65
-82
lines changed

1 file changed

+65
-82
lines changed

src/routes/+page.svelte

Lines changed: 65 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,8 @@
117117
</div>
118118
</div>
119119

120-
<div class="hero-actions">
121-
<div class="hero-action-card hero-action-install">
122-
<div class="hero-action-label">Install</div>
123-
<h3 class="hero-action-title">Install OpenBoot</h3>
124-
<p class="hero-action-desc">Install via Homebrew (recommended) for easy updates, or use the one-line installer as a fallback.</p>
120+
<div class="get-started-panel">
121+
<div class="panel-install">
125122
<div class="install-command" id="install">
126123
<div class="install-prompt">$</div>
127124
<code>brew tap openbootdotdev/tap && brew install openboot</code>
@@ -135,16 +132,17 @@
135132
{/if}
136133
</button>
137134
</div>
138-
<p class="hero-action-alt">
139-
Alternative: <code>curl -fsSL openboot.dev/install.sh | bash</code>
140-
</p>
135+
<p class="install-alt">Alternative: <code>curl -fsSL openboot.dev/install.sh | bash</code></p>
141136
</div>
142137

143-
<div class="hero-action-pair">
144-
<div class="hero-action-card">
145-
<div class="hero-action-label">Set Up</div>
146-
<h3 class="hero-action-title">Set up your Mac</h3>
147-
<p class="hero-action-desc">Fresh Mac? One command to install 80+ dev tools, dotfiles, and macOS preferences.</p>
138+
<div class="panel-divider"></div>
139+
140+
<div class="panel-usage">
141+
<div class="usage-option">
142+
<div class="usage-text">
143+
<h3 class="usage-title">Set up your Mac</h3>
144+
<p class="usage-desc">Fresh Mac? One command to install 80+ dev tools, dotfiles, and macOS preferences.</p>
145+
</div>
148146
<div class="install-command">
149147
<div class="install-prompt">$</div>
150148
<code>openboot</code>
@@ -160,10 +158,11 @@
160158
</div>
161159
</div>
162160

163-
<div class="hero-action-card">
164-
<div class="hero-action-label">Snapshot</div>
165-
<h3 class="hero-action-title">Capture your setup</h3>
166-
<p class="hero-action-desc">Already set up? Snapshot your current tools and share the config with your team.</p>
161+
<div class="usage-option">
162+
<div class="usage-text">
163+
<h3 class="usage-title">Capture your setup</h3>
164+
<p class="usage-desc">Already set up? Snapshot your current tools and share the config with your team.</p>
165+
</div>
167166
<div class="install-command">
168167
<div class="install-prompt">$</div>
169168
<code>openboot snapshot</code>
@@ -543,103 +542,82 @@
543542
background: #1e1e2e;
544543
}
545544
546-
/* ── Hero Actions ────────────────────────────────── */
547-
548-
.hero-actions {
549-
display: flex;
550-
flex-direction: column;
551-
gap: 20px;
552-
margin-top: 48px;
553-
}
545+
/* ── Get Started Panel ───────────────────────────── */
554546
555-
.hero-action-card {
547+
.get-started-panel {
548+
margin-top: 56px;
556549
background: var(--bg-secondary);
557550
border: 1px solid var(--border);
558551
border-radius: 16px;
559-
padding: 28px;
560-
display: flex;
561-
flex-direction: column;
562-
gap: 12px;
563-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
564-
min-width: 0;
552+
overflow: hidden;
565553
}
566554
567-
.hero-action-card:hover {
568-
border-color: var(--border-hover);
569-
transform: translateY(-4px);
570-
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
555+
.panel-install {
556+
padding: 28px 28px 20px;
571557
}
572558
573-
/* Full-width install card */
574-
.hero-action-install {
575-
border-color: rgba(34, 197, 94, 0.3);
576-
background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(34, 197, 94, 0.04) 100%);
559+
.panel-install .install-command {
560+
margin-bottom: 8px;
577561
}
578562
579-
.hero-action-install:hover {
580-
border-color: rgba(34, 197, 94, 0.5);
581-
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(34, 197, 94, 0.08);
563+
.install-alt {
564+
color: var(--text-muted);
565+
font-size: 0.78rem;
566+
margin: 0;
582567
}
583568
584-
.hero-action-alt {
585-
color: var(--text-secondary);
586-
font-size: 0.8rem;
587-
opacity: 0.7;
588-
margin: 0;
569+
.install-alt code {
570+
font-family: 'JetBrains Mono', monospace;
571+
font-size: 0.73rem;
589572
}
590573
591-
.hero-action-alt code {
592-
font-size: 0.75rem;
574+
.panel-divider {
575+
height: 1px;
576+
background: var(--border);
577+
margin: 0 28px;
593578
}
594579
595-
/* Two-column pair for setup / snapshot */
596-
.hero-action-pair {
580+
.panel-usage {
597581
display: grid;
598582
grid-template-columns: 1fr 1fr;
599-
gap: 20px;
583+
gap: 0;
600584
}
601585
602-
.hero-action-label {
603-
font-family: 'JetBrains Mono', monospace;
604-
font-size: 0.65rem;
605-
font-weight: 700;
606-
text-transform: uppercase;
607-
letter-spacing: 0.08em;
608-
color: var(--accent);
609-
padding: 4px 10px;
610-
background: var(--accent-glow);
611-
border-radius: 20px;
612-
width: fit-content;
586+
.usage-option {
587+
padding: 24px 28px;
588+
display: flex;
589+
flex-direction: column;
590+
gap: 16px;
591+
}
592+
593+
.usage-option:first-child {
594+
border-right: 1px solid var(--border);
613595
}
614596
615-
.hero-action-title {
616-
font-size: 1.15rem;
597+
.usage-text {
598+
display: flex;
599+
flex-direction: column;
600+
gap: 6px;
601+
flex: 1;
602+
}
603+
604+
.usage-title {
605+
font-size: 1.05rem;
617606
font-weight: 700;
618607
letter-spacing: -0.02em;
619608
color: var(--text-primary);
620609
margin: 0;
621610
}
622611
623-
.hero-action-desc {
612+
.usage-desc {
624613
color: var(--text-secondary);
625-
font-size: 0.875rem;
626-
line-height: 1.6;
614+
font-size: 0.85rem;
615+
line-height: 1.55;
627616
margin: 0;
628617
}
629618
630-
.hero-action-card .install-command {
631-
margin-top: auto;
619+
.usage-option .install-command {
632620
margin-bottom: 0;
633-
align-items: flex-start;
634-
}
635-
636-
.hero-action-card .install-command code {
637-
white-space: normal;
638-
overflow-wrap: break-word;
639-
overflow: visible;
640-
text-overflow: unset;
641-
font-size: 0.82rem;
642-
line-height: 1.5;
643621
}
644622
645623
/* ── How It Works ────────────────────────────────── */
@@ -802,9 +780,14 @@
802780
}
803781
804782
@media (max-width: 960px) {
805-
.hero-action-pair {
783+
.panel-usage {
806784
grid-template-columns: 1fr;
807785
}
786+
787+
.usage-option:first-child {
788+
border-right: none;
789+
border-bottom: 1px solid var(--border);
790+
}
808791
}
809792
810793
@media (max-width: 768px) {

0 commit comments

Comments
 (0)