mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Home page
This commit is contained in:
parent
32ddb3324b
commit
fc39c085f0
3 changed files with 62 additions and 4 deletions
|
|
@ -2,7 +2,7 @@
|
|||
import { Image } from 'astro:assets'
|
||||
|
||||
type Props =
|
||||
| { title: string; href: string; image: string; loading?: false }
|
||||
| { title?: string | null; href: string; image: string; loading?: false }
|
||||
| { title?: string; href?: string; image?: string; loading: true }
|
||||
|
||||
const { props } = Astro
|
||||
|
|
@ -20,7 +20,7 @@ const { title, href, image, loading = false } = props
|
|||
</div>
|
||||
) : (
|
||||
<Image
|
||||
src={`https://cdn.sittingonclouds.net/${image}`}
|
||||
src={`https://cdn.sittingonclouds.net${image}`}
|
||||
alt={`${title} cover`}
|
||||
inferSize
|
||||
quality='low'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue