Merge pull request #6 from Retake-IT/dev

Major update
This commit is contained in:
Léo Nonnenmacher
2025-05-15 12:00:38 +02:00
committed by GitHub
3 changed files with 17 additions and 7 deletions

View File

@@ -3,5 +3,12 @@ module.exports = {
output: "standalone", output: "standalone",
images: { images: {
formats: ['image/webp', 'image/avif'], formats: ['image/webp', 'image/avif'],
remotePatterns: [
{
protocol: 'https',
hostname: 'img.leboncoin.fr',
port: '',
}
]
}, },
}; };

View File

@@ -1,5 +1,6 @@
import { Container } from "@/components/Container"; import { Container } from "@/components/Container";
import Products from "@/components/products"; import Products from "@/components/products";
import Image from "next/image";
export default function ArticlesPage() { export default function ArticlesPage() {
return ( return (
@@ -10,10 +11,12 @@ export default function ArticlesPage() {
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8"> <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8">
{Products.map((article, index) => ( {Products.map((article, index) => (
<div key={index} className="bg-white p-6 rounded-lg shadow-lg dark:bg-trueGray-800"> <div key={index} className="bg-white p-6 rounded-lg shadow-lg dark:bg-trueGray-800">
<img <Image
src={article.imageUrl} src={article.imageUrl}
alt={article.title} alt={article.title}
className="w-full h-48 object-cover rounded-t-lg mb-4" className="w-full h-48 object-cover rounded-t-lg mb-4"
width={1200}
height={800}
/> />
<h2 className="text-xl font-semibold text-gray-800 mb-2 dark:text-white">{article.title}</h2> <h2 className="text-xl font-semibold text-gray-800 mb-2 dark:text-white">{article.title}</h2>
<p className="text-gray-600 mb-4 dark:text-grey-200">{article.description}</p> <p className="text-gray-600 mb-4 dark:text-grey-200">{article.description}</p>

View File

@@ -29,8 +29,8 @@ export const Hero = () => {
</div> </div>
<div className="flex items-center justify-center w-full lg:w-1/2"> <div className="flex items-center justify-center w-full lg:w-1/2">
<div className=""> <div className="">
<img src="/img/nature.png" width="616" height="617" alt="Hero Illustration" loading="eager"></img> {/* <img src="/img/nature.png" width="616" height="617" alt="Hero Illustration" loading="eager"></img> */}
{/* <Image <Image
src={heroImg} src={heroImg}
width="616" width="616"
height="617" height="617"
@@ -38,7 +38,7 @@ export const Hero = () => {
alt="Hero Illustration" alt="Hero Illustration"
loading="eager" loading="eager"
placeholder="blur" placeholder="blur"
/> */} />
</div> </div>
</div> </div>
</Container> </Container>