Skip to content

Commit 28ce71e

Browse files
committed
Move command examples above quick start
1 parent ac8bda9 commit 28ce71e

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎site/index.html‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,16 @@ <h1 id="hero-title">
130130
Each file’s diff and explanation, side by side.
131131
</p>
132132

133+
<div class="command-choices" role="group" aria-label="Command examples">
134+
<button type="button" data-command-choice="npx diffsplain" aria-pressed="true">Your repo</button>
135+
<span class="command-choices__label">Or an open-source repo:</span>
136+
<span class="command-choices__repos">
137+
<button type="button" data-command-choice="npx diffsplain facebook/react --pr 36094" aria-pressed="false">React</button>
138+
<button type="button" data-command-choice="npx diffsplain microsoft/vscode --pr 334672" aria-pressed="false">VS Code</button>
139+
<button type="button" data-command-choice="npx diffsplain vitejs/vite --pr 23387" aria-pressed="false">Vite</button>
140+
</span>
141+
</div>
142+
133143
<div
134144
class="hero__command"
135145
role="group"
@@ -147,16 +157,6 @@ <h1 id="hero-title">
147157
</button>
148158
</div>
149159

150-
<div class="command-choices" role="group" aria-label="Command examples">
151-
<button type="button" data-command-choice="npx diffsplain" aria-pressed="true">Your repo</button>
152-
<span class="command-choices__label">Or an open-source repo:</span>
153-
<span class="command-choices__repos">
154-
<button type="button" data-command-choice="npx diffsplain facebook/react --pr 36094" aria-pressed="false">React</button>
155-
<button type="button" data-command-choice="npx diffsplain microsoft/vscode --pr 334672" aria-pressed="false">VS Code</button>
156-
<button type="button" data-command-choice="npx diffsplain vitejs/vite --pr 23387" aria-pressed="false">Vite</button>
157-
</span>
158-
</div>
159-
160160
</div>
161161

162162
<div class="hero__demo-stage">

‎site/styles.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ code {
883883
}
884884

885885
.hero__command {
886-
margin-top: 28px;
886+
margin-top: 8px;
887887
align-items: center;
888888
background: var(--ink);
889889
border-radius: 5px;
@@ -1366,7 +1366,7 @@ code {
13661366
display: flex;
13671367
flex-wrap: wrap;
13681368
gap: 4px 16px;
1369-
margin-top: 8px;
1369+
margin-top: 20px;
13701370
pointer-events: auto;
13711371
}
13721372

0 commit comments

Comments
 (0)