Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit f95bc860 authored by Plumtree3D's avatar Plumtree3D
Browse files

resolved: hard coded path and missing space

parent 6f35c672
No related branches found
No related tags found
1 merge request!78Draft: Resolve "(component) why froggit on index"
Pipeline #8202 passed
......@@ -2,30 +2,30 @@ import React from "react";
import clsx from "clsx";
import Why from "./Why";
const imgPath = "img/components/HomepageWhy/";
const WhyList = [
{
id: 1,
title: "Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression.",
icon: "logo_froggit.svg",
icon: imgPath+"logo_froggit.svg",
alt: ""
},
{
id: 2,
title: "Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression.",
icon: "logo_froggit.svg",
icon: imgPath+"logo_froggit.svg",
alt: ""
},
{
id: 3,
title: "Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression.",
icon: "logo_froggit.svg",
icon: imgPath+"logo_froggit.svg",
alt: ""
},
{
id: 4,
title: "Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression.",
icon: "logo_froggit.svg",
icon: imgPath+"logo_froggit.svg",
alt: ""
}
];
......@@ -38,8 +38,8 @@ export default function HomepageWhy() {
<p className={"text--center"}> Parce que collaborer autour du code, cest bien plus que coder.
</p>
<section className="sections container">
<p className={"text--center homepageWhy_title"}>Pour mener à bien un projet, vous avez plusieurs choix :
</p>
<p className={"text--center homepageWhy_title"}>Pour mener à bien un projet, vous avez plusieurs choix :
</p>
<div className="row">
{WhyList.map((props, idx) => (
<Why key={idx} {...props} />
......
......@@ -5,7 +5,7 @@ import useBaseUrl from "@docusaurus/useBaseUrl";
export default function Why({title, icon, alt}) {
return (
<div className="col col--6 text--center padding-horiz--lg">
<img src={useBaseUrl("img/components/HomepageWhy/")+icon} className="why_img" alt={alt}/>
<img src={useBaseUrl(icon)} className="why_img" alt={alt}/>
<p> {title} </p>
</div>
);
......
......@@ -36,7 +36,7 @@ export default function Home() {
<main>
<HomepagePromises />
<HomepageFeatures />
<CarouselLibre/>
<CarouselLibre />
<HomepageWhy />
</main>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment