Skip to content

Commit 46f6827

Browse files
committed
docs: lead with dbfork speed proof
1 parent 1db95ab commit 46f6827

2 files changed

Lines changed: 56 additions & 30 deletions

File tree

docs/index.html

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,24 @@ <h1>Clone a development database in seconds, not minutes.</h1>
5959
</div>
6060
</div>
6161

62-
<div class="hero-visual">
63-
<img src="./assets/dbfork-demo.gif" alt="dbfork demo showing local database branching" />
62+
<div class="hero-proof">
63+
<div class="compare-card strong">
64+
<h3>dbfork</h3>
65+
<p class="metric">1 to 3 seconds</p>
66+
<p>Server-side template clone, built for repeated use during active development.</p>
67+
</div>
68+
<div class="compare-card">
69+
<h3>pg_dump | pg_restore</h3>
70+
<p class="metric">2 to 5 minutes</p>
71+
<p>Good for backup-style workflows, too slow for every migration and feature branch.</p>
72+
</div>
73+
<pre class="hero-terminal"><code>$ dbfork create feature_migration
74+
created feature_migration from postgres_dev
75+
76+
$ dbfork diff feature_migration
77+
tables changed: 3
78+
columns added: 5
79+
indexes changed: 1</code></pre>
6480
</div>
6581
</section>
6682

@@ -119,17 +135,21 @@ <h2>Use the local database like code, not like a fragile shared pet.</h2>
119135
</p>
120136
</div>
121137

122-
<div class="compare">
123-
<div class="compare-card strong">
124-
<h3>dbfork</h3>
125-
<p class="metric">1 to 3 seconds</p>
126-
<p>Server-side template clone, built for repeated use during active development.</p>
127-
</div>
128-
<div class="compare-card">
129-
<h3>pg_dump | pg_restore</h3>
130-
<p class="metric">2 to 5 minutes</p>
131-
<p>Good for backup-style workflows, too slow for every migration and feature branch.</p>
132-
</div>
138+
<div class="workflow-grid">
139+
<article class="feature">
140+
<h3>Branch fast enough to use it daily</h3>
141+
<p>
142+
The performance win matters because developers only keep a branch workflow
143+
when it feels as disposable as a git branch.
144+
</p>
145+
</article>
146+
<article class="feature">
147+
<h3>Inspect before merge</h3>
148+
<p>
149+
Compare the branch against the source database, review drift, and only
150+
keep the experiment when the schema change is real.
151+
</p>
152+
</article>
133153
</div>
134154
</section>
135155

docs/styles.css

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pre { font-family: "IBM Plex Mono", ui-monospace, monospace; }
6262
}
6363

6464
.hero-copy,
65-
.hero-visual,
65+
.hero-proof,
6666
.feature,
6767
.compare-card,
6868
.install-grid pre {
@@ -145,15 +145,11 @@ h1 {
145145
color: var(--muted);
146146
}
147147

148-
.hero-visual {
149-
overflow: hidden;
150-
}
151-
152-
.hero-visual img {
153-
display: block;
154-
width: 100%;
155-
height: 100%;
156-
object-fit: cover;
148+
.hero-proof {
149+
display: grid;
150+
gap: 18px;
151+
align-content: start;
152+
padding: 24px;
157153
}
158154

159155
.section { padding: 28px 0; }
@@ -168,7 +164,8 @@ h2 {
168164

169165
.grid,
170166
.compare,
171-
.install-grid {
167+
.install-grid,
168+
.workflow-grid {
172169
display: grid;
173170
gap: 18px;
174171
margin-top: 24px;
@@ -182,10 +179,6 @@ h2 {
182179
.feature h3,
183180
.compare-card h3 { margin-bottom: 12px; }
184181

185-
.compare {
186-
grid-template-columns: repeat(2, minmax(0, 1fr));
187-
}
188-
189182
.compare-card.strong {
190183
background:
191184
linear-gradient(135deg, rgba(255, 176, 102, 0.14), rgba(143, 123, 255, 0.12)),
@@ -201,6 +194,19 @@ h2 {
201194
letter-spacing: -0.05em;
202195
}
203196

197+
.hero-terminal {
198+
margin: 0;
199+
padding: 20px;
200+
border-radius: 22px;
201+
background: linear-gradient(180deg, rgba(13, 15, 24, 0.9), rgba(13, 15, 24, 0.98));
202+
color: #f7f3ee;
203+
overflow-x: auto;
204+
}
205+
206+
.workflow-grid {
207+
grid-template-columns: repeat(2, minmax(0, 1fr));
208+
}
209+
204210
.install-grid {
205211
grid-template-columns: repeat(2, minmax(0, 1fr));
206212
}
@@ -216,7 +222,7 @@ h2 {
216222
@media (max-width: 980px) {
217223
.hero,
218224
.grid,
219-
.compare,
225+
.workflow-grid,
220226
.install-grid {
221227
grid-template-columns: 1fr;
222228
}
@@ -231,7 +237,7 @@ h2 {
231237
.shell { width: min(100% - 24px, 1180px); }
232238

233239
.hero-copy,
234-
.hero-visual,
240+
.hero-proof,
235241
.feature,
236242
.compare-card,
237243
.install-grid pre {

0 commit comments

Comments
 (0)