%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/rezakur1/www/portfolio/portfolio-rezakurnia/agenceX-1.0.0/src/components/shared/
Upload File :
Create Path :
Current File : /home2/rezakur1/www/portfolio/portfolio-rezakurnia/agenceX-1.0.0/src/components/shared/Button.astro

---
export interface Props{
    className?:string,
    variant:"primary"|"secondary"
}

const {className, variant} = Astro.props

const getThemeStyle = (variant:"primary"|"secondary")=>{
    if (variant === "primary") {
        return "bg-primary text-white border-transparent after:bg-[#172554] hover:border-[#172554]"
    }
    return "text-primary border-primary/40 after:bg-primary hover:border-primary"
}


---
<button class={`px-6 py-3 rounded-full outline-none relative isolate overflow-hidden border duration-300 ease-linear
                    after:absolute after:inset-x-0 after:aspect-square after:scale-0 after:opacity-80 after:origin-center after:duration-300 after:ease-linear after:rounded-full after:top-0 after:left-0 after:z-0
                    ${getThemeStyle(variant)} hover:after:opacity-100 hover:after:scale-[2.5] ${className}`}>
    <span class="relative z-10"><slot/></span>
</button>

Zerion Mini Shell 1.0