Skip to content

Commit a133ac7

Browse files
committed
Update images
1 parent 65dd153 commit a133ac7

5 files changed

Lines changed: 49 additions & 7 deletions

File tree

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@
1818

1919
<table>
2020
<tr>
21-
<td valign="top" width="50%">
22-
<img src="./docs/assets/vscode.png" alt="VSCode Extension example 1" width="100%" />
21+
<th align="center" width="50%">Without safe-pkgs</th>
22+
<th align="center" width="50%">With safe-pkgs</th>
23+
</tr>
24+
<tr>
25+
<td align="center" valign="top">
26+
<img src="./docs/assets/vscode.png" alt="AI agent adding a package without safe-pkgs — no safety check performed" width="100%" />
2327
</td>
24-
<td valign="top" width="50%">
25-
<img src="./docs/assets/vscode2.png" alt="VSCode Extension example 2" width="100%" />
28+
<td align="center" valign="top">
29+
<img src="./docs/assets/vscode2.png" alt="AI agent blocked by safe-pkgs — risk level, CVEs, and reasons surfaced before install" width="100%" />
2630
</td>
2731
</tr>
2832
</table>

docs/assets/vscode.png

-14.9 KB
Loading

docs/assets/vscode2.png

6.58 KB
Loading

docs/index.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,15 @@ hide:
9999
<p class="hero-eyebrow">In-editor flow</p>
100100
<h3>What usage looks like</h3>
101101
</div>
102-
<div class="image-grid">
103-
<img src="./assets/vscode.png" alt="safe-pkgs VS Code example result" loading="lazy" />
104-
<img src="./assets/vscode2.png" alt="safe-pkgs VS Code example check flow" loading="lazy" />
102+
<div class="comparison-grid">
103+
<figure>
104+
<figcaption>Without safe-pkgs</figcaption>
105+
<img src="./assets/vscode.png" alt="AI agent adding a package without safe-pkgs — no safety check performed" loading="lazy" />
106+
</figure>
107+
<figure>
108+
<figcaption>With safe-pkgs</figcaption>
109+
<img src="./assets/vscode2.png" alt="AI agent blocked by safe-pkgs — risk level, CVEs, and reasons surfaced before install" loading="lazy" />
110+
</figure>
105111
</div>
106112
</section>
107113

docs/stylesheets/extra.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,37 @@
526526
box-shadow: var(--c-shadow);
527527
}
528528

529+
.comparison-grid {
530+
display: grid;
531+
gap: 1.25rem;
532+
grid-template-columns: repeat(2, minmax(0, 1fr));
533+
}
534+
535+
.comparison-grid figure {
536+
margin: 0;
537+
}
538+
539+
.comparison-grid figcaption {
540+
font-size: 0.8rem;
541+
font-weight: 600;
542+
letter-spacing: 0.03em;
543+
text-align: center;
544+
text-transform: uppercase;
545+
color: var(--md-default-fg-color--light);
546+
margin-bottom: 0.5rem;
547+
}
548+
549+
.comparison-grid img {
550+
width: 100%;
551+
height: 300px;
552+
object-fit: contain;
553+
object-position: top center;
554+
background: var(--md-code-bg-color);
555+
border: 1px solid var(--c-border);
556+
border-radius: 0.9rem;
557+
box-shadow: var(--c-shadow);
558+
}
559+
529560
.code-grid {
530561
display: grid;
531562
gap: 0.85rem;
@@ -593,6 +624,7 @@
593624
.card-grid.two,
594625
.step-grid,
595626
.image-grid,
627+
.comparison-grid,
596628
.metrics,
597629
.code-grid {
598630
grid-template-columns: 1fr;

0 commit comments

Comments
 (0)