swap home banners, 3s autoplay, animated rec scroll thumb
This commit is contained in:
@@ -23,22 +23,36 @@ type BannerSlide = {
|
||||
alt: string;
|
||||
};
|
||||
|
||||
const BANNERS_BASE = "/assets/ark-library/banners";
|
||||
|
||||
const BANNER_SLIDES: BannerSlide[] = [
|
||||
{
|
||||
id: "ark-banner-1",
|
||||
mobile: `${FIGMA_ASSET_BASE}/banner-mobile-1.png`,
|
||||
desktop: `${FIGMA_ASSET_BASE}/banner-desktop.png`,
|
||||
mobile: `${BANNERS_BASE}/banner-1.png`,
|
||||
desktop: `${BANNERS_BASE}/banner-1.png`,
|
||||
alt: "",
|
||||
},
|
||||
{
|
||||
id: "ark-banner-2",
|
||||
mobile: `${FIGMA_ASSET_BASE}/banner-375.png`,
|
||||
desktop: `${FIGMA_ASSET_BASE}/banner-wide.png`,
|
||||
mobile: `${BANNERS_BASE}/banner-2.png`,
|
||||
desktop: `${BANNERS_BASE}/banner-2.png`,
|
||||
alt: "",
|
||||
},
|
||||
{
|
||||
id: "ark-banner-3",
|
||||
mobile: `${BANNERS_BASE}/banner-3.png`,
|
||||
desktop: `${BANNERS_BASE}/banner-3.png`,
|
||||
alt: "",
|
||||
},
|
||||
{
|
||||
id: "ark-banner-4",
|
||||
mobile: `${BANNERS_BASE}/banner-4.png`,
|
||||
desktop: `${BANNERS_BASE}/banner-4.png`,
|
||||
alt: "",
|
||||
},
|
||||
];
|
||||
|
||||
const AUTOPLAY_MS = 5000;
|
||||
const AUTOPLAY_MS = 3000;
|
||||
const RESUME_AFTER_INTERACTION_MS = 8000;
|
||||
|
||||
export function FigmaBanner() {
|
||||
|
||||
Reference in New Issue
Block a user