From e00f75fc9601b1e6a6db90fe038197810af51875 Mon Sep 17 00:00:00 2001 From: Daniele Tortora Date: Sun, 15 Dec 2024 09:42:59 +0100 Subject: [PATCH] fix: img carousel and add snyk svg --- assets/svg/snyk.svg | 20 +++++++++++ .../views/home-page/company-carousel.vue | 3 +- utils/carousel.ts | 33 +++++++++---------- 3 files changed, 38 insertions(+), 18 deletions(-) create mode 100644 assets/svg/snyk.svg diff --git a/assets/svg/snyk.svg b/assets/svg/snyk.svg new file mode 100644 index 0000000..853dbdf --- /dev/null +++ b/assets/svg/snyk.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/components/views/home-page/company-carousel.vue b/components/views/home-page/company-carousel.vue index d71d298..d95bba2 100644 --- a/components/views/home-page/company-carousel.vue +++ b/components/views/home-page/company-carousel.vue @@ -20,7 +20,8 @@ > diff --git a/utils/carousel.ts b/utils/carousel.ts index 371d44e..8d11446 100644 --- a/utils/carousel.ts +++ b/utils/carousel.ts @@ -12,44 +12,43 @@ import OvoLogo from "~/assets/svg/ovo.svg"; import TrayLogo from "~/assets/svg/tray.svg"; import HackneyLogo from "~/assets/svg/hackney.svg"; import Frontiers from "~/assets/svg/frontiers.svg"; +import Snyk from "~/assets/svg/snyk.svg"; export const useCarousel = () => { type CarouselItem = { id: string; component: any; - className: string; }; const carousel = reactive([ { - id: "Tundra", - className: "text-primary w-[11rem]", - component: markRaw(TundraLogo as unknown as DefineComponent), + id: "Hackney", + component: markRaw(HackneyLogo as unknown as DefineComponent), }, { - id: "Meta", - className: "text-primary w-[11rem]", - component: markRaw(MetaLogo as unknown as DefineComponent), + id: "Ovo", + component: markRaw(OvoLogo as unknown as DefineComponent), }, { id: "Frontiers", - className: "text-primary w-[11rem]", component: markRaw(Frontiers as unknown as DefineComponent), }, { - id: "Ovo", - className: "text-primary w-[11rem]", - component: markRaw(OvoLogo as unknown as DefineComponent), + id: "Snyk", + component: markRaw(Snyk as unknown as DefineComponent), }, { - id: "Tray", - className: "text-primary w-[11rem]", - component: markRaw(TrayLogo as unknown as DefineComponent), + id: "Meta", + component: markRaw(MetaLogo as unknown as DefineComponent), }, { - id: "Hackney", - className: "text-primary w-[11rem]", - component: markRaw(HackneyLogo as unknown as DefineComponent), + id: "Tundra", + component: markRaw(TundraLogo as unknown as DefineComponent), + }, + + { + id: "Tray", + component: markRaw(TrayLogo as unknown as DefineComponent), }, ]);