diff --git a/package-lock.json b/package-lock.json index c0c9ca4..005aa6b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3115,9 +3115,10 @@ } }, "node_modules/axios": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", - "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", + "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", + "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", diff --git a/src/app/modules/carousels/cardBuilder.tsx b/src/app/modules/carousels/cardBuilder.tsx index 95b565e..cede903 100644 --- a/src/app/modules/carousels/cardBuilder.tsx +++ b/src/app/modules/carousels/cardBuilder.tsx @@ -27,13 +27,15 @@ export default function CarouselCard({ description, link, linkText, + titleLink, }: { id: number, title: string, image: string, description: string, link: string, - linkText: string + linkText: string, + titleLink: string }): React.JSX.Element { return (
-{description}
diff --git a/src/app/modules/carousels/carousel.json b/src/app/modules/carousels/carousel.json index c25b065..7244ca1 100644 --- a/src/app/modules/carousels/carousel.json +++ b/src/app/modules/carousels/carousel.json @@ -2,14 +2,16 @@ { "id": 1, "title": "Analytical Tasks and Leaderboards", + "titleLink": "/analyses", "description": "Test your algorithms against predefined tasks and compare how it performs with others in your field", "image": "/static/assets/profilecovers/kittens.jpg", - "link": "/analyses", + "link": "/register", "linkText": "Sign Up Now" }, { "id": 2, "title": "Resources", + "titleLink": "/resources", "description": "For information about how to contribute to the validation hub", "image": "/static/assets/profilecovers/pupper.jpg", "link": "/resources", diff --git a/src/app/modules/carousels/carouselBuilder.tsx b/src/app/modules/carousels/carouselBuilder.tsx index 17e0be6..684d591 100644 --- a/src/app/modules/carousels/carouselBuilder.tsx +++ b/src/app/modules/carousels/carouselBuilder.tsx @@ -24,6 +24,7 @@ type Slide = { description: string, link: string, linkText: string, + titleLink: string, } type PropType = { @@ -56,6 +57,7 @@ const EmblaCarousel: React.FC