mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
refactor: remove foreground variant from button, make it default
This commit is contained in:
@@ -514,7 +514,6 @@ function NewProjectButton() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
variant="foreground"
|
|
||||||
size="lg"
|
size="lg"
|
||||||
className="flex px-5 md:px-6"
|
className="flex px-5 md:px-6"
|
||||||
onClick={handleCreateProject}
|
onClick={handleCreateProject}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export function MobileGate({ children }: MobileGateProps) {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
<Button variant="foreground" onClick={handleContinue}>
|
<Button onClick={handleContinue}>
|
||||||
Take a look anyway
|
Take a look anyway
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="ghost" asChild>
|
<Button variant="ghost" asChild>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export function GitHubContributeSection({
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
<Button variant="foreground" className="w-full" size="lg">
|
<Button className="w-full" size="lg">
|
||||||
<HugeiconsIcon icon={GithubIcon} />
|
<HugeiconsIcon icon={GithubIcon} />
|
||||||
Start contributing
|
Start contributing
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ export function Header() {
|
|||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
<Link href="/projects">
|
<Link href="/projects">
|
||||||
<Button variant="foreground" className="text-sm">
|
<Button className="text-sm">
|
||||||
Projects
|
Projects
|
||||||
<ArrowRight className="size-4" />
|
<ArrowRight className="size-4" />
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -29,12 +29,7 @@ export function Hero() {
|
|||||||
|
|
||||||
<div className="mt-8 flex justify-center gap-8">
|
<div className="mt-8 flex justify-center gap-8">
|
||||||
<Link href="/projects">
|
<Link href="/projects">
|
||||||
<Button
|
<Button type="submit" size="lg" className="h-11 text-base">
|
||||||
variant="foreground"
|
|
||||||
type="submit"
|
|
||||||
size="lg"
|
|
||||||
className="h-11 text-base"
|
|
||||||
>
|
|
||||||
Try early beta
|
Try early beta
|
||||||
<ArrowRight className="ml-0.5" />
|
<ArrowRight className="ml-0.5" />
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -8,9 +8,8 @@ const buttonVariants = cva(
|
|||||||
{
|
{
|
||||||
variants: {
|
variants: {
|
||||||
variant: {
|
variant: {
|
||||||
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
default: "bg-foreground text-background hover:bg-foreground/90",
|
||||||
background: "bg-background text-foreground hover:bg-background/90",
|
background: "bg-background text-foreground hover:bg-background/90",
|
||||||
foreground: "bg-foreground text-background hover:bg-foreground/90",
|
|
||||||
destructive:
|
destructive:
|
||||||
"bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
"bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
||||||
"destructive-foreground":
|
"destructive-foreground":
|
||||||
|
|||||||
Reference in New Issue
Block a user