Skip to content

Commit bbba59c

Browse files
committed
Add VSCode screenshot to documentation
1 parent e263eca commit bbba59c

5 files changed

Lines changed: 115 additions & 75 deletions

File tree

docs/.vitepress/theme/SimDeckHome.vue

Lines changed: 18 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,12 @@ async function copyCommand() {
9999
operate on while you stay focused on what matters in the current context.
100100
</p>
101101
</div>
102-
<div class="sd-shot sd-shot-ide" aria-label="Screenshot placeholder for IDE simulator preview">
103-
<div class="sd-shot-bar" aria-hidden="true"><span></span><span></span><span></span></div>
104-
<div class="sd-shot-grid" aria-hidden="true">
105-
<div class="sd-code-lines">
106-
<span></span><span></span><span></span><span></span><span></span>
107-
</div>
108-
<div class="sd-phone-mini">
109-
<span></span><strong>Continue</strong>
110-
</div>
111-
<div class="sd-inspector-lines">
112-
<span></span><span></span><span></span><span></span>
113-
</div>
114-
</div>
115-
</div>
102+
<figure class="sd-shot sd-shot-image sd-shot-ide">
103+
<img
104+
src="/images/vscode-screenshot.png"
105+
alt="SimDeck running beside code in VS Code"
106+
/>
107+
</figure>
116108
</article>
117109

118110
<article class="sd-moment sd-reveal">
@@ -125,16 +117,12 @@ async function copyCommand() {
125117
confidence.
126118
</p>
127119
</div>
128-
<div class="sd-shot sd-shot-pr" aria-label="Screenshot placeholder for pull request preview">
129-
<div class="sd-pr-row">
130-
<span class="sd-status-dot" aria-hidden="true"></span>
131-
<div><strong>Preview ready</strong><small>Started by SimDeck</small></div>
132-
<em>2m ago</em>
133-
</div>
134-
<div class="sd-pr-device" aria-hidden="true">
135-
<span></span><span></span><span></span>
136-
</div>
137-
</div>
120+
<figure class="sd-shot sd-shot-image sd-shot-pr-image">
121+
<img
122+
src="/images/pr-comment.png"
123+
alt="SimDeck pull request preview comment with a streamed simulator session"
124+
/>
125+
</figure>
138126
</article>
139127

140128
<article class="sd-moment sd-reveal">
@@ -146,15 +134,12 @@ async function copyCommand() {
146134
once, then drive the simulator from wherever the work is happening.
147135
</p>
148136
</div>
149-
<div class="sd-shot sd-shot-remote" aria-label="Screenshot placeholder for remote WebRTC access">
150-
<div class="sd-remote-toolbar">
151-
<span>WebRTC</span><span>Connected</span><span>23ms</span>
152-
</div>
153-
<div class="sd-remote-controls" aria-hidden="true">
154-
<span></span><span></span><span></span><span></span><span></span>
155-
</div>
156-
<div class="sd-remote-device" aria-hidden="true"></div>
157-
</div>
137+
<figure class="sd-shot sd-shot-remote-card">
138+
<img
139+
src="/images/remote-access.png"
140+
alt="SimDeck remote access running on iOS"
141+
/>
142+
</figure>
158143
</article>
159144

160145
<article class="sd-moment sd-reveal">

docs/.vitepress/theme/custom.css

Lines changed: 97 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -220,34 +220,27 @@ html:not(.sd-home-active) .VPNavBar.screen-open {
220220
margin-left: calc(50% - 50vw);
221221
padding-top: var(--vp-nav-height);
222222
overflow: hidden;
223-
background: var(--sd-bg);
223+
background:
224+
linear-gradient(
225+
180deg,
226+
rgba(0, 112, 243, 0.026) 0,
227+
rgba(0, 112, 243, 0.014) 18svh,
228+
rgba(0, 112, 243, 0.005) 42svh,
229+
rgba(0, 112, 243, 0) 76svh
230+
),
231+
var(--sd-bg);
224232
}
225233

226-
.sd-home::before {
227-
content: "";
228-
position: absolute;
229-
inset: 0 0 auto;
230-
height: 860px;
231-
pointer-events: none;
232-
background: linear-gradient(
233-
180deg,
234-
rgba(0, 112, 243, 0.035) 0%,
235-
rgba(0, 112, 243, 0.024) 24%,
236-
rgba(0, 112, 243, 0.012) 52%,
237-
rgba(0, 112, 243, 0.004) 78%,
238-
rgba(0, 112, 243, 0) 100%
239-
);
240-
}
241-
242-
.dark .sd-home::before {
243-
background: linear-gradient(
244-
180deg,
245-
rgba(50, 145, 255, 0.065) 0%,
246-
rgba(50, 145, 255, 0.045) 24%,
247-
rgba(50, 145, 255, 0.022) 52%,
248-
rgba(50, 145, 255, 0.007) 78%,
249-
rgba(50, 145, 255, 0) 100%
250-
);
234+
.dark .sd-home {
235+
background:
236+
linear-gradient(
237+
180deg,
238+
rgba(50, 145, 255, 0.034) 0,
239+
rgba(50, 145, 255, 0.018) 18svh,
240+
rgba(50, 145, 255, 0.006) 42svh,
241+
rgba(50, 145, 255, 0) 76svh
242+
),
243+
var(--sd-bg);
251244
}
252245

253246
.sd-home > * {
@@ -382,7 +375,7 @@ html:not(.sd-home-active) .VPNavBar.screen-open {
382375

383376
.sd-hero-shot {
384377
position: relative;
385-
width: min(100%, 1040px);
378+
width: min(100%, 1180px);
386379
margin: 36px 0 0;
387380
border: 0;
388381
border-radius: 8px;
@@ -402,9 +395,8 @@ html:not(.sd-home-active) .VPNavBar.screen-open {
402395

403396
.sd-hero-shot img {
404397
display: block;
405-
width: auto;
406-
max-width: 100%;
407-
max-height: clamp(320px, 54svh, 700px);
398+
width: 100%;
399+
height: auto;
408400
border-radius: 8px;
409401
margin: 0 auto;
410402
}
@@ -505,6 +497,7 @@ html:not(.sd-home-active) .VPNavBar.screen-open {
505497

506498
.sd-shot {
507499
position: relative;
500+
margin: 0;
508501
min-height: 184px;
509502
border: 1px solid var(--sd-line);
510503
border-radius: var(--sd-radius);
@@ -531,6 +524,66 @@ html:not(.sd-home-active) .VPNavBar.screen-open {
531524
transform: translateY(-2px);
532525
}
533526

527+
.sd-shot-image {
528+
min-height: 0;
529+
border: 0;
530+
border-radius: 0;
531+
background: transparent !important;
532+
overflow: visible;
533+
}
534+
535+
.sd-shot-image img {
536+
display: block;
537+
width: 100%;
538+
height: auto;
539+
border-radius: var(--sd-radius);
540+
}
541+
542+
.sd-shot-image:hover {
543+
border-color: transparent;
544+
box-shadow: none;
545+
}
546+
547+
.sd-shot-pr-image img {
548+
border-radius: 10px;
549+
box-shadow: 0 18px 70px rgba(0, 0, 0, 0.2);
550+
}
551+
552+
.dark .sd-shot-pr-image img {
553+
box-shadow: 0 22px 90px rgba(0, 0, 0, 0.5);
554+
}
555+
556+
.sd-shot-remote-card {
557+
display: grid;
558+
min-height: 360px;
559+
place-items: center;
560+
padding: 28px;
561+
background:
562+
radial-gradient(circle at 50% 24%, rgba(0, 112, 243, 0.12), transparent 42%),
563+
linear-gradient(180deg, color-mix(in srgb, var(--sd-panel-subtle) 80%, transparent), var(--sd-panel));
564+
box-shadow: 0 22px 80px rgba(0, 0, 0, 0.16);
565+
}
566+
567+
.dark .sd-shot-remote-card {
568+
background:
569+
radial-gradient(circle at 50% 24%, rgba(50, 145, 255, 0.22), transparent 42%),
570+
linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
571+
#050505;
572+
box-shadow: 0 24px 94px rgba(0, 0, 0, 0.48);
573+
}
574+
575+
.sd-shot-remote-card img {
576+
display: block;
577+
width: 100%;
578+
max-width: 100%;
579+
height: auto;
580+
filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.22));
581+
}
582+
583+
.dark .sd-shot-remote-card img {
584+
filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.46));
585+
}
586+
534587
.sd-shot-bar {
535588
display: flex;
536589
gap: 7px;
@@ -1053,33 +1106,35 @@ html:not(.sd-home-active) .VPNavBar.screen-open {
10531106
}
10541107

10551108
.sd-hero {
1056-
min-height: calc(100svh - var(--vp-nav-height));
1057-
padding: 36px 0 44px;
1109+
justify-content: flex-start;
1110+
min-height: 0;
1111+
padding: 38px 0 46px;
10581112
}
10591113

10601114
.sd-home .sd-hero h1 {
1061-
font-size: 32px;
1115+
font-size: 40px;
1116+
line-height: 0.96;
10621117
}
10631118

10641119
.sd-home .sd-hero-copy p {
1065-
font-size: 20px;
1120+
margin-top: 18px;
1121+
font-size: 23px;
1122+
line-height: 1.18;
10661123
}
10671124

10681125
.sd-command-wrap {
1069-
width: 100%;
1070-
min-width: 0;
1126+
width: fit-content;
1127+
max-width: 100%;
1128+
margin-top: 24px;
10711129
}
10721130

10731131
.sd-command {
1074-
font-size: 14px;
1132+
padding: 18px 88px 18px 20px;
1133+
font-size: 15px;
10751134
}
10761135

10771136
.sd-hero-shot {
1078-
margin-top: 34px;
1079-
}
1080-
1081-
.sd-hero-shot img {
1082-
max-height: 30svh;
1137+
margin-top: 30px;
10831138
}
10841139

10851140
.sd-story {

docs/public/images/pr-comment.png

121 KB
Loading
843 KB
Loading
1.57 MB
Loading

0 commit comments

Comments
 (0)