update:sign in visibility
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
import type { ButtonHTMLAttributes } from 'react'
|
import type { ButtonHTMLAttributes } from 'react'
|
||||||
|
|
||||||
type Variant = 'primary' | 'ghost' | 'danger'
|
type Variant = 'primary' | 'ghost' | 'danger' | 'purple'
|
||||||
|
|
||||||
const variants: Record<Variant, string> = {
|
const variants: Record<Variant, string> = {
|
||||||
primary: 'bg-fg-100 text-bg-100 hover:bg-fg-200 font-medium',
|
primary: 'bg-fg-100 text-bg-100 hover:bg-fg-200 font-medium',
|
||||||
ghost: 'text-fg-200 hover:bg-bg-300 hover:text-fg-100',
|
ghost: 'text-fg-200 hover:bg-bg-300 hover:text-fg-100',
|
||||||
danger: 'bg-red-900/40 text-red-400 hover:bg-red-900/60',
|
danger: 'bg-red-900/40 text-red-400 hover:bg-red-900/60',
|
||||||
|
purple: 'bg-purple-500/15 text-purple-400 hover:bg-purple-500/25 hover:text-purple-300',
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { InfoIcon } from "../icons/info"
|
import { InfoIcon } from "../icons/info"
|
||||||
|
import { Button } from "./Button"
|
||||||
|
|
||||||
interface GuestBannerProps {
|
interface GuestBannerProps {
|
||||||
onLogin: () => void
|
onLogin: () => void
|
||||||
@@ -15,12 +16,9 @@ export function GuestBanner({ onLogin }: GuestBannerProps) {
|
|||||||
You're in guest mode — tickets are stored locally in your browser.
|
You're in guest mode — tickets are stored locally in your browser.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<Button onClick={onLogin} variant="primary">
|
||||||
onClick={onLogin}
|
|
||||||
className="ml-4 shrink-0 rounded-md bg-bg-300 px-3 py-1.5 text-xs font-medium text-fg-100 transition-colors hover:bg-bg-400 cursor-pointer"
|
|
||||||
>
|
|
||||||
Sign in with Google
|
Sign in with Google
|
||||||
</button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user