Some corrections with types and undeleted file
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 18m1s

This commit is contained in:
2025-08-14 09:48:52 +09:30
parent 63e0e1fd28
commit 1f45a74b2a
19 changed files with 54 additions and 105 deletions

View File

@@ -1,8 +1,8 @@
---
import { getAllProjectImages } from '@lib/utils';
import Link from "@components/Link.astro";
import Paragraph from "@components/Paragraph.astro";
import TextLink from "@components/TextLink.astro";
import Token from "@components/Token.astro";
import { Icon } from "astro-icon/components";
import { Image } from "astro:assets";
@@ -14,7 +14,7 @@ interface Props {
quality?: number;
}
const { project, textOn = "left", quality = "80" } = Astro.props as Props;
const { project, textOn = "left", quality = "80" } = Astro.props;
const images = getAllProjectImages(project);
@@ -130,7 +130,7 @@ const projectHasBody = project.body && project.body.trim().length > 0;
>
<span
><h2 class="font-header-alt inline-block text-lg font-semibold">
{projectHasBody && <Link href=`/projects/${project.id}/`>{project.data.title}</Link>}{!projectHasBody && project.data.title }{!project.data.ongoing && <span class="italic text-sm font-light"> ({project.data.date.getFullYear()})</span>}</h2></span
{projectHasBody && <TextLink href=`/projects/${project.id}/`>{project.data.title}</TextLink>}{!projectHasBody && project.data.title }{!project.data.ongoing && <span class="italic text-sm font-light"> ({project.data.date.getFullYear()})</span>}</h2></span
>
<h3 class="font-header-alt font-base font-medium">
{project.data.role}
@@ -143,9 +143,9 @@ const projectHasBody = project.body && project.body.trim().length > 0;
project.data.externalLinks !== undefined && (
<span class="relative order-3 ml-auto flex w-full items-start justify-start space-x-2 text-xl">
{project.data.externalLinks.map((link, index) => (
<Link href={link.href} includeExternalLinkIcon={false} aria-label={link.name}>
<TextLink href={link.href} includeExternalLinkIcon={false} aria-label={link.name}>
<Icon name={link.icon} />
</Link>
</TextLink>
))}
</span>
)