Skip to content

Commit 884e92c

Browse files
authored
chore(web): update links (#1105)
Signed-off-by: Petr Kadlec <[email protected]>
1 parent 1e9d4a0 commit 884e92c

File tree

7 files changed

+25
-18
lines changed

7 files changed

+25
-18
lines changed

apps/beeai-web/src/constants.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ export const SupportedDockerRegistries = ['ghcr.io'];
1313

1414
export const GITHUB_REPO_LINK = 'https://github.com/i-am-bee';
1515

16+
export const FRAMEWORK_QUICKSTART_LINK = 'https://framework.beeai.dev/introduction/quickstart';
17+
1618
export const FRAMEWORK_DOCS_LINK = 'https://framework.beeai.dev';
1719

18-
export const FRAMEWORK_QUICKSTART_LINK = 'https://framework.beeai.dev/introduction/quickstart';
20+
export const FRAMEWORK_INTRO_LINK = 'https://framework.beeai.dev/introduction/welcome';
1921

20-
export const PLATFORM_QUICKSTART_LINK = 'https://docs.beeai.dev/introduction/quickstart';
22+
export const PLATFORM_INTRO_LINK = 'https://docs.beeai.dev/introduction/welcome';
2123

2224
export const DISCORD_LINK = 'https://discord.gg/NradeA6ZNF';
2325

apps/beeai-web/src/modules/home/Framework.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Code, Constraint, FlowConnection, Plug, Shapes } from '@carbon/icons-re
88
import { Theme, useTheme } from '@i-am-bee/beeai-ui';
99
import { useIsClient } from 'usehooks-ts';
1010

11-
import { FRAMEWORK_QUICKSTART_LINK } from '@/constants';
11+
import { FRAMEWORK_INTRO_LINK } from '@/constants';
1212
import { LayoutContainer } from '@/layouts/LayoutContainer';
1313

1414
import FileConfigYaml from './assets/file-config-yaml.svg';
@@ -31,7 +31,7 @@ export function Framework() {
3131
<HeadlineWithLink
3232
title="beeai-framework"
3333
description="Build reliable, intelligent agents with our lightweight framework that goes beyond prompting and enforces rules."
34-
buttonProps={{ url: FRAMEWORK_QUICKSTART_LINK }}
34+
buttonProps={{ url: FRAMEWORK_INTRO_LINK }}
3535
inverse
3636
/>
3737

apps/beeai-web/src/modules/home/Introduction.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
'use client';
77
import { LayoutContainer } from '@/layouts/LayoutContainer';
88

9-
import { GitHubButton } from './components/GitHubButton';
109
import { LogoBeeAI } from './components/LogoBeeAI';
10+
import { PrimaryCTALink } from './components/PrimaryCTALink';
1111
import classes from './Introduction.module.scss';
1212

1313
export function Introduction() {
@@ -19,7 +19,7 @@ export function Introduction() {
1919
<LogoBeeAI /> <br />
2020
control and agency without compromise
2121
</h1>
22-
<GitHubButton />
22+
<PrimaryCTALink />
2323
</div>
2424
</section>
2525
</LayoutContainer>

apps/beeai-web/src/modules/home/Platform.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { Deploy, Gui, Unlocked } from '@carbon/icons-react';
88
import Image from 'next/image';
99

10-
import { PLATFORM_QUICKSTART_LINK } from '@/constants';
10+
import { PLATFORM_INTRO_LINK } from '@/constants';
1111
import { LayoutContainer } from '@/layouts/LayoutContainer';
1212

1313
import InterfaceUsageAlt from './assets/interface-usage-alt.svg';
@@ -27,7 +27,7 @@ export function Platform() {
2727
<HeadlineWithLink
2828
title="beeai-platform"
2929
description="Test, debug, and share your agents in an interactive UI with out-of-the-box trajectory, citations, and more."
30-
buttonProps={{ url: PLATFORM_QUICKSTART_LINK }}
30+
buttonProps={{ url: PLATFORM_INTRO_LINK }}
3131
/>
3232
</div>
3333

apps/beeai-web/src/modules/home/components/HeadlineWithLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function HeadlineWithLink({ title, inverse, description, buttonProps }: P
2626
<p>{description}</p>
2727
{buttonProps && (
2828
<Button renderIcon={ArrowRight} href={buttonProps.url} target="_blank" rel="noreferrer">
29-
{buttonProps?.label ?? 'Get started'}
29+
{buttonProps?.label ?? 'Learn more'}
3030
</Button>
3131
)}
3232
</div>

apps/beeai-web/src/modules/home/components/GitHubButton.module.scss renamed to apps/beeai-web/src/modules/home/components/PrimaryCTALink.module.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@
55

66
.root {
77
&:global(.cds--btn) {
8-
@include type-style(body-compact-01);
9-
min-inline-size: rem(229px);
8+
font-size: rem(16px);
9+
min-inline-size: rem(208px);
1010
column-gap: $spacing-03;
1111
justify-content: flex-start;
1212
align-items: center;
1313
padding-inline-end: rem(20px);
14+
svg {
15+
inline-size: rem(24px);
16+
block-size: rem(24px);
17+
margin-block-start: rem(-1px); // vertical position correction
18+
}
1419
}
1520
}

apps/beeai-web/src/modules/home/components/GitHubButton.tsx renamed to apps/beeai-web/src/modules/home/components/PrimaryCTALink.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { LogoGithub } from '@carbon/icons-react';
6+
import { ArrowRight } from '@carbon/icons-react';
77
import { Button } from '@carbon/react';
88

9-
import { GITHUB_REPO_LINK } from '@/constants';
9+
import { FRAMEWORK_QUICKSTART_LINK } from '@/constants';
1010

11-
import classes from './GitHubButton.module.scss';
11+
import classes from './PrimaryCTALink.module.scss';
1212

13-
export function GitHubButton() {
13+
export function PrimaryCTALink() {
1414
return (
1515
<Button
1616
as="a"
17-
href={GITHUB_REPO_LINK}
17+
href={FRAMEWORK_QUICKSTART_LINK}
1818
target="_blank"
1919
rel="noreferrer"
2020
size="lg"
2121
className={classes.root}
22-
renderIcon={LogoGithub}
22+
renderIcon={ArrowRight}
2323
>
24-
Get started on GitHub
24+
Get started
2525
</Button>
2626
);
2727
}

0 commit comments

Comments
 (0)