Skip to content

Commit fd9a64e

Browse files
feat: add install figma as cta (#64)
1 parent 4d542f5 commit fd9a64e

File tree

3 files changed

+27
-20
lines changed

3 files changed

+27
-20
lines changed

apps/engine/src/components/hero/hero.tsx

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
import { FigmaLogo, GithubLogo, Icons, Text } from '@ds-project/components';
2-
import { Button } from '../button';
1+
import {
2+
Button,
3+
FigmaLogo,
4+
GithubLogo,
5+
Icons,
6+
Text,
7+
} from '@ds-project/components';
38
import Image from 'next/image';
49
import { Pill } from '../pill';
510
import Link from 'next/link';
611
import frameImage from './frame-image.png';
12+
import { config } from '@/config';
713

814
const compatibleWith = [
915
{
@@ -29,7 +35,7 @@ export function Hero() {
2935
leading="snug"
3036
className="text-zinc-950"
3137
>
32-
<h1>The DevOps Platform for Design Systems</h1>
38+
<h1>Your Design System Engine</h1>
3339
</Text>
3440
<Text
3541
size="base"
@@ -38,23 +44,20 @@ export function Hero() {
3844
className="text-zinc-500"
3945
>
4046
<p>
41-
Release and manage Design Systems at scale without overwhelming
42-
your engineers and designers.
47+
Focus more on your Design System decisions and less on the tools
48+
and integrations
4349
</p>
4450
</Text>
4551
</div>
4652
<div className="flex gap-2">
47-
<Button mode="dark" asChild>
48-
<Link href="/app">
49-
Sign Up <Icons.ArrowRightIcon className="ml-2" />
53+
<Button asChild>
54+
<Link href={config.figmaWidgetUrl}>
55+
<Icons.FigmaLogoIcon className="mr-2" /> Install Figma Widget
5056
</Link>
5157
</Button>
52-
<Button asChild>
53-
<Link
54-
href="https://github.com/Design-System-Project/platform"
55-
target="_blank"
56-
>
57-
<Icons.GitHubLogoIcon className="mr-2" /> Explore
58+
<Button asChild variant="link">
59+
<Link href="/auth/sign-in" target="_blank">
60+
Sign Up
5861
</Link>
5962
</Button>
6063
</div>

apps/engine/src/components/home-navigation/home-navigation.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Button } from '@ds-project/components';
22
import Image from 'next/image';
33
import Link from 'next/link';
44
import logoSvg from './assets/ds-logo.svg';
5+
import { config } from '@/config';
56

67
const navigationItems = [
78
{
@@ -12,15 +13,16 @@ const navigationItems = [
1213
label: 'Community',
1314
href: '#community',
1415
},
16+
{
17+
label: 'Sign Up',
18+
href: '/auth/sign-up',
19+
},
1520
];
1621
export function HomeNavigation() {
1722
return (
1823
<nav className="bg-white border border-gray-300 rounded-xl flex p-2 shadow m-3 justify-between max-w-screen-sm gap-4">
1924
<Button variant="ghost">
20-
<Image
21-
src={logoSvg}
22-
alt="Design System Project Logo - Redirects to Homepage"
23-
/>
25+
<Image src={logoSvg} alt="DS Pro Logo - Redirects to Homepage" />
2426
</Button>
2527
<ul className="flex">
2628
{navigationItems.map((item) => (
@@ -31,8 +33,9 @@ export function HomeNavigation() {
3133
</li>
3234
))}
3335
</ul>
36+
3437
<Button asChild>
35-
<Link href="/auth/sign-in">Sign Up</Link>
38+
<Link href={config.figmaWidgetUrl}>Install</Link>
3639
</Button>
3740
</nav>
3841
);

apps/engine/src/lib/metadata.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export function getMetadata({ title: _title }: GetMetadataArgs = {}): Metadata {
1111
return {
1212
title,
1313
description,
14-
keywords: 'design system, devops, engine, design, system, design tokens',
14+
keywords:
15+
'design system, devops, engine, design, system, design tokens, figma, figma widget',
1516
openGraph: {
1617
siteName: 'DS Pro',
1718
title,

0 commit comments

Comments
 (0)