Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Update Khoj Cloud link and deduplicate it into a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
debanjum committed Nov 29, 2023
1 parent 70ba6a5 commit 70edbc0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/NavMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { MenuProps } from 'antd';
import Icon from '@ant-design/icons';

import { DiscordIcon, GithubIcon } from './components/Icons';
import { DISCORD_LINK, GITHUB_KHOJ, DEV_DOCS } from './common/constants';
import { DISCORD_LINK, GITHUB_KHOJ, DEV_DOCS, CLOUD_LINK } from './common/constants';

export default function NavMenu() {

Expand All @@ -36,7 +36,7 @@ export default function NavMenu() {

const primaryCTA = {
label: (
<a className='primary-cta' href="https://app.khoj.dev">
<a className='primary-cta' href={CLOUD_LINK}>
Get Started
</a>
),
Expand Down
1 change: 1 addition & 0 deletions src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export const WAITLIST_API_URL = process.env.NODE_ENV == 'production' ? "https://
export const DISCORD_LINK = "https://discord.gg/BDgyabRM6e";
export const DEV_DOCS = "https://docs.khoj.dev/#/";
export const GITHUB_KHOJ = "https://github.com/khoj-ai/khoj";
export const CLOUD_LINK = "https://app.khoj.dev/login?";
6 changes: 3 additions & 3 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '../styles/Home.css';
import { Button } from 'antd';
import { Link } from "react-router-dom";
import { DISCORD_LINK, DEV_DOCS } from '../common/constants';
import { DISCORD_LINK, DEV_DOCS, CLOUD_LINK } from '../common/constants';
import ChatBubbles from '../components/ChatBubbles';
import IconDisplay from '../components/IconsDisplay';

Expand Down Expand Up @@ -88,7 +88,7 @@ export function Home() {
size='large'
className='cta-button'
style={{borderRadius: '4px', fontSize: 'x-large', height: '50px' }}
href="https://app.khoj.dev">
href={CLOUD_LINK}>
Try the Beta
</Button>
</div>
Expand Down Expand Up @@ -154,7 +154,7 @@ export function Home() {
size='large'
className='cta-button'
style={{borderRadius: '4px', fontSize: 'x-large', height: '50px' }}
href="https://app.khoj.dev">
href={CLOUD_LINK}>
Get started
</Button>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/Pricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Link } from 'react-router-dom';
import { Button } from 'antd';

import '../styles/Pricing.css';
import { CLOUD_LINK } from '../common/constants';

const Pricing = () => {
return (
Expand Down Expand Up @@ -32,7 +33,7 @@ const Pricing = () => {
size='large'
className='cta-button'
style={{borderRadius: '4px', fontSize: 'x-large', height: '50px' }}
href="https://app.khoj.dev">
href={CLOUD_LINK}>
Get Started
</Button>
</div>
Expand Down

0 comments on commit 70edbc0

Please sign in to comment.