Compare commits

...

4 Commits

Author SHA1 Message Date
kudinDmitriyUp
c478660d98 feat: Add 3D effect to buttons 2026-05-07 18:46:42 +00:00
14eaacf469 Merge version_11_1778179203177 into main
Merge version_11_1778179203177 into main
2026-05-07 18:42:05 +00:00
kudinDmitriyUp
f65d93dd8a feat: Make carousel images smaller 2026-05-07 18:41:31 +00:00
f8c2be7a03 Merge version_10_1778179084910 into main
Merge version_10_1778179084910 into main
2026-05-07 18:39:18 +00:00
2 changed files with 4 additions and 18 deletions

View File

@@ -56,7 +56,7 @@ const HeroBillboardCarousel = ({
<div className="w-content-width mx-auto overflow-hidden mask-fade-x">
<div className="flex w-max animate-marquee-horizontal" style={{ animationDuration: "60s" }}>
{duplicated.map((item, i) => (
<div key={i} className="shrink-0 w-60 md:w-75 2xl:w-80 aspect-4/5 mr-3 md:mr-5 p-1.5 card rounded-lg overflow-hidden">
<div key={i} className="shrink-0 w-40 md:w-50 2xl:w-60 aspect-4/5 mr-3 md:mr-5 p-1.5 card rounded-lg overflow-hidden">
<ImageOrVideo
imageSrc={item.imageSrc}
videoSrc={item.videoSrc}

View File

@@ -1,6 +1,5 @@
"use client";
import { motion } from "motion/react";
import { useButtonClick } from "@/hooks/useButtonClick";
import { cls } from "@/lib/utils";
import { useStyle } from "@/components/ui/useStyle";
@@ -23,31 +22,18 @@ interface ButtonProps {
className?: string;
}
const DefaultButton = ({ text, variant = "primary", href = "#", onClick, animate = true, animationDelay = 0, className = "" }: ButtonProps) => {
const DefaultButton = ({ text, variant = "primary", href = "#", onClick, className = "" }: ButtonProps) => {
const handleClick = useButtonClick(href, onClick);
const button = (
return (
<a
href={href}
onClick={handleClick}
className={cls("flex items-center justify-center h-9 px-6 text-sm rounded cursor-pointer", variant === "primary" ? "primary-button text-primary-cta-text" : "secondary-button text-secondary-cta-text", className)}
className={cls("flex items-center justify-center h-9 px-6 text-sm rounded cursor-pointer transform transition-transform duration-200 hover:scale-105 active:scale-95", variant === "primary" ? "primary-button text-primary-cta-text shadow-[0_4px_0_0_rgba(0,0,0,0.2)] hover:shadow-[0_6px_0_0_rgba(0,0,0,0.2)] active:shadow-[0_2px_0_0_rgba(0,0,0,0.2)]" : "secondary-button text-secondary-cta-text shadow-[0_4px_0_0_rgba(0,0,0,0.2)] hover:shadow-[0_6px_0_0_rgba(0,0,0,0.2)] active:shadow-[0_2px_0_0_rgba(0,0,0,0.2)]", className)}
>
{text}
</a>
);
if (!animate) return button;
return (
<motion.div
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.6, delay: animationDelay, ease: "easeOut" }}
>
{button}
</motion.div>
);
};
const Button = (props: ButtonProps) => {