feat: images locales avec composant Image Astro (WebP auto-optimisé)
Build & Deploy / build-push-deploy (push) Failing after 2s
Build & Deploy / build-push-deploy (push) Failing after 2s
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
---
|
||||
import { Image } from 'astro:assets';
|
||||
import gallery1 from '../assets/images/gallery_1.jpg';
|
||||
---
|
||||
|
||||
<section id="about" class="py-32 scroll-mt-20">
|
||||
<div class="max-w-6xl mx-auto px-6">
|
||||
<div class="grid md:grid-cols-2 gap-16 items-center">
|
||||
@@ -35,8 +40,8 @@
|
||||
</div>
|
||||
|
||||
<div class="relative">
|
||||
<img
|
||||
src="/src/assets/images/facade.jpg"
|
||||
<Image
|
||||
src={gallery1}
|
||||
alt="Intérieur du gîte"
|
||||
class="w-full h-[500px] object-cover rounded-sm object-center"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user