✨ More style changes, removed test projects, favicon
Some checks failed
Build and deploy website / build (push) Failing after 22s
Some checks failed
Build and deploy website / build (push) Failing after 22s
- Fix missing aria-labels - Fix breadcrumbs on specific projects - Removed uses from NavBar - Center image on project page - Colour link on project page - Initial README Signed-off-by: Martin Berg Alstad <git@martials.no>
This commit is contained in:
@ -8,12 +8,28 @@ interface Props extends MyLink {
|
||||
}
|
||||
|
||||
const { title, message, url, icon, class: clazz } = Astro.props
|
||||
const iconStyle = "w-6 h-6"
|
||||
console.log(icon)
|
||||
---
|
||||
|
||||
<ExternalLink href={url} noStyle>
|
||||
<div class:list={["card bg-base-300", clazz]}>
|
||||
<div class="card-body p-5 flex flex-row items-center">
|
||||
<PajamasIcon name={icon ?? "pajamas:link"} class="w-6 h-6" />
|
||||
{
|
||||
icon ? (
|
||||
<PajamasIcon
|
||||
name={icon.src}
|
||||
class={iconStyle}
|
||||
aria-label={icon.alt}
|
||||
/>
|
||||
) : (
|
||||
<PajamasIcon
|
||||
name={"pajamas:link"}
|
||||
class={iconStyle}
|
||||
aria-label="Link icon"
|
||||
/>
|
||||
)
|
||||
}
|
||||
<div>
|
||||
<h5 class="card-title">{title}</h5>
|
||||
<p class="prose">{message}</p>
|
||||
|
Reference in New Issue
Block a user