mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Ensure alt property is provided in image
This commit is contained in:
parent
ae7605ad4a
commit
eb17632154
4 changed files with 5 additions and 5 deletions
|
|
@ -10,6 +10,6 @@ import GuraGif from '../img/assets/doggo-thumbs-up.gif'
|
||||||
<BaseLayout>
|
<BaseLayout>
|
||||||
<div class='flex flex-1 flex-col bg-soc-green-dark py-6'>
|
<div class='flex flex-1 flex-col bg-soc-green-dark py-6'>
|
||||||
<div class='text-md` text-center'>Something went wrong.... yubi yubi</div>
|
<div class='text-md` text-center'>Something went wrong.... yubi yubi</div>
|
||||||
<Image src={GuraGif} alt='Gawr Gura roomba' class='size-80 mx-auto mt-4' />
|
<Image src={GuraGif} alt='' class='size-80 mx-auto mt-4' />
|
||||||
</div>
|
</div>
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
|
|
|
||||||
|
|
@ -287,7 +287,7 @@ const coverImage = await getImage({
|
||||||
width={130}
|
width={130}
|
||||||
height={50}
|
height={50}
|
||||||
style={{ height: 'auto', width: '130px' }}
|
style={{ height: 'auto', width: '130px' }}
|
||||||
alt={provider}
|
alt={provider ?? 'Store icon'}
|
||||||
src={`/img/provider/${provider}.jpg`}
|
src={`/img/provider/${provider}.jpg`}
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -317,7 +317,7 @@ const coverImage = await getImage({
|
||||||
class='rounded-md'
|
class='rounded-md'
|
||||||
width={30}
|
width={30}
|
||||||
height={30}
|
height={30}
|
||||||
alt={provider}
|
alt={provider ?? 'Provider'}
|
||||||
src={`/img/provider/${provider}.png`}
|
src={`/img/provider/${provider}.png`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ export const POST: APIRoute = async ({ request, locals }) => {
|
||||||
|
|
||||||
let body
|
let body
|
||||||
try {
|
try {
|
||||||
const formData = await parseForm(request)
|
const formData = await parseForm(await request.formData())
|
||||||
body = s.create(formData, DeleteAlbum)
|
body = s.create(formData, DeleteAlbum)
|
||||||
await prismaClient.albums.findUniqueOrThrow({ where: { id: body.albumId }, select: { id: true } })
|
await prismaClient.albums.findUniqueOrThrow({ where: { id: body.albumId }, select: { id: true } })
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,6 @@ import GuraGif from '../img/assets/doggo-thumbs-up.gif'
|
||||||
>our Discord Server</a
|
>our Discord Server</a
|
||||||
> for updates
|
> for updates
|
||||||
</div>
|
</div>
|
||||||
<Image src={GuraGif} alt='Gawr Gura roomba' class='size-80 mx-auto mt-4' />
|
<Image src={GuraGif} alt='' class='size-80 mx-auto mt-4' />
|
||||||
</div>
|
</div>
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue