ajout des images sur les services
This commit is contained in:
parent
9737caff99
commit
cdb70ca5ea
7 changed files with 19 additions and 2 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import Image from "next/image";
|
||||
|
||||
async function GetServices() {
|
||||
const res = await fetch(`${process.env.BACKEND_URL}/services`, {
|
||||
cache: process.env.CACHE
|
||||
|
|
@ -19,7 +21,15 @@ export default async function Services() {
|
|||
<ul className="grid-3">
|
||||
{services.map((service: any) => (
|
||||
<li key={service.id} className="service-card card feature">
|
||||
<span className="feature__icon" aria-hidden="true"></span>
|
||||
<div className="feature__icon" aria-hidden="true">
|
||||
<Image
|
||||
src={service.img}
|
||||
alt={service.name}
|
||||
fill
|
||||
sizes="40px"
|
||||
style={{ objectFit: "cover" }}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<h3 className="feature__title">{service.name}</h3>
|
||||
{"description" in service && service.description ? (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue