feat(site): implement dynamic client OS negotiation for Hero and CTA download buttons
This commit is contained in:
parent
4865387d7f
commit
55d03baf6b
5 changed files with 280 additions and 16 deletions
|
|
@ -3,6 +3,7 @@ import type { ReactNode } from 'react'
|
|||
interface GlowButtonProps {
|
||||
children: ReactNode
|
||||
href?: string
|
||||
download?: string
|
||||
variant?: 'primary' | 'secondary'
|
||||
size?: 'md' | 'lg'
|
||||
className?: string
|
||||
|
|
@ -11,6 +12,7 @@ interface GlowButtonProps {
|
|||
export function GlowButton({
|
||||
children,
|
||||
href,
|
||||
download,
|
||||
variant = 'primary',
|
||||
size = 'md',
|
||||
className = '',
|
||||
|
|
@ -31,7 +33,7 @@ export function GlowButton({
|
|||
|
||||
if (href) {
|
||||
return (
|
||||
<a href={href} className={cls}>
|
||||
<a href={href} download={download} className={cls}>
|
||||
<span className="relative z-10">{children}</span>
|
||||
</a>
|
||||
)
|
||||
|
|
@ -43,3 +45,4 @@ export function GlowButton({
|
|||
</button>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue