-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from micbelgique/sprint5.1
- Loading branch information
Showing
16 changed files
with
79 additions
and
75 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/MIC/Assets/.MeshCloudScripting/MIC-Maquette/bin/Debug/net6.0/MIC-Maquette.dll
Git LFS file not shown
2 changes: 1 addition & 1 deletion
2
src/MIC/Assets/.MeshCloudScripting/MIC-Maquette/bin/Debug/net6.0/MIC-Maquette.exe
Git LFS file not shown
2 changes: 1 addition & 1 deletion
2
src/MIC/Assets/.MeshCloudScripting/MIC-Maquette/bin/publish/MIC-Maquette.dll
Git LFS file not shown
2 changes: 1 addition & 1 deletion
2
src/MIC/Assets/.MeshCloudScripting/MIC-Maquette/bin/publish/MIC-Maquette.exe
Git LFS file not shown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/.MeshCloudScripting/MIC-Maquette/obj/Debug/net6.0/MIC-Maquette.AssemblyInfoInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
87029511cf4881d3f607628a605fa7ebc35d244f622a2da778c61a895cf52b86 | ||
1164b779cd76f384a5900fa39f5d2d7cec78365be139d286b6e6a63e33e5f677 |
2 changes: 1 addition & 1 deletion
2
src/MIC/Assets/.MeshCloudScripting/MIC-Maquette/obj/Debug/net6.0/MIC-Maquette.dll
Git LFS file not shown
2 changes: 1 addition & 1 deletion
2
...MIC/Assets/.MeshCloudScripting/MIC-Maquette/obj/Debug/net6.0/MIC-Maquette.sourcelink.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"documents":{"C:\\Users\\Thoma\\Desktop\\Mesh-Innovate-Connect\\*":"https://raw.githubusercontent.com/micbelgique/Mesh-Innovate-Connect/fa4472f04a5b02aa777c13c40cada26461633974/*"}} | ||
{"documents":{"C:\\Users\\Thoma\\Desktop\\Mesh-Innovate-Connect\\*":"https://raw.githubusercontent.com/micbelgique/Mesh-Innovate-Connect/3b60902868e54d3733d35585b4cd2b5258c44599/*"}} |
2 changes: 1 addition & 1 deletion
2
src/MIC/Assets/.MeshCloudScripting/MIC-Maquette/obj/Debug/net6.0/apphost.exe
Git LFS file not shown
2 changes: 1 addition & 1 deletion
2
src/MIC/Assets/.MeshCloudScripting/MIC-Maquette/obj/Debug/net6.0/ref/MIC-Maquette.dll
Git LFS file not shown
2 changes: 1 addition & 1 deletion
2
src/MIC/Assets/.MeshCloudScripting/MIC-Maquette/obj/Debug/net6.0/refint/MIC-Maquette.dll
Git LFS file not shown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
import React, { useState, useEffect } from 'react'; | ||
|
||
function Carousel({ imagesUrls }: { imagesUrls: string[] }) { | ||
const [currentImageIndex, setCurrentImageIndex] = useState<number>(0); | ||
const [currentImageIndex, setCurrentImageIndex] = useState<number>(0); | ||
|
||
useEffect(() => { | ||
const intervalId = setInterval(() => { | ||
setCurrentImageIndex(prevIndex => | ||
prevIndex === imagesUrls.length - 1 ? 0 : prevIndex + 1 | ||
); | ||
}, 30000); | ||
useEffect(() => { | ||
const intervalId = setInterval(() => { | ||
setCurrentImageIndex(prevIndex => | ||
prevIndex === imagesUrls.length - 1 ? 0 : prevIndex + 1 | ||
); | ||
}, 30000); | ||
|
||
return () => clearInterval(intervalId); | ||
}, [imagesUrls.length]); | ||
return () => clearInterval(intervalId); | ||
}, [imagesUrls.length]); | ||
|
||
return ( | ||
<div> | ||
<div className="images" > | ||
{imagesUrls.map((imageUrl, index) => ( | ||
<img | ||
key={index} | ||
src={imageUrl} | ||
alt={`Image ${index}`} | ||
style={{ display: index === currentImageIndex ? 'block' : 'none'}} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
return ( | ||
<div className="fixed inset-0 flex items-center justify-center overflow-hidden"> | ||
<div className="absolute inset-0 z-10"> | ||
{imagesUrls.map((imageUrl, index) => ( | ||
<img | ||
key={index} | ||
src={imageUrl} | ||
alt={`Image ${index}`} | ||
className={`absolute inset-0 w-full h-full object-cover ${index === currentImageIndex ? 'block' : 'hidden'}`} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Carousel; | ||
export default Carousel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters