Skip to content

Commit 4ac8e92

Browse files
committed
feat(website): chrome metallic button styling
1 parent 620e388 commit 4ac8e92

4 files changed

Lines changed: 35 additions & 7 deletions

File tree

packages/website/src/components/FooterCTA.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ export function FooterCTA() {
1818
Get started in minutes
1919
</h2>
2020
<p className="mb-8 mx-auto max-w-lg text-base text-zinc-500 leading-relaxed">
21-
Install Secure Exec, create a runtime, and execute untrusted code — all in a few lines of TypeScript.
21+
Install Secure Exec, create a runtime, and execute untrusted code. All in a few lines of TypeScript.
2222
</p>
2323
<div className="flex flex-col gap-3 sm:flex-row justify-center">
2424
<a
2525
href="/docs"
26-
className="selection-dark inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md bg-white px-6 py-3 text-sm font-medium text-black transition-colors hover:bg-zinc-200"
26+
className="selection-dark inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md btn-chrome px-6 py-3 text-sm transition-all"
2727
>
2828
Read the Docs
2929
<ArrowRight className="h-4 w-4" />
@@ -32,7 +32,7 @@ export function FooterCTA() {
3232
href="https://github.com/rivet-dev/secure-exec"
3333
target="_blank"
3434
rel="noreferrer"
35-
className="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md border border-white/10 px-6 py-3 text-sm font-medium text-white transition-colors hover:border-white/20 hover:bg-white/[0.04]"
35+
className="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md btn-chrome-outline px-6 py-3 text-sm font-medium transition-all"
3636
>
3737
<svg className="w-5 h-5" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
3838
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />

packages/website/src/components/Hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const CopyInstallButton = () => {
216216
return (
217217
<button
218218
onClick={handleCopy}
219-
className="w-full sm:w-auto inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md border border-white/10 px-4 py-2 text-sm text-zinc-300 transition-colors hover:border-white/20 hover:text-white font-mono"
219+
className="w-full sm:w-auto inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md btn-chrome-outline px-4 py-2.5 text-sm transition-all font-mono"
220220
>
221221
{copied ? <Check className="h-4 w-4 text-green-400" /> : <Terminal className="h-4 w-4 flex-shrink-0" />}
222222
<span>{installCommand}</span>
@@ -321,7 +321,7 @@ export function Hero() {
321321
>
322322
<a
323323
href="/docs"
324-
className="selection-dark inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md bg-white px-5 py-2.5 text-sm font-medium text-black transition-colors hover:bg-zinc-200"
324+
className="selection-dark inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md btn-chrome px-5 py-2.5 text-sm transition-all"
325325
>
326326
Get Started
327327
<ArrowRight className="h-4 w-4" />

packages/website/src/components/ui/Button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export function Button({ children, variant = "primary", size = "md", href, onCli
1313
const baseStyles = "inline-flex items-center justify-center font-medium rounded-lg transition-all";
1414

1515
const variants = {
16-
primary: "bg-white text-black hover:bg-zinc-200",
17-
secondary: "bg-[#0f0f11] border border-white/10 text-white hover:bg-white/[0.06]",
16+
primary: "btn-chrome",
17+
secondary: "btn-chrome-outline",
1818
ghost: "text-zinc-400 hover:text-white",
1919
};
2020

packages/website/src/styles/global.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,34 @@
165165
pointer-events: none;
166166
}
167167

168+
.btn-chrome {
169+
background: linear-gradient(180deg, #e8e8e8 0%, #ffffff 15%, #b0b0b0 50%, #d8d8d8 65%, #888888 100%);
170+
color: #111;
171+
font-weight: 600;
172+
border: 1px solid rgba(255, 255, 255, 0.3);
173+
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
174+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
175+
}
176+
177+
.btn-chrome:hover {
178+
background: linear-gradient(180deg, #f0f0f0 0%, #ffffff 20%, #c0c0c0 50%, #e0e0e0 65%, #a0a0a0 100%);
179+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7);
180+
}
181+
182+
.btn-chrome-outline {
183+
background: linear-gradient(180deg, rgba(200,200,200,0.12) 0%, rgba(255,255,255,0.06) 50%, rgba(120,120,120,0.12) 100%);
184+
border: 1px solid;
185+
border-image: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.08)) 1;
186+
color: #d4d4d8;
187+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
188+
}
189+
190+
.btn-chrome-outline:hover {
191+
background: linear-gradient(180deg, rgba(200,200,200,0.18) 0%, rgba(255,255,255,0.10) 50%, rgba(120,120,120,0.18) 100%);
192+
border-image: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.12)) 1;
193+
color: #fff;
194+
}
195+
168196
.glow-accent {
169197
box-shadow: 0 0 20px rgba(204, 0, 0, 0.3);
170198
}

0 commit comments

Comments
 (0)