Skip to content

Commit ecc0c5d

Browse files
committed
fix svg
1 parent 1badec2 commit ecc0c5d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/components/Community.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ import discordIcon from '../assets/discord.svg';
55
import githubIcon from '../assets/github.svg';
66
import telegramIcon from '../assets/telegram.svg';
77
import npmIcon from '../assets/npm.svg';
8+
import community1 from '../assets/community1.jpg';
9+
import community2 from '../assets/community2.jpg';
10+
import community3 from '../assets/community3.jpg';
11+
import community4 from '../assets/community4.jpg';
12+
import community5 from '../assets/community5.jpg';
13+
import community6 from '../assets/community6.jpg';
14+
const communityImages = [community1, community2, community3, community4, community5, community6];
815

916
// Il serait bien d'avoir un composant Icône si vous en utilisez beaucoup et voulez gérer le hover de façon centralisée.
1017
// Pour l'instant, nous allons garder les <img>.
@@ -95,7 +102,7 @@ const Community: React.FC = () => {
95102
<div className="images" style={{animationDuration: '42s'}}>
96103
{[1,2,3,4,5,6,1,2,3,4,5,6].map((i,idx) => (
97104
<img
98-
src={`/community${i}.jpg`}
105+
src={communityImages[(i-1)%6]}
99106
alt={``}
100107
className="photo"
101108
key={"row1-"+idx}
@@ -109,7 +116,7 @@ const Community: React.FC = () => {
109116
<div className="images" style={{animationDuration: '60s'}}>
110117
{[6,5,4,3,2,1,6,5,4,3,2,1].map((i,idx) => (
111118
<img
112-
src={`/community${i}.jpg`}
119+
src={communityImages[(i-1)%6]}
113120
alt={``}
114121
className="photo"
115122
key={"row2-"+idx}

src/components/Features.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// src/components/Features.tsx
22
import React from "react";
3+
import card5 from '../assets/card5.svg';
34

45
interface FeatureCardProps {
56
title?: string;
@@ -97,7 +98,7 @@ const FeatureCard: React.FC<FeatureCardProps> = ({ title, description, className
9798
className={`${baseStyles} relative overflow-hidden flex flex-col items-end justify-end aspect-square w-full p-0 ${className || ''}`}
9899
style={{
99100
borderRadius: '30px', // Tailwind `rounded-[30px]` est prioritaire si appliqué au même élément
100-
backgroundImage: `url('/card5.svg')`, // Assurez-vous que le chemin est correct
101+
backgroundImage: `url(${card5})`, // Utilise l'import JS/TS
101102
backgroundSize: 'cover',
102103
backgroundRepeat: 'no-repeat',
103104
backgroundPosition: 'center',

0 commit comments

Comments
 (0)