Skip to content

Commit 23afe97

Browse files
mblodeclaude
andcommitted
Replace defunct placekitten image hosts in demo
placekitten.com has shut down, so the demo images no longer load. Point them at picsum.photos so images render in the demo and docs. Closes #60 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent e5da6da commit 23afe97

2 files changed

Lines changed: 23 additions & 8 deletions

File tree

docs/index.html

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@
1919
.site-nav li { display: inline; padding: 0 16px; }
2020
.site-nav .brand { font-size: 1.5rem; }
2121
.hero { border-bottom: 1px solid rgba(0,0,0,0.12); padding-bottom: 16px; margin-bottom: 32px; }
22+
.hero .button {
23+
background-color: #3b82f6;
24+
border: 1px solid transparent;
25+
border-radius: 4px;
26+
color: #fff;
27+
display: inline-block;
28+
font-weight: 400;
29+
line-height: 1.5;
30+
padding: 0.375rem 0.75rem;
31+
text-align: center;
32+
text-decoration: none;
33+
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
34+
white-space: nowrap;
35+
}
36+
.hero .button:hover { background-color: #2563eb; border-color: #2563eb; }
2237
footer { margin-bottom: 0; }
2338
</style>
2439
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6D0Z3DW6BT"></script>
@@ -45,8 +60,8 @@ <h1>Marx</h1>
4560
<h3>The classless CSS reset (perfect for Communists).</h3>
4661
<p>No JavaScript. No Classes. Just raw CSS.</p>
4762
<div>
48-
<a href="https://unpkg.com/marx-css/css/marx.min.css" target="_blank" rel="noopener"><button>Download</button></a>
49-
<a href="https://github.com/mblode/marx" target="_blank" rel="noopener"><button>GitHub</button></a>
63+
<a href="https://unpkg.com/marx-css/css/marx.min.css" class="button" target="_blank" rel="noopener">Download</a>
64+
<a href="https://github.com/mblode/marx" class="button" target="_blank" rel="noopener">GitHub</a>
5065
</div>
5166
</center>
5267

@@ -392,21 +407,21 @@ <h3>
392407
No <code>&lt;figure&gt;</code> element
393408
</h3>
394409
<p>
395-
<img src="http://placekitten.com/480/480" alt="Image alt text">
410+
<img src="https://picsum.photos/480/480" alt="Image alt text">
396411
</p>
397412
<h3>
398413
Wrapped in a <code>&lt;figure&gt;</code> element, no
399414
<code>&lt;figcaption&gt;</code>
400415
</h3>
401416
<figure>
402-
<img src="http://placekitten.com/420/420" alt="Image alt text">
417+
<img src="https://picsum.photos/420/420" alt="Image alt text">
403418
</figure>
404419
<h3>
405420
Wrapped in a <code>&lt;figure&gt;</code> element, with a
406421
<code>&lt;figcaption&gt;</code>
407422
</h3>
408423
<figure>
409-
<img src="http://placekitten.com/420/420" alt="Image alt text">
424+
<img src="https://picsum.photos/420/420" alt="Image alt text">
410425
<figcaption>Here is a caption for this image.</figcaption>
411426
</figure>
412427
</div>

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,21 +337,21 @@ <h3>
337337
No <code>&lt;figure&gt;</code> element
338338
</h3>
339339
<p>
340-
<img src="http://placekitten.com/480/480" alt="Image alt text">
340+
<img src="https://picsum.photos/480/480" alt="Image alt text">
341341
</p>
342342
<h3>
343343
Wrapped in a <code>&lt;figure&gt;</code> element, no
344344
<code>&lt;figcaption&gt;</code>
345345
</h3>
346346
<figure>
347-
<img src="http://placekitten.com/420/420" alt="Image alt text">
347+
<img src="https://picsum.photos/420/420" alt="Image alt text">
348348
</figure>
349349
<h3>
350350
Wrapped in a <code>&lt;figure&gt;</code> element, with a
351351
<code>&lt;figcaption&gt;</code>
352352
</h3>
353353
<figure>
354-
<img src="http://placekitten.com/420/420" alt="Image alt text">
354+
<img src="https://picsum.photos/420/420" alt="Image alt text">
355355
<figcaption>Here is a caption for this image.</figcaption>
356356
</figure>
357357
</div>

0 commit comments

Comments
 (0)