Skip to content

Commit

Permalink
fix: img carousel and add snyk svg
Browse files Browse the repository at this point in the history
  • Loading branch information
floroz committed Dec 15, 2024
1 parent 408cb5f commit e00f75f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 18 deletions.
20 changes: 20 additions & 0 deletions assets/svg/snyk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion components/views/home-page/company-carousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
>
<component
:is="carouselItem.component"
:class="carouselItem.className"
:font-controlled="false"
:width="176"
/>
</li>
</TransitionGroup>
Expand Down
33 changes: 16 additions & 17 deletions utils/carousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<CarouselItem[]>([
{
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),
},
]);

Expand Down

0 comments on commit e00f75f

Please sign in to comment.