Upgrade to Astro v5.10.0
All checks were successful
Docker / build-and-push-image (push) Successful in 1m27s
All checks were successful
Docker / build-and-push-image (push) Successful in 1m27s
This commit is contained in:
parent
24da21aa6f
commit
c1826e1d6b
9 changed files with 114 additions and 98 deletions
|
@ -74,7 +74,7 @@ if (article.data.extraAuthors && article.data.extraAuthors.length !== 0) {
|
|||
isPost ? (
|
||||
<>
|
||||
<Icon name="mdi:timer" />
|
||||
<p>{readingTime(article.body)}</p>
|
||||
<p>{readingTime(article.body)} mins</p>
|
||||
</>
|
||||
) : null
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ const { interval = 3000, images } = Astro.props;
|
|||
alt={`Slide ${index + 1}`}
|
||||
class="h-full w-full rounded-sm object-cover transition-all duration-300 group-hover:brightness-50"
|
||||
loading="eager"
|
||||
{...(index === 0 && { priority: true })}
|
||||
/>
|
||||
<div class="relative opacity-0 transition-all delay-100 duration-300 ease-in-out group-hover:opacity-100">
|
||||
<p class="absolute right-5 bottom-5 font-medium text-white">
|
||||
|
|
BIN
src/content/projects/a-long-way-down/250613_09-34-44.jpg
Normal file
BIN
src/content/projects/a-long-way-down/250613_09-34-44.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 202 KiB |
|
@ -30,6 +30,8 @@ A Long Way Down is a short, atmospheric linear adventure created alongside my fr
|
|||
<source src={alongwaydown_demo_walkthrough} type="video/webm" />
|
||||
</video>
|
||||
|
||||

|
||||
|
||||
<Gallery
|
||||
items={[
|
||||
{ src: image1, alt: "A Long Way Down Intro Showcase" },
|
||||
|
|
|
@ -10,7 +10,7 @@ export function readingTime(html: string) {
|
|||
const textOnly = html.replace(/<[^>]+>/g, "");
|
||||
const wordCount = textOnly.split(/\s+/).length;
|
||||
const readingTimeMinutes = (wordCount / 200 + 1).toFixed();
|
||||
return `${wordCount} words (${readingTimeMinutes} mins)`;
|
||||
return readingTimeMinutes;
|
||||
}
|
||||
|
||||
export function dateRange(startDate: Date, endDate?: Date | string): string {
|
||||
|
|
|
@ -24,11 +24,20 @@ const projects = [
|
|||
description:
|
||||
"A fast-paced first person shooter set following the realization that you’re all out of beans. The problem is, you’re nearing the end of cooking all the other items and you can’t just not have them. Without beans, the day just won’t be started off right.",
|
||||
tags: ["Godot", "Blender", "GIMP", "Steamworks"],
|
||||
link: "https://troylusty.com/projects/must-find-beans",
|
||||
link: "/projects/must-find-beans",
|
||||
done: false,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "Sinkie Soldiers",
|
||||
description:
|
||||
"Keep control of the castle, but more importantly: your armour.",
|
||||
tags: ["Unreal Engine", "Blender", "GIMP", "FL Studio", "Inkscape"],
|
||||
link: "/projects/sinkie-soldiers",
|
||||
done: true,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: "troylusty.com",
|
||||
description:
|
||||
"My personal website made using Astro as a way to show off my portfolio of work and display blog posts.",
|
||||
|
@ -43,21 +52,21 @@ const projects = [
|
|||
done: true,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
id: 4,
|
||||
name: "Artwork",
|
||||
description:
|
||||
"A collection of digital artwork created with a variety of tools.",
|
||||
tags: ["Blender", "Cinema 4D", "DaVinci Resolve"],
|
||||
link: "https://troylusty.com/projects",
|
||||
link: "/projects",
|
||||
done: true,
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
id: 5,
|
||||
name: "Packard",
|
||||
description:
|
||||
"Packard is a simple terminal based RSS aggregator meant to allow you to take a quick glance at what’s occurring in topics you care about.",
|
||||
tags: ["Rust", "Tokio", "Clap", "NixOS Flake"],
|
||||
link: "https://troylusty.com/projects/packard",
|
||||
link: "/projects/packard",
|
||||
done: true,
|
||||
},
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue