Skip to content
TypeScript

feat(marketing): homepage looks like the app (#26960)

Theo Browne20497e48907c
diff --git a/apps/marketing/package.json b/apps/marketing/package.json
index 36dc282e89b..e37dd8fb7a8 100644
--- a/apps/marketing/package.json
+++ b/apps/marketing/package.json
@@ -10,6 +10,7 @@
"preview": "astro preview"
},
"dependencies": {
+ "@fontsource-variable/inter": "^5.3.0",
"@t3tools/shared": "workspace:*",
"astro": "^7.3.5",
"sharp": "0.35.4"
diff --git a/apps/marketing/public/fonts/dm-sans-OFL.txt b/apps/marketing/public/fonts/dm-sans-OFL.txt
deleted file mode 100644
index a0eedfbf0df..00000000000
--- a/apps/marketing/public/fonts/dm-sans-OFL.txt
+++ /dev/null
@@ -1,93 +0,0 @@
-Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts)
-
-This Font Software is licensed under the SIL Open Font License, Version 1.1.
-This license is copied below, and is also available with a FAQ at:
-https://scripts.sil.org/OFL
-
-
------------------------------------------------------------
-SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
------------------------------------------------------------
-
-PREAMBLE
-The goals of the Open Font License (OFL) are to stimulate worldwide
-development of collaborative font projects, to support the font creation
-efforts of academic and linguistic communities, and to provide a free and
-open framework in which fonts may be shared and improved in partnership
-with others.
-
-The OFL allows the licensed fonts to be used, studied, modified and
-redistributed freely as long as they are not sold by themselves. The
-fonts, including any derivative works, can be bundled, embedded,
-redistributed and/or sold with any software provided that any reserved
-names are not used by derivative works. The fonts and derivatives,
-however, cannot be released under any other type of license. The
-requirement for fonts to remain under this license does not apply
-to any document created using the fonts or their derivatives.
-
-DEFINITIONS
-"Font Software" refers to the set of files released by the Copyright
-Holder(s) under this license and clearly marked as such. This may
-include source files, build scripts and documentation.
-
-"Reserved Font Name" refers to any names specified as such after the
-copyright statement(s).
-
-"Original Version" refers to the collection of Font Software components as
-distributed by the Copyright Holder(s).
-
-"Modified Version" refers to any derivative made by adding to, deleting,
-or substituting -- in part or in whole -- any of the components of the
-Original Version, by changing formats or by porting the Font Software to a
-new environment.
-
-"Author" refers to any designer, engineer, programmer, technical
-writer or other person who contributed to the Font Software.
-
-PERMISSION & CONDITIONS
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of the Font Software, to use, study, copy, merge, embed, modify,
-redistribute, and sell modified and unmodified copies of the Font
-Software, subject to the following conditions:
-
-1) Neither the Font Software nor any of its individual components,
-in Original or Modified Versions, may be sold by itself.
-
-2) Original or Modified Versions of the Font Software may be bundled,
-redistributed and/or sold with any software, provided that each copy
-contains the above copyright notice and this license. These can be
-included either as stand-alone text files, human-readable headers or
-in the appropriate machine-readable metadata fields within text or
-binary files as long as those fields can be easily viewed by the user.
-
-3) No Modified Version of the Font Software may use the Reserved Font
-Name(s) unless explicit written permission is granted by the corresponding
-Copyright Holder. This restriction only applies to the primary font name as
-presented to the users.
-
-4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
-Software shall not be used to promote, endorse or advertise any
-Modified Version, except to acknowledge the contribution(s) of the
-Copyright Holder(s) and the Author(s) or with their explicit written
-permission.
-
-5) The Font Software, modified or unmodified, in part or in whole,
-must be distributed entirely under this license, and must not be
-distributed under any other license. The requirement for fonts to
-remain under this license does not apply to any document created
-using the Font Software.
-
-TERMINATION
-This license becomes null and void if any of the above conditions are
-not met.
-
-DISCLAIMER
-THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
-OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
-COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
-DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
-OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/apps/marketing/public/fonts/jetbrains-mono-OFL.txt b/apps/marketing/public/fonts/jetbrains-mono-OFL.txt
deleted file mode 100644
index 821a3dac22a..00000000000
--- a/apps/marketing/public/fonts/jetbrains-mono-OFL.txt
+++ /dev/null
@@ -1,93 +0,0 @@
-Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
-
-This Font Software is licensed under the SIL Open Font License, Version 1.1.
-
-This license is copied below, and is also available with a FAQ at: https://scripts.sil.org/OFL
-
-
------------------------------------------------------------
-SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
------------------------------------------------------------
-
-PREAMBLE
-The goals of the Open Font License (OFL) are to stimulate worldwide
-development of collaborative font projects, to support the font creation
-efforts of academic and linguistic communities, and to provide a free and
-open framework in which fonts may be shared and improved in partnership
-with others.
-
-The OFL allows the licensed fonts to be used, studied, modified and
-redistributed freely as long as they are not sold by themselves. The
-fonts, including any derivative works, can be bundled, embedded,
-redistributed and/or sold with any software provided that any reserved
-names are not used by derivative works. The fonts and derivatives,
-however, cannot be released under any other type of license. The
-requirement for fonts to remain under this license does not apply
-to any document created using the fonts or their derivatives.
-
-DEFINITIONS
-"Font Software" refers to the set of files released by the Copyright
-Holder(s) under this license and clearly marked as such. This may
-include source files, build scripts and documentation.
-
-"Reserved Font Name" refers to any names specified as such after the
-copyright statement(s).
-
-"Original Version" refers to the collection of Font Software components as
-distributed by the Copyright Holder(s).
-
-"Modified Version" refers to any derivative made by adding to, deleting,
-or substituting -- in part or in whole -- any of the components of the
-Original Version, by changing formats or by porting the Font Software to a
-new environment.
-
-"Author" refers to any designer, engineer, programmer, technical
-writer or other person who contributed to the Font Software.
-
-PERMISSION & CONDITIONS
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of the Font Software, to use, study, copy, merge, embed, modify,
-redistribute, and sell modified and unmodified copies of the Font
-Software, subject to the following conditions:
-
-1) Neither the Font Software nor any of its individual components,
-in Original or Modified Versions, may be sold by itself.
-
-2) Original or Modified Versions of the Font Software may be bundled,
-redistributed and/or sold with any software, provided that each copy
-contains the above copyright notice and this license. These can be
-included either as stand-alone text files, human-readable headers or
-in the appropriate machine-readable metadata fields within text or
-binary files as long as those fields can be easily viewed by the user.
-
-3) No Modified Version of the Font Software may use the Reserved Font
-Name(s) unless explicit written permission is granted by the corresponding
-Copyright Holder. This restriction only applies to the primary font name as
-presented to the users.
-
-4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
-Software shall not be used to promote, endorse or advertise any
-Modified Version, except to acknowledge the contribution(s) of the
-Copyright Holder(s) and the Author(s) or with their explicit written
-permission.
-
-5) The Font Software, modified or unmodified, in part or in whole,
-must be distributed entirely under this license, and must not be
-distributed under any other license. The requirement for fonts to
-remain under this license does not apply to any document created
-using the Font Software.
-
-TERMINATION
-This license becomes null and void if any of the above conditions are
-not met.
-
-DISCLAIMER
-THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
-OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
-COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
-DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
-OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/apps/marketing/src/assets/fonts/dm-sans-latin-ext.woff2 b/apps/marketing/src/assets/fonts/dm-sans-latin-ext.woff2
deleted file mode 100644
index 6e84cba1949..00000000000
Binary files a/apps/marketing/src/assets/fonts/dm-sans-latin-ext.woff2 and /dev/null differ
diff --git a/apps/marketing/src/assets/fonts/dm-sans-latin.woff2 b/apps/marketing/src/assets/fonts/dm-sans-latin.woff2
deleted file mode 100644
index c75f7bf1b46..00000000000
Binary files a/apps/marketing/src/assets/fonts/dm-sans-latin.woff2 and /dev/null differ
diff --git a/apps/marketing/src/assets/fonts/jetbrains-mono-cyrillic-ext.woff2 b/apps/marketing/src/assets/fonts/jetbrains-mono-cyrillic-ext.woff2
deleted file mode 100644
index 289de93149a..00000000000
Binary files a/apps/marketing/src/assets/fonts/jetbrains-mono-cyrillic-ext.woff2 and /dev/null differ
diff --git a/apps/marketing/src/assets/fonts/jetbrains-mono-cyrillic.woff2 b/apps/marketing/src/assets/fonts/jetbrains-mono-cyrillic.woff2
deleted file mode 100644
index de39acbc406..00000000000
Binary files a/apps/marketing/src/assets/fonts/jetbrains-mono-cyrillic.woff2 and /dev/null differ
diff --git a/apps/marketing/src/assets/fonts/jetbrains-mono-greek.woff2 b/apps/marketing/src/assets/fonts/jetbrains-mono-greek.woff2
deleted file mode 100644
index a53d52d6d02..00000000000
Binary files a/apps/marketing/src/assets/fonts/jetbrains-mono-greek.woff2 and /dev/null differ
diff --git a/apps/marketing/src/assets/fonts/jetbrains-mono-latin-ext.woff2 b/apps/marketing/src/assets/fonts/jetbrains-mono-latin-ext.woff2
deleted file mode 100644
index 82f96681c07..00000000000
Binary files a/apps/marketing/src/assets/fonts/jetbrains-mono-latin-ext.woff2 and /dev/null differ
diff --git a/apps/marketing/src/assets/fonts/jetbrains-mono-latin.woff2 b/apps/marketing/src/assets/fonts/jetbrains-mono-latin.woff2
deleted file mode 100644
index 4d09cda4a4c..00000000000
Binary files a/apps/marketing/src/assets/fonts/jetbrains-mono-latin.woff2 and /dev/null differ
diff --git a/apps/marketing/src/assets/fonts/jetbrains-mono-vietnamese.woff2 b/apps/marketing/src/assets/fonts/jetbrains-mono-vietnamese.woff2
deleted file mode 100644
index e38f5538f84..00000000000
Binary files a/apps/marketing/src/assets/fonts/jetbrains-mono-vietnamese.woff2 and /dev/null differ
diff --git a/apps/marketing/src/layouts/Layout.astro b/apps/marketing/src/layouts/Layout.astro
index 6b4bf819e2d..d1aea12f09b 100644
--- a/apps/marketing/src/layouts/Layout.astro
+++ b/apps/marketing/src/layouts/Layout.astro
@@ -2,8 +2,7 @@
import { getImage, Image } from "astro:assets";
import appIcon from "../assets/icon.webp";
import socialCard from "../assets/social-card.webp";
-import dmSansLatinUrl from "../assets/fonts/dm-sans-latin.woff2?url";
-import "../styles/fonts.css";
+import "@fontsource-variable/inter";
import {
ANDROID_PLAY_STORE_URL,
GITHUB_REPOSITORY_URL,
@@ -58,13 +57,6 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={socialImageUrl} />
<meta name="twitter:image:alt" content={socialImageAlt} />
- <link
- rel="preload"
- href={dmSansLatinUrl}
- as="font"
- type="font/woff2"
- crossorigin="anonymous"
- />
<link rel="icon" href="/favicon.ico" sizes="48x48" />
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16" />
@@ -153,22 +145,21 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
<style is:global>
:root {
- --bg: #09090b;
- --bg-elev: #0c0c0e;
- --bg-card: #111113;
- --fg: #fafafa;
- --fg-muted: #a1a1aa;
- --fg-dim: #71717a;
- --fg-faint: #52525b;
+ --bg: #000;
+ --bg-elev: #0a0a0a;
+ --bg-card: #0d0d0d;
+ --fg: #f5f5f5;
+ --fg-muted: #a3a3a3;
+ --fg-dim: #737373;
+ --fg-faint: #525252;
--border: rgba(255, 255, 255, 0.08);
--border-strong: rgba(255, 255, 255, 0.14);
- --accent-h: 250;
+ --accent-h: 264;
--accent: oklch(0.68 0.17 var(--accent-h));
- --accent-dim: oklch(0.68 0.17 var(--accent-h) / 0.15);
--ok: oklch(0.72 0.16 150);
--warn: oklch(0.76 0.15 75);
- --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
- --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
+ --font-sans: -apple-system, BlinkMacSystemFont, "Inter Variable", "Segoe UI", system-ui, sans-serif;
+ --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
--radius: 12px;
--radius-sm: 8px;
--radius-lg: 16px;
@@ -189,7 +180,6 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
background: var(--bg);
color: var(--fg);
font-family: var(--font-sans);
- font-feature-settings: "ss01", "ss02";
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
min-height: 100vh;
@@ -197,17 +187,6 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
line-height: 1.5;
}
- body::after {
- content: "";
- position: fixed;
- inset: 0;
- pointer-events: none;
- opacity: 0.035;
- background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
- background-repeat: repeat;
- background-size: 256px 256px;
- z-index: 9999;
- }
a {
color: inherit;
@@ -238,8 +217,8 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
}
.display {
- font-weight: 500;
- letter-spacing: -0.035em;
+ font-weight: 600;
+ letter-spacing: -0.03em;
line-height: 1.05;
}
@@ -265,14 +244,14 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
}
.btn-primary {
- background: var(--fg);
- color: #09090b;
+ background: oklch(0.571 0.21 264);
+ color: #fff;
font-weight: 600;
}
.btn-primary:hover {
transform: translateY(-1px);
- background: #fff;
+ background: oklch(0.62 0.2 264);
}
.btn-primary:active {
@@ -301,7 +280,7 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
position: relative;
border: 1px solid var(--border);
border-radius: var(--radius);
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
+ background: var(--bg-card);
overflow: hidden;
}
@@ -419,21 +398,16 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
align-items: center;
gap: 7px;
height: 36px;
- padding: 0 14px;
- border: 1px solid var(--border);
- border-radius: 999px;
- background: rgba(255, 255, 255, 0.02);
+ padding: 0 10px;
color: var(--fg-muted);
font-size: 13px;
letter-spacing: -0.01em;
white-space: nowrap;
- transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
+ transition: color 0.18s ease;
}
.nav-stars:hover {
color: var(--fg);
- border-color: var(--border-strong);
- background: rgba(255, 255, 255, 0.04);
}
.nav-stars strong {
@@ -492,7 +466,7 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
.footer-links a {
font-size: 13px;
- color: var(--fg-dim);
+ color: var(--fg-muted);
transition: color 0.2s ease;
}
diff --git a/apps/marketing/src/lib/site.ts b/apps/marketing/src/lib/site.ts
index 99cc5619165..5cd1337d141 100644
--- a/apps/marketing/src/lib/site.ts
+++ b/apps/marketing/src/lib/site.ts
@@ -7,6 +7,6 @@ export const ANDROID_PLAY_STORE_URL =
"https://play.google.com/store/apps/details?id=com.t3tools.t3code";
export const MARKETING_STATS = {
- githubStars: "24k+",
+ githubStars: "31k+",
users: "500,000",
} as const;
diff --git a/apps/marketing/src/pages/index.astro b/apps/marketing/src/pages/index.astro
index 883afb97524..d3f12d85419 100644
--- a/apps/marketing/src/pages/index.astro
+++ b/apps/marketing/src/pages/index.astro
@@ -89,11 +89,6 @@ const mobileEndorsementRows = [
<div class="hero-preview">
<figure class="hero-screenshot-frame">
<picture>
- <!-- Match the hidden mobile layout without requesting a screenshot. -->
- <source
- media="(max-width: 820px)"
- srcset="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
- />
<img
src={desktopScreenshot.src}
srcset={`${screenshot.srcSet.attribute}, ${desktopScreenshot.src} ${desktopScreenshot.width}w`}
@@ -285,7 +280,7 @@ const mobileEndorsementRows = [
</div>
<div class="pr-foot">
<span class="btn btn-ghost" style="font-size:12px;padding:6px 10px">View diff</span>
- <span class="btn btn-primary" style="font-size:12px;padding:6px 12px">
+ <span class="btn btn-ghost" style="font-size:12px;padding:6px 12px">
<svg width="12" height="12" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 .5C5.65.5.5 5.65.5 12a11.5 11.5 0 007.86 10.93c.58.1.79-.25.79-.56v-2c-3.2.69-3.88-1.37-3.88-1.37-.52-1.33-1.27-1.69-1.27-1.69-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.02 1.76 2.68 1.25 3.33.96.1-.75.4-1.25.72-1.54-2.55-.29-5.24-1.27-5.24-5.67 0-1.25.45-2.28 1.18-3.08-.12-.29-.51-1.45.11-3.02 0 0 .96-.31 3.15 1.18a10.96 10.96 0 015.74 0c2.19-1.49 3.15-1.18 3.15-1.18.62 1.57.23 2.73.11 3.02.74.8 1.18 1.83 1.18 3.08 0 4.41-2.7 5.38-5.27 5.66.41.36.78 1.06.78 2.13v3.16c0 .31.21.67.8.56A11.5 11.5 0 0023.5 12C23.5 5.65 18.35.5 12 .5z"/></svg>
Open pull request
</span>
@@ -327,7 +322,6 @@ const mobileEndorsementRows = [
<section id="open" class="sec-open">
<div class="container">
<div class="section-head open-head">
- <div class="eyebrow">Open source</div>
<h2>If you don't like something, fork it.</h2>
</div>
@@ -406,7 +400,7 @@ const mobileEndorsementRows = [
<span id="cta-download-label">Download for macOS</span>
</a>
- <a class="btn btn-ghost btn-lg" href="/download">Windows · Linux · other</a>
+ <a class="btn btn-ghost btn-lg" href="/download">Other platforms</a>
</div>
</div>
</section>
@@ -489,12 +483,12 @@ const mobileEndorsementRows = [
<style>
section {
position: relative;
- padding: 96px 0;
+ padding: 80px 0;
border-top: 1px solid var(--border);
}
.section-head {
- margin-bottom: 56px;
+ margin-bottom: 40px;
max-width: 720px;
}
@@ -505,8 +499,8 @@ const mobileEndorsementRows = [
.section-head h2 {
font-size: clamp(32px, 4vw, 48px);
- font-weight: 500;
- letter-spacing: -0.035em;
+ font-weight: 600;
+ letter-spacing: -0.03em;
line-height: 1.05;
margin-bottom: 18px;
}
@@ -550,8 +544,8 @@ const mobileEndorsementRows = [
inset: 0;
pointer-events: none;
background-image:
- linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
- linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
+ linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
background-size: 48px 48px;
mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
@@ -574,10 +568,11 @@ const mobileEndorsementRows = [
.hero-sub {
color: var(--fg-muted);
font-size: clamp(16px, 1.4vw, 19px);
- max-width: 640px;
+ max-width: 720px;
margin: 0 auto 36px;
letter-spacing: -0.005em;
line-height: 1.55;
+ text-wrap: balance;
}
.hero-actions {
@@ -622,7 +617,7 @@ const mobileEndorsementRows = [
display: inline-flex;
align-items: center;
gap: 6px;
- color: var(--fg-dim);
+ color: var(--fg-muted);
font-size: 13px;
letter-spacing: -0.005em;
}
@@ -630,7 +625,7 @@ const mobileEndorsementRows = [
.hero-mobile-line a {
color: var(--fg-muted);
text-decoration: underline;
- text-decoration-color: rgba(161, 161, 170, 0.4);
+ text-decoration-color: rgba(163, 163, 163, 0.4);
text-underline-offset: 3px;
transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
@@ -679,15 +674,10 @@ const mobileEndorsementRows = [
width: 100%;
height: 100%;
border-radius: 25%;
- background: radial-gradient(circle at 30% 25%, var(--tint, rgba(255, 255, 255, 0.08)), rgba(20, 20, 24, 0.92) 65%);
+ background: var(--bg-card);
border: 1px solid var(--border);
- box-shadow:
- 0 20px 48px -16px rgba(0, 0, 0, 0.65),
- 0 2px 0 0 rgba(255, 255, 255, 0.04) inset;
- animation:
- mark-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d) both,
- mark-drift var(--dur) ease-in-out calc(var(--d) + 1s) infinite;
- animation-play-state: running, var(--home-motion-state, paused);
+ box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.65);
+ animation: mark-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d) both;
}
.hero-float-card img {
@@ -701,17 +691,13 @@ const mobileEndorsementRows = [
from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(calc(var(--rot) + 24deg)) scale(0.6); }
to { opacity: 1; transform: translate(0, 0) rotate(var(--rot)) scale(1); }
}
- @keyframes mark-drift {
- 0%, 100% { transform: translate(0, 0) rotate(var(--rot)); }
- 50% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot) + var(--wob))); }
- }
- .hf-opencode { --x: max(-300px, -19vw); --y: 20px; --s: 64px; --rot: 6deg; --depth: 0.6; --d: 620ms; --dur: 8.5s; --dx: 2px; --dy: -8px; --wob: 3deg; --fx: -40px; --fy: -80px; }
- .hf-antigravity { --x: min(300px, 19vw); --y: 20px; --s: 64px; --rot: -5deg; --depth: 0.6; --d: 580ms; --dur: 9.8s; --dx: -2px; --dy: -9px; --wob: -3deg; --fx: 40px; --fy: -80px; }
- .hf-claude { --x: max(-560px, -38vw); --y: 128px; --s: 96px; --rot: -8deg; --depth: 1.2; --d: 380ms; --dur: 10.5s; --dx: 4px; --dy: -12px; --wob: -2deg; --fx: -160px; --fy: -40px; --tint: rgba(217, 119, 87, 0.22); }
- .hf-codex { --x: min(560px, 38vw); --y: 128px; --s: 96px; --rot: 7deg; --depth: 1.2; --d: 460ms; --dur: 9.2s; --dx: -4px; --dy: -10px; --wob: 2deg; --fx: 160px; --fy: -40px; }
- .hf-grok { --x: max(-440px, -30vw); --y: 440px; --s: 80px; --rot: 4deg; --depth: 0.9; --d: 540ms; --dur: 11.5s; --dx: 3px; --dy: -9px; --wob: -3deg; --fx: -120px; --fy: 80px; }
- .hf-cursor { --x: min(440px, 30vw); --y: 440px; --s: 80px; --rot: -5deg; --depth: 0.9; --d: 700ms; --dur: 7.8s; --dx: -3px; --dy: -11px; --wob: 3deg; --fx: 120px; --fy: 80px; }
+ .hf-opencode { --x: max(-300px, -19vw); --y: 20px; --s: 64px; --rot: 6deg; --depth: 0.6; --d: 620ms; --fx: -40px; --fy: -80px; }
+ .hf-antigravity { --x: min(300px, 19vw); --y: 20px; --s: 64px; --rot: -5deg; --depth: 0.6; --d: 580ms; --fx: 40px; --fy: -80px; }
+ .hf-claude { --x: max(-560px, -38vw); --y: 128px; --s: 96px; --rot: -8deg; --depth: 1.2; --d: 380ms; --fx: -160px; --fy: -40px; }
+ .hf-codex { --x: min(560px, 38vw); --y: 128px; --s: 96px; --rot: 7deg; --depth: 1.2; --d: 460ms; --fx: 160px; --fy: -40px; }
+ .hf-grok { --x: max(-440px, -30vw); --y: 440px; --s: 80px; --rot: 4deg; --depth: 0.9; --d: 540ms; --fx: -120px; --fy: 80px; }
+ .hf-cursor { --x: min(440px, 30vw); --y: 440px; --s: 80px; --rot: -5deg; --depth: 0.9; --d: 700ms; --fx: 120px; --fy: 80px; }
@media (prefers-reduced-motion: reduce) {
.hero-float-card { animation: none; transform: rotate(var(--rot)); }
@@ -726,15 +712,16 @@ const mobileEndorsementRows = [
@media (max-width: 820px) {
.hero {
padding-top: 132px;
+ padding-bottom: 32px;
}
.hero-title {
- font-size: clamp(40px, 11vw, 56px);
+ font-size: clamp(32px, 9.2vw, 56px);
margin-top: 14px;
}
.hero-actions {
- margin-bottom: 96px;
+ margin-bottom: 40px;
}
/* Four above the headline, two beside the CTA. Keeps the copy clear. */
@@ -754,21 +741,16 @@ const mobileEndorsementRows = [
.hero-preview {
max-width: 1180px;
margin: 0 auto;
- transform: perspective(2000px) rotateX(2deg);
- transition: transform 0.6s ease;
- }
-
- .hero-preview:hover {
- transform: perspective(2000px) rotateX(0deg);
}
.hero-screenshot-frame {
position: relative;
overflow: hidden;
aspect-ratio: 2880 / 1800;
- border-radius: 14px;
- background: #0a0a0c;
- box-shadow: 0 28px 64px -28px rgba(0, 0, 0, 0.75);
+ border-radius: 12px;
+ background: #000;
+ /* The screenshot is true black like the page, so this edge defines the window. */
+ box-shadow: 0 0 0 1px var(--border-strong);
}
.hero-screenshot-frame picture {
@@ -785,8 +767,6 @@ const mobileEndorsementRows = [
object-position: center top;
}
- .sec-harness { background: #09090b; }
-
.harness-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
@@ -800,7 +780,6 @@ const mobileEndorsementRows = [
padding: 22px 20px;
display: flex; align-items: center; gap: 14px;
border-right: 1px solid var(--border);
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
transition: background 0.2s ease;
}
.harness:last-child { border-right: 0; }
@@ -820,13 +799,14 @@ const mobileEndorsementRows = [
}
.harness-tag {
font-family: var(--font-mono);
- font-size: 11px; color: var(--fg-dim);
+ font-size: 11px; color: var(--fg-muted);
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.harness-footer {
display: flex; gap: 24px; flex-wrap: wrap;
margin-top: 28px; padding-top: 24px;
- border-top: 1px dashed var(--border);
+ border-top: 1px solid var(--border);
font-size: 13px; color: var(--fg-muted);
}
.harness-footer-item {
@@ -841,13 +821,13 @@ const mobileEndorsementRows = [
.endorsements-head {
max-width: 720px;
- margin-bottom: 56px;
+ margin-bottom: 40px;
}
.endorsements-head h2 {
font-size: clamp(32px, 4vw, 48px);
- font-weight: 500;
- letter-spacing: -0.035em;
+ font-weight: 600;
+ letter-spacing: -0.03em;
line-height: 1.05;
margin-bottom: 18px;
}
@@ -946,7 +926,7 @@ const mobileEndorsementRows = [
gap: 10px;
border: 1px solid var(--border);
border-radius: 10px;
- background: rgba(255, 255, 255, 0.012);
+ background: var(--bg-elev);
transition:
border-color 0.18s ease,
background 0.18s ease;
@@ -1017,16 +997,11 @@ const mobileEndorsementRows = [
}
.pr-head svg { color: var(--ok); }
.pr-title { font-weight: 500; font-size: 15px; flex: 1; }
- .pr-status {
- font-family: var(--font-mono); font-size: 10px;
- color: var(--ok); padding: 2px 8px;
- border: 1px solid var(--ok); border-radius: 999px;
- letter-spacing: 0.08em; text-transform: uppercase;
- }
+ .pr-status { font-size: 12px; font-weight: 500; color: var(--ok); }
.pr-meta {
display: flex; gap: 14px;
font-family: var(--font-mono); font-size: 11px;
- color: var(--fg-dim); margin-bottom: 14px; flex-wrap: wrap;
+ color: var(--fg-muted); margin-bottom: 14px; flex-wrap: wrap;
}
.pr-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pr-files {
@@ -1034,13 +1009,14 @@ const mobileEndorsementRows = [
overflow: hidden; margin-bottom: 16px;
}
.pr-files > div {
- display: flex; justify-content: space-between;
+ display: flex; justify-content: space-between; gap: 12px;
padding: 8px 12px; font-family: var(--font-mono);
font-size: 11px; border-top: 1px solid var(--border);
color: var(--fg-muted);
}
.pr-files > div:first-child { border-top: 0; }
- .pr-files span { color: var(--fg-dim); }
+ .pr-files code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+ .pr-files span { flex: none; color: var(--fg-dim); }
.pr-foot { display: flex; justify-content: flex-end; gap: 8px; }
.pr-trail {
@@ -1054,18 +1030,17 @@ const mobileEndorsementRows = [
}
.pr-trail-line {
width: 1px; height: 28px;
- background: linear-gradient(180deg, var(--border-strong), var(--accent));
+ background: var(--border-strong);
}
.pr-button-shell { display: flex; justify-content: center; }
.pr-button {
display: inline-flex; align-items: center; gap: 10px;
padding: 12px 20px;
- background: var(--fg); color: #09090b;
+ background: var(--fg); color: #000;
font-weight: 600; font-size: 13px;
line-height: normal;
border-radius: 10px;
- box-shadow: 0 8px 24px -8px rgba(255, 255, 255, 0.2);
}
.pr-button-kbd {
font-family: var(--font-mono); font-size: 10px;
@@ -1075,7 +1050,7 @@ const mobileEndorsementRows = [
.open-head {
text-align: center;
- margin: 0 auto 56px;
+ margin: 0 auto 40px;
}
.open-grid {
@@ -1088,11 +1063,10 @@ const mobileEndorsementRows = [
.open-term-head {
display: flex; align-items: center; gap: 6px;
padding: 10px 14px; border-bottom: 1px solid var(--border);
- background: rgba(255, 255, 255, 0.02);
}
.open-term-head span {
width: 10px; height: 10px; border-radius: 999px;
- background: #2a2a30; display: block;
+ background: #262626; display: block;
}
.open-term-title {
margin-left: 10px;
@@ -1138,9 +1112,6 @@ const mobileEndorsementRows = [
flex-direction: column;
justify-content: center;
gap: 32px;
- background:
- radial-gradient(110% 75% at 100% 0%, var(--accent-dim), transparent 60%),
- linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}
.open-pitch-list {
@@ -1166,15 +1137,8 @@ const mobileEndorsementRows = [
.open-pitch-mark {
flex: none;
- display: grid;
- place-items: center;
- width: 22px;
- height: 22px;
- margin-top: 1px;
- border-radius: 7px;
- color: var(--accent);
- background: var(--accent-dim);
- border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
+ margin-top: 5px;
+ color: var(--ok);
}
.open-pitch-footer {
@@ -1187,7 +1151,7 @@ const mobileEndorsementRows = [
display: flex;
align-items: center;
gap: 8px;
- color: var(--fg-dim);
+ color: var(--fg-muted);
font-family: var(--font-mono);
font-size: 11px;
}
@@ -1215,19 +1179,10 @@ const mobileEndorsementRows = [
.sec-cta {
text-align: center;
- padding: 120px 0;
+ padding: 96px 0;
position: relative;
overflow: hidden;
}
- .sec-cta::before {
- content: "";
- position: absolute;
- inset: auto 0 -50% 0;
- height: 60%;
- background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 60%);
- pointer-events: none;
- opacity: 0.6;
- }
.cta-inner { position: relative; }
.cta-title {
font-size: clamp(40px, 6vw, 72px);
@@ -1250,10 +1205,7 @@ const mobileEndorsementRows = [
.hero-preview {
width: min(860px, calc(100vw - 24px));
margin-left: 50%;
- transform: translateX(-50%) perspective(1600px) rotateX(1.5deg);
- }
- .hero-preview:hover {
- transform: translateX(-50%) perspective(1600px) rotateX(0deg);
+ transform: translateX(-50%);
}
.harness-grid { grid-template-columns: 1fr 1fr; }
.harness { border-right: 0; border-bottom: 1px solid var(--border); }
@@ -1264,10 +1216,9 @@ const mobileEndorsementRows = [
}
@media (max-width: 820px) {
- section { padding: 64px 0; }
- .sec-cta { padding: 96px 0; }
+ section { padding: 56px 0; }
+ .sec-cta { padding: 80px 0; }
.container { padding-left: 20px; padding-right: 20px; }
- .hero-preview { display: none; }
.endorsements-head {
margin-bottom: 40px;
}
@@ -1294,5 +1245,9 @@ const mobileEndorsementRows = [
.endorsement-card p {
font-size: 13px;
}
+ .open-term-body {
+ padding: 16px;
+ font-size: 11px;
+ }
}
</style>
diff --git a/apps/marketing/src/styles/fonts.css b/apps/marketing/src/styles/fonts.css
deleted file mode 100644
index 2f3933d6123..00000000000
--- a/apps/marketing/src/styles/fonts.css
+++ /dev/null
@@ -1,193 +0,0 @@
-/*! DM Sans v17 and JetBrains Mono v24. Licenses: /fonts/dm-sans-OFL.txt and /fonts/jetbrains-mono-OFL.txt. */
-/* Keep subset bytes out of the stylesheet so unused glyph ranges do not add transfer size. */
-/* latin-ext */
-@font-face {
- font-family: "DM Sans";
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(../assets/fonts/dm-sans-latin-ext.woff2?no-inline) format("woff2");
- unicode-range:
- U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
- U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
- U+A720-A7FF;
-}
-/* latin */
-@font-face {
- font-family: "DM Sans";
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(../assets/fonts/dm-sans-latin.woff2?no-inline) format("woff2");
- unicode-range:
- U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
- U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-/* latin-ext */
-@font-face {
- font-family: "DM Sans";
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(../assets/fonts/dm-sans-latin-ext.woff2?no-inline) format("woff2");
- unicode-range:
- U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
- U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
- U+A720-A7FF;
-}
-/* latin */
-@font-face {
- font-family: "DM Sans";
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(../assets/fonts/dm-sans-latin.woff2?no-inline) format("woff2");
- unicode-range:
- U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
- U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-/* latin-ext */
-@font-face {
- font-family: "DM Sans";
- font-style: normal;
- font-weight: 600;
- font-display: swap;
- src: url(../assets/fonts/dm-sans-latin-ext.woff2?no-inline) format("woff2");
- unicode-range:
- U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
- U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
- U+A720-A7FF;
-}
-/* latin */
-@font-face {
- font-family: "DM Sans";
- font-style: normal;
- font-weight: 600;
- font-display: swap;
- src: url(../assets/fonts/dm-sans-latin.woff2?no-inline) format("woff2");
- unicode-range:
- U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
- U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-/* cyrillic-ext */
-@font-face {
- font-family: "JetBrains Mono";
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(../assets/fonts/jetbrains-mono-cyrillic-ext.woff2?no-inline) format("woff2");
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
-}
-/* cyrillic */
-@font-face {
- font-family: "JetBrains Mono";
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(../assets/fonts/jetbrains-mono-cyrillic.woff2?no-inline) format("woff2");
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
-}
-/* greek */
-@font-face {
- font-family: "JetBrains Mono";
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(../assets/fonts/jetbrains-mono-greek.woff2?no-inline) format("woff2");
- unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
-}
-/* vietnamese */
-@font-face {
- font-family: "JetBrains Mono";
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(../assets/fonts/jetbrains-mono-vietnamese.woff2?no-inline) format("woff2");
- unicode-range:
- U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
- U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
-}
-/* latin-ext */
-@font-face {
- font-family: "JetBrains Mono";
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(../assets/fonts/jetbrains-mono-latin-ext.woff2?no-inline) format("woff2");
- unicode-range:
- U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
- U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
- U+A720-A7FF;
-}
-/* latin */
-@font-face {
- font-family: "JetBrains Mono";
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url(../assets/fonts/jetbrains-mono-latin.woff2?no-inline) format("woff2");
- unicode-range:
- U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
- U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-/* cyrillic-ext */
-@font-face {
- font-family: "JetBrains Mono";
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(../assets/fonts/jetbrains-mono-cyrillic-ext.woff2?no-inline) format("woff2");
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
-}
-/* cyrillic */
-@font-face {
- font-family: "JetBrains Mono";
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(../assets/fonts/jetbrains-mono-cyrillic.woff2?no-inline) format("woff2");
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
-}
-/* greek */
-@font-face {
- font-family: "JetBrains Mono";
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(../assets/fonts/jetbrains-mono-greek.woff2?no-inline) format("woff2");
- unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
-}
-/* vietnamese */
-@font-face {
- font-family: "JetBrains Mono";
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(../assets/fonts/jetbrains-mono-vietnamese.woff2?no-inline) format("woff2");
- unicode-range:
- U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
- U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
-}
-/* latin-ext */
-@font-face {
- font-family: "JetBrains Mono";
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(../assets/fonts/jetbrains-mono-latin-ext.woff2?no-inline) format("woff2");
- unicode-range:
- U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
- U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
- U+A720-A7FF;
-}
-/* latin */
-@font-face {
- font-family: "JetBrains Mono";
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url(../assets/fonts/jetbrains-mono-latin.woff2?no-inline) format("woff2");
- unicode-range:
- U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
- U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 087858aeabb..4bff27f291a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -499,6 +499,9 @@ importers:
apps/marketing:
dependencies:
+ '@fontsource-variable/inter':
+ specifier: ^5.3.0
+ version: 5.3.0
'@t3tools/shared':
specifier: workspace:*
version: link:../../packages/shared