Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 26 additions & 15 deletions apps/cursor/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@
--tracking-base: 0.005em;
--tracking-lg: -0.02em;

--sidebar: #f3f3f3;
--chrome: #f7f7f7;
--editor: #fcfcfc;
--base: #141414;
--sidebar: #f3f3f1;
--chrome: #f8f8f6;
--editor: #fdfdfc;
--base: #0a0a0a;
--accent-base: #3c7cab;
--brand: #f54e00;
--focus: #3c7cab;
Expand All @@ -112,8 +112,10 @@
--shadow-secondary: rgba(0, 0, 0, 0.072);
--shadow-tertiary: rgba(0, 0, 0, 0.036);

--text-primary: color-mix(in oklab, var(--base) 94%, transparent);
--text-secondary: color-mix(in oklab, var(--base) 70%, transparent);
--text-primary: var(--base);
/* grok.com's cool grey for secondary text, a shade darker so small
text keeps a 4.5:1 contrast on the page background. */
--text-secondary: #6b6f76;
--text-tertiary: color-mix(in oklab, var(--base) 48%, transparent);
--text-quaternary: color-mix(in oklab, var(--base) 32%, transparent);
--text-inverted: var(--editor);
Expand Down Expand Up @@ -164,10 +166,11 @@
.dark {
color-scheme: dark;

--sidebar: #14120b;
--chrome: #14120b;
--editor: #1b1913;
--base: #edecec;
--sidebar: #131211;
--chrome: #131211;
--editor: #181716;
--base: #fcfcfc;
--text-secondary: #9e9e9e;
--accent-base: #5da1e5;
--brand: #f54e00;
--focus: #5da1e5;
Expand Down Expand Up @@ -210,7 +213,7 @@

*::selection {
color: var(--text-primary);
background-color: color-mix(in srgb, var(--brand) 24%, transparent);
background-color: color-mix(in srgb, var(--base) 14%, transparent);
}
}

Expand All @@ -225,16 +228,24 @@

@layer components {
.page-shell {
@apply mx-auto w-full max-w-[1300px] px-4 md:px-6;
@apply mx-auto w-full max-w-[1200px] px-6 sm:px-8;
}

.marketing-hero-title {
font-size: clamp(2.625rem, 4vw + 1.25rem, 4.5rem);
line-height: 0.98;
letter-spacing: -0.04em;
font-size: clamp(2.5rem, 3.4vw + 1rem, 4.25rem);
line-height: 1.02;
letter-spacing: -0.02em;
font-weight: 500;
}

/* The small line above a page title: a pointer elsewhere, or the way back. */
.page-eyebrow {
font-size: 0.8125rem;
line-height: 1.5;
letter-spacing: 0;
color: var(--text-secondary);
}

.marketing-page-title {
font-size: clamp(2rem, 2vw + 1.25rem, 3.25rem);
line-height: 1.02;
Expand Down
4 changes: 2 additions & 2 deletions apps/cursor/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export const viewport = {
maximumScale: 1,
userScalable: false,
themeColor: [
{ media: "(prefers-color-scheme: light)", color: "#f7f7f7" },
{ media: "(prefers-color-scheme: dark)", color: "#14120b" },
{ media: "(prefers-color-scheme: light)", color: "#f8f8f6" },
{ media: "(prefers-color-scheme: dark)", color: "#131211" },
],
};

Expand Down
1 change: 1 addition & 0 deletions apps/cursor/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default async function Page() {
snapshot.generatedAt,
LEADERBOARD_CHUNK,
)}
totalPlugins={snapshot.items.length}
totalUsers={totalUsers?.count ?? 0}
generatedAt={snapshot.generatedAt}
/>
Expand Down
72 changes: 48 additions & 24 deletions apps/cursor/src/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,48 +7,72 @@

const columns = [
{
title: "Explore",
title: "Directory",
links: [
{ href: "/", label: "Plugins" },
{ href: "/plugins/new", label: "Submit a Plugin" },
],
},
{
title: "Community",
links: [
{ href: "/plugins/new", label: "Submit a plugin" },
{ href: "/members", label: "Members" },
{ href: "/members/companies", label: "Companies" },
],
},
{
title: "Resources",
title: "Grok Build",
links: [
{
href: "https://cursor.com/learn?utm_source=cursor-directory&utm_medium=referral&utm_campaign=footer",
label: "Learn Grok Build",
href: "https://grok.com/product/build",
label: "Overview",
external: true,
},
{
href: "https://cursor.com/changelog",
label: "Changelog",
href: "https://grok.com/product/download#build",
label: "Download",
external: true,
},
{
href: "https://docs.cursor.com",
href: "https://docs.grok.com/build",
label: "Documentation",
external: true,
},
{
href: "https://cursor.com/blog",
label: "Blog",
href: "https://docs.grok.com/build/agents-window/learn?utm_source=cursor-directory&utm_medium=referral&utm_campaign=footer",
label: "Learn",
external: true,
},
{
href: "https://grok.com/product/build/changelog",
label: "Changelog",
external: true,
},
],
},
{
title: "Contribute",
title: "Marketplace",
links: [
{ href: "/plugins/new", label: "Submit a Plugin" },
{
href: "https://grok.com/marketplace/plugins",
label: "Official plugins",
external: true,
},
{
href: "https://grok.com/marketplace",
label: "Bots",
external: true,
},
{
href: "https://grok-bot.directory",
label: "Grok Bot Directory",
external: true,
},
],
},
{
title: "Community",
links: [
{
href: "https://grok.com/news",
label: "News",
external: true,
},
{
href: "https://github.com/cursor/community-plugins",
label: "GitHub",
Expand Down Expand Up @@ -122,29 +146,29 @@
export function Footer() {
return (
<footer className="border-t border-border">
<div className="mx-auto max-w-[1300px] px-4 py-16 md:px-6">
<div className="grid grid-cols-2 gap-8 md:grid-cols-4">
<div className="mx-auto max-w-[1200px] px-6 py-14 sm:px-8">
<div className="grid grid-cols-2 gap-x-8 gap-y-10 md:grid-cols-4">
{columns.map((column) => (
<div key={column.title}>
<h3 className="mb-4 text-sm font-medium text-foreground">
<h3 className="mb-3 text-[13.5px] font-medium text-foreground">
{column.title}
</h3>
<ul className="space-y-3">
<ul className="space-y-2">
{column.links.map((link) => (
<li key={link.label}>
{"external" in link && link.external ? (
<a
href={link.href}
target="_blank"
rel="noopener noreferrer"
className="text-sm text-muted-foreground transition-colors hover:text-foreground"
className="text-[13.5px] text-muted-foreground transition-colors hover:text-foreground"
>
{link.label}
</a>
) : (
<Link
href={link.href}
className="text-sm text-muted-foreground transition-colors hover:text-foreground"
className="text-[13.5px] text-muted-foreground transition-colors hover:text-foreground"
>
{link.label}
</Link>
Expand All @@ -156,13 +180,13 @@
))}
</div>

<div className="mt-16 flex flex-col items-center justify-between gap-6 border-t border-border pt-8 md:flex-row">
<div className="mt-14 flex flex-col items-center justify-between gap-6 border-t border-border pt-8 md:flex-row">
<div className="flex items-center">
<img
src="/logo-lockup.svg"
alt="Grok Build Directory"
className="h-[18px] w-auto opacity-40 dark:brightness-100 brightness-0"
/>

Check warning on line 189 in apps/cursor/src/components/footer.tsx

View workflow job for this annotation

GitHub Actions / Lint & typecheck

lint/performance/noImgElement

Don't use <img> element.
</div>

<div className="flex items-center gap-4">
Expand Down
28 changes: 14 additions & 14 deletions apps/cursor/src/components/global-search-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,34 @@ export function GlobalSearchInput({
const [search, setSearch] = useQueryState("q", { defaultValue: "" });
const router = useRouter();

const placeholder = "Search plugins...";

const handleSubmit = (e: React.FormEvent) => {
e.preventDefault();
if (search.trim()) {
router.push(`/?q=${encodeURIComponent(search.trim())}`);
}
};

const handleClear = () => setSearch("");

const handleKeyDown = (e: React.KeyboardEvent) => {
if (e.key === "Enter" && !e.shiftKey) {
e.preventDefault();
handleSubmit(e as unknown as React.FormEvent);
}
if (e.key === "Escape") handleClear();
};

return (
<div className="mx-auto w-full max-w-[720px]">
<form className="h-full w-full" onSubmit={handleSubmit}>
<SearchField
value={search}
onChange={setSearch}
onKeyDown={handleKeyDown}
onFocus={onFocus}
placeholder={placeholder}
size="hero"
/>
</form>
</div>
<form className="w-full sm:w-[300px]" onSubmit={handleSubmit}>
<SearchField
value={search}
onChange={setSearch}
onKeyDown={handleKeyDown}
onFocus={onFocus}
onClear={handleClear}
placeholder="Search plugins or authors"
className="h-10"
/>
</form>
);
}
13 changes: 13 additions & 0 deletions apps/cursor/src/components/grok-build-mark.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/** The Grok Build mark (the cube), drawn in the current text colour. */
export function GrokBuildMark({ className }: { className?: string }) {
return (
<svg
viewBox="0 0 149.706 171.111"
fill="currentColor"
aria-hidden="true"
className={className}
>
<path d="M74.8529 171.111C73.443 171.111 72.4176 170.726 71.3922 170.213L2.8198 130.608C1.02538 129.583 0 127.788 0 125.481V45.6295C0 43.3224 1.02538 41.528 2.8198 40.5026L71.3922 0.897205C72.4176 0.384506 73.443 0 74.8529 0C76.2628 0 77.2882 0.384506 78.3136 0.897205L146.886 40.5026C148.68 41.528 149.706 43.3224 149.706 45.6295V125.481C149.706 127.788 148.68 129.583 146.886 130.608L78.3136 170.213C77.2882 170.726 76.2628 171.111 74.8529 171.111ZM74.8529 163.164C75.6219 163.164 76.2628 162.779 76.6473 162.139L140.862 50.8846C141.375 50.1155 141.759 49.3465 141.759 48.5775C141.759 46.9112 140.734 45.8858 138.939 45.8858H9.74113C8.58757 45.8858 7.69037 46.7831 7.69037 47.9366C7.69037 48.7057 8.07488 49.3465 8.84392 49.8592L69.3415 84.8504C72.2894 86.773 72.674 87.542 72.8021 91.1308V161.113C72.8021 162.267 73.6993 163.164 74.8529 163.164Z" />
</svg>
);
}
20 changes: 10 additions & 10 deletions apps/cursor/src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
key={link.href}
href={link.href}
className={cn(
"chrome-label rounded-full px-3.5 py-2 font-medium transition-colors",
"inline-flex h-8 items-center rounded-full px-3.5 text-sm font-medium transition-colors hover:bg-accent",
pathname !== null && link.match(pathname)
? "text-foreground"
: "text-muted-foreground hover:text-foreground",
Expand All @@ -58,37 +58,37 @@
return (
<div className="relative z-30 flex items-center justify-between">
<div className="fixed inset-x-0 top-0 z-50 bg-background/92 backdrop-blur-xl">
<div className="mx-auto flex h-[56px] w-full max-w-[1300px] items-center justify-between px-4 text-[15px] md:h-[60px] md:px-6">
<div className="mx-auto flex h-[56px] w-full max-w-[1200px] items-center justify-between px-6 text-[15px] sm:px-8 md:h-[60px]">
<Link href="/" className="flex items-center text-foreground">
<img
src="/logo-lockup.svg"
alt="Grok Build Directory"
className="h-[18px] w-auto dark:brightness-100 brightness-0"
/>

Check warning on line 67 in apps/cursor/src/components/header.tsx

View workflow job for this annotation

GitHub Actions / Lint & typecheck

lint/performance/noImgElement

Don't use <img> element.
</Link>

<Suspense fallback={null}>
<MobileMenu />
</Suspense>

<div className="hidden items-center gap-2 md:flex">
<div className="hidden items-center gap-1 md:flex">
<Suspense fallback={<NavLinksList pathname={null} />}>
<ActiveNavLinks />
</Suspense>

<Link href="/plugins/new">
<Button variant="default" className="h-8 rounded-full px-4">
Submit a plugin
</Button>
</Link>

<div className="flex min-w-[88px] items-center justify-end">
<div className="flex min-w-[72px] items-center justify-end">
{/* Fallback matches UserMenu's own loading skeleton so the
static shell shows the same placeholder instead of a gap. */}
<Suspense fallback={<Skeleton className="size-6 rounded-none" />}>
<UserMenu />
</Suspense>
</div>

<Link href="/plugins/new" className="ml-2">
<Button variant="default" className="rounded-full px-4">
Submit a plugin
</Button>
</Link>
</div>
</div>
</div>
Expand Down
Loading
Loading