Skip to content

Commit 62d596b

Browse files
committed
feat: tools show images
1 parent 445e598 commit 62d596b

File tree

5 files changed

+61
-6
lines changed

5 files changed

+61
-6
lines changed

src/pages/tools/chmod.astro

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22
import Layout from "@/layouts/Layout.astro";
33
import Breadcrumb from "@/components/Breadcrumb.astro";
44
import Ending from "@/components/Ending.astro";
5+
import { Image } from "astro:assets";
56
67
import ChmodCalculator from "@/components/ChmodCalculator.svelte";
7-
import chmodImage from "@/images/chmod.png";
8+
import thumbImage from "@/images/chmod.png";
89
---
910

10-
<Layout suffix="Tools" title="FireIsTools - Chmod Calculator" description="A chmod calculator" image={chmodImage.src}>
11+
<Layout suffix="Tools" title="FireIsTools - Chmod Calculator" description="A chmod calculator" image={thumbImage.src}>
1112
<Breadcrumb />
1213
<article>
1314
<header>
15+
<div class="cover">
16+
<Image width={1920} height={960} src={thumbImage} alt="" loading="eager" />
17+
</div>
1418
<h1>Chmod Calculator</h1>
1519
<p><em>A calculator to help change the permissions of files on Linux</em></p>
1620
</header>
@@ -73,6 +77,13 @@ import chmodImage from "@/images/chmod.png";
7377
</Layout>
7478

7579
<style>
80+
.cover {
81+
margin-bottom: var(--pico-spacing);
82+
}
83+
.cover img {
84+
max-height: 80vh;
85+
}
86+
7687
header {
7788
margin: 0;
7889
padding: 0;

src/pages/tools/dvd-bounce-tool.astro

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
import Layout from "@/layouts/Layout.astro";
33
import Breadcrumb from "@/components/Breadcrumb.astro";
44
import Ending from "@/components/Ending.astro";
5+
import { Image } from "astro:assets";
56
67
import DvdBouncer from "@/components/DvdBouncer.svelte";
7-
import dvdBouncerImage from "@/images/dvdbouncer.png";
8+
import thumbImage from "@/images/dvdbouncer.png";
89
910
import { Code } from "astro-expressive-code/components";
1011
import bouncerMarquee from "@/misc/dvdbouncer-marquee.html?raw";
@@ -15,10 +16,13 @@ import bouncerAnimation from "@/misc/dvdbouncer-animation.html?raw";
1516
suffix="Tools"
1617
title="FireIsTools - DVD Bouncer Tool"
1718
description="Generate DVD bouncers"
18-
image={dvdBouncerImage.src}
19+
image={thumbImage.src}
1920
>
2021
<Breadcrumb />
2122
<article>
23+
<div class="cover">
24+
<Image width={1920} height={960} src={thumbImage} alt="" loading="eager" />
25+
</div>
2226
<header>
2327
<h1>DVD Bounce Thing</h1>
2428
<p><em>A DVD <abbr title="this is not a real word">Bouncer</abbr> thing. Because funny.</em></p>
@@ -59,6 +63,13 @@ import bouncerAnimation from "@/misc/dvdbouncer-animation.html?raw";
5963
</Layout>
6064

6165
<style>
66+
.cover {
67+
margin-bottom: var(--pico-spacing);
68+
}
69+
.cover img {
70+
max-height: 80vh;
71+
}
72+
6273
header {
6374
margin: 0;
6475
padding: 0;

src/pages/tools/javascript-terminal.astro

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,23 @@ import Layout from "@/layouts/Layout.astro";
33
import Breadcrumb from "@/components/Breadcrumb.astro";
44
import Ending from "@/components/Ending.astro";
55
import Terminal from "@/components/JavascriptTerminal.svelte";
6+
import { Image } from "astro:assets";
67
7-
import jsImage from "@/images/js-terminal.png";
8+
import thumbImage from "@/images/js-terminal.png";
89
---
910

1011
<Layout
1112
suffix="Tools"
1213
title="FireIsTools - JavaScript Terminal"
1314
description="A JavaScript terminal"
14-
image={jsImage.src}
15+
image={thumbImage.src}
1516
>
1617
<Breadcrumb />
1718
<article>
1819
<header>
20+
<div class="cover">
21+
<Image width={1920} height={960} src={thumbImage} alt="" loading="eager" />
22+
</div>
1923
<h1>JavaScript Terminal</h1>
2024
<p><em>A basic JavaScript REPL</em></p>
2125
</header>
@@ -49,6 +53,13 @@ import jsImage from "@/images/js-terminal.png";
4953
</Layout>
5054

5155
<style>
56+
.cover {
57+
margin-bottom: var(--pico-spacing);
58+
}
59+
.cover img {
60+
max-height: 80vh;
61+
}
62+
5263
header {
5364
margin: 0;
5465
padding: 0;

src/pages/tools/random-number-generator.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import Layout from "@/layouts/Layout.astro";
33
import Breadcrumb from "@/components/Breadcrumb.astro";
44
import Ending from "@/components/Ending.astro";
5+
import { Image } from "astro:assets";
56
67
import thumbImage from "@/images/random-number-generator.png";
78
---
@@ -15,6 +16,9 @@ import thumbImage from "@/images/random-number-generator.png";
1516
<Breadcrumb />
1617
<article>
1718
<header>
19+
<div class="cover">
20+
<Image width={1920} height={960} src={thumbImage} alt="" loading="eager" />
21+
</div>
1822
<h1>Random Number Generator</h1>
1923
<p><em>Random number generator</em></p>
2024
</header>
@@ -62,6 +66,13 @@ import thumbImage from "@/images/random-number-generator.png";
6266
</Layout>
6367

6468
<style>
69+
.cover {
70+
margin-bottom: var(--pico-spacing);
71+
}
72+
.cover img {
73+
max-height: 80vh;
74+
}
75+
6576
header {
6677
margin: 0;
6778
padding: 0;

src/pages/tools/svg-to-url.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Layout from "@/layouts/Layout.astro";
33
import Breadcrumb from "@/components/Breadcrumb.astro";
44
import Ending from "@/components/Ending.astro";
55
import SvgConverter from "@/components/SvgConverter.svelte";
6+
import { Image } from "astro:assets";
67
78
import thumbImage from "@/images/svg-to-url.png";
89
---
@@ -11,6 +12,9 @@ import thumbImage from "@/images/svg-to-url.png";
1112
<Breadcrumb />
1213
<article>
1314
<header>
15+
<div class="cover">
16+
<Image width={1920} height={960} src={thumbImage} alt="" loading="eager" />
17+
</div>
1418
<h1>SVG to URL</h1>
1519
<p><em>Converts SVGs to Data URLs</em></p>
1620
</header>
@@ -37,6 +41,13 @@ import thumbImage from "@/images/svg-to-url.png";
3741
</Layout>
3842

3943
<style>
44+
.cover {
45+
margin-bottom: var(--pico-spacing);
46+
}
47+
.cover img {
48+
max-height: 80vh;
49+
}
50+
4051
header {
4152
margin: 0;
4253
padding: 0;

0 commit comments

Comments
 (0)