Skip to content

Commit d6f653b

Browse files
committed
Fix How to contribute section styling; Fix logo sizes
1 parent 4af6548 commit d6f653b

File tree

4 files changed

+99
-22
lines changed

4 files changed

+99
-22
lines changed

src/icons/gh-star.svg

Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading

src/pages/index.astro

Lines changed: 83 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import stlink from "../images/landing/probes/stlink.png";
1919
import ftdi from "../images/landing/probes/ftdi.png";
2020
import probe_rs_debugger from "../images/landing/probe-rs-debugger.png";
2121
import CodeSnippet from "../components/CodeSnippet.tsx";
22+
import { Icon } from "astro-icon/components";
2223
---
2324

2425
<Html title={SITE_TITLE} description={SITE_DESCRIPTION}>
@@ -77,7 +78,7 @@ import CodeSnippet from "../components/CodeSnippet.tsx";
7778
</p>
7879
</div>
7980

80-
<div class="grid grid-cols-3 gap-32">
81+
<div class="grid grid-cols-3 gap-28 w-full">
8182
<div>
8283
<h2 class="text-2lg mt-0 mb-2">Embedded programming made easy</h2>
8384
<p>
@@ -267,41 +268,41 @@ core.write_8(0x2000_0000, &data)?;`,
267268
</p>
268269
</div>
269270
<div class="col-span-2">
270-
<div class="flex flex-wrap min-h-[100px]">
271+
<div class="flex flex-wrap min-h-[100px] max-w-full">
271272
<Image
272273
src={arm}
273274
alt="arm"
274-
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[85px] w-auto"
275+
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[105px] w-auto"
275276
/>
276277
<Image
277278
src={nordic}
278279
alt="nordic"
279-
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[85px] w-auto"
280+
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[105px] w-auto"
280281
/>
281282
<Image
282283
src={st}
283284
alt="st"
284-
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[85px] w-auto"
285+
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[105px] w-auto"
285286
/>
286287
<Image
287288
src={nxp}
288289
alt="nxp"
289-
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[85px] w-auto"
290+
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[105px] w-auto"
290291
/>
291292
<Image
292293
src={espressif}
293294
alt="espressif"
294-
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[85px] w-auto"
295+
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[105px] w-auto"
295296
/>
296297
<Image
297298
src={raspberrypi}
298299
alt="raspberrypi"
299-
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[85px] w-auto"
300+
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[105px] w-auto"
300301
/>
301302
<Image
302303
src={riscv}
303304
alt="risc-v"
304-
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[85px] w-auto"
305+
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[105px] w-auto"
305306
/>
306307
</div>
307308
</div>
@@ -314,41 +315,101 @@ core.write_8(0x2000_0000, &data)?;`,
314315
<p>
315316
We even have our own open-source probe to <a
316317
href="https://github.com/probe-rs/rusty-probe">build</a
317-
> or <a href="#" disabled>buy</a> (coming soon)
318+
> or <a href="https://shop.probe.rs">buy</a> (coming soon)
318319
</p>
319320
</div>
320321
<div class="col-span-2">
321322
<div class="flex flex-wrap min-h-[100px]">
322323
<Image
323324
src={cmsis}
324325
alt="cmsis"
325-
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[85px] w-auto"
326+
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[105px] w-auto"
326327
/>
327328
<Image
328329
src={jlink}
329330
alt="jlink"
330-
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[85px] w-auto"
331+
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[105px] w-auto"
331332
/>
332333
<Image
333334
src={stlink}
334335
alt="stlink"
335-
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[85px] w-auto"
336+
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[105px] w-auto"
336337
/>
337338
<Image
338339
src={ftdi}
339340
alt="ftdi"
340-
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[85px] w-auto"
341+
class="mt-[8px] mb-[8px] m-[8px] p-[10px] max-h-[105px] w-auto"
341342
/>
342343
</div>
343344
</div>
344345

345-
<h2 class="text-2lg mt-0 mb-2">How to contribute</h2>
346-
347-
Star the [repo on GitHub](https://github.com/probe-rs/probe-rs). Support
348-
this project by [sponsoring it](https://github.com/sponsors/probe-rs). Fork
349-
the repo and [contribute](https://github.com/probe-rs/probe-rs) fixing bugs,
350-
adding docs or tackling new features. Help to [improve the
351-
docs](https://docs.rs/probe-rs). Get help and discuss [on
352-
Matrix](https://matrix.to/#/#probe-rs:matrix.org).
346+
<div class="col-span-2">
347+
<h2 class="text-2lg mt-0 mb-2">How to contribute</h2>
348+
<ul class="list-none ml-0 pl-0">
349+
{
350+
[
351+
{
352+
i: "gh-star",
353+
n: (
354+
<>
355+
Star the{" "}
356+
<a href="https://github.com/probe-rs/probe-rs">
357+
repo on GitHub
358+
</a>
359+
.
360+
</>
361+
),
362+
},
363+
{
364+
i: "gh-sponsors",
365+
n: (
366+
<>
367+
Support this project by
368+
<a href="https://github.com/sponsors/probe-rs">
369+
sponsoring it
370+
</a>
371+
.
372+
</>
373+
),
374+
},
375+
{
376+
i: "icon-park-outline--fork",
377+
n: (
378+
<>
379+
Fork the repo and{" "}
380+
<a href="https://github.com/probe-rs/probe-rs">contribute</a>{" "}
381+
fixing bugs, adding docs or tackling new features.
382+
</>
383+
),
384+
},
385+
{
386+
i: "material-symbols--docs-outline",
387+
n: (
388+
<>
389+
Help to{" "}
390+
<a href="https://docs.rs/probe-rs">improve the docs</a>.
391+
</>
392+
),
393+
},
394+
{
395+
i: "chat",
396+
n: (
397+
<>
398+
Get help and discuss
399+
<a href="https://matrix.to/#/#probe-rs:matrix.org">
400+
on Matrix
401+
</a>
402+
.
403+
</>
404+
),
405+
},
406+
].map(({ i, n }) => (
407+
<li class="pl-0">
408+
<Icon name={i} class="inline -mt-0.5 mr-2 text-green" /> {n}
409+
</li>
410+
))
411+
}
412+
</ul>
413+
</div>
353414
</div>
354415
</Html>

0 commit comments

Comments
 (0)