Fix localization on detailed project pages.
All checks were successful
Build and deploy website / build (push) Successful in 34s
All checks were successful
Build and deploy website / build (push) Successful in 34s
Fix way too much padding on <br/> tags. Added some old project entries. Added Project as a convenience type. Added link class to all a tags to easier distinguish links in text. Signed-off-by: Martin Berg Alstad <git@martials.no>
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
import { Image } from "astro:assets"
|
||||
import { type ImageMetadata } from "astro"
|
||||
import BadgeList from "../badge/BadgeList.astro"
|
||||
import LocaleLink from "../links/LocaleLink.astro"
|
||||
import { type NavLink } from "@/utils/linking"
|
||||
|
||||
interface Props {
|
||||
title: string
|
||||
@ -9,14 +11,14 @@ interface Props {
|
||||
tags: string[]
|
||||
image: ImageMetadata
|
||||
imageAlt: string
|
||||
linkTo: string
|
||||
linkTo: NavLink
|
||||
}
|
||||
|
||||
const { title, description, tags, image, imageAlt, linkTo } = Astro.props
|
||||
---
|
||||
|
||||
<a
|
||||
href={linkTo}
|
||||
<LocaleLink
|
||||
to={linkTo}
|
||||
class="card bg-base-100 max-w-96 shadow-xl hover:scale-105 transition"
|
||||
>
|
||||
<figure>
|
||||
@ -29,4 +31,4 @@ const { title, description, tags, image, imageAlt, linkTo } = Astro.props
|
||||
<p>{description}</p>
|
||||
<BadgeList tags={tags} />
|
||||
</div>
|
||||
</a>
|
||||
</LocaleLink>
|
||||
|
Reference in New Issue
Block a user