Skip to content

Commit

Permalink
Store some links in the global shared file
Browse files Browse the repository at this point in the history
  • Loading branch information
Breno committed Nov 4, 2024
1 parent 6d5dee7 commit 85603be
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
4 changes: 3 additions & 1 deletion shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import { Author } from './src/templates/author/shared';
export const webinarsUrl =
'https://try.estuary.dev/webinar-estuary101-ondemand';

export const dashboardRegisterUrl = 'https://dashboard.estuary.dev/register';
export const dashboardUrl = 'https://dashboard.estuary.dev';
export const dashboardRegisterUrl = `${dashboardUrl}/register`;
export const statusPageUrl = 'https://status.estuary.dev/';
export const docsPageUrl = 'https://docs.estuary.dev';
export const slackUrl =
'https://estuary-dev.slack.com/join/shared_invite/zt-86nal6yr-VPbv~YfZE9Q~6Zl~gmZdFQ#/shared-invite/email';
export const estuaryFlowGithubUrl = 'https://github.com/estuary/flow/';

export const estuaryProductFlowVideoUrl =
'https://www.youtube.com/embed/hlCh81ZbBik';
Expand Down
11 changes: 8 additions & 3 deletions src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ import SlackIcon from '../../svgs/slack-outline.svg';
import TwitterIcon from '../../svgs/twitter-outline.svg';
import { ButtonOutlinedPrimary } from '../../globalStyles';
import NewsletterSignupForm from '../NewsletterSignupForm';
import { docsPageUrl, slackUrl, statusPageUrl } from '../../../shared';
import {
docsPageUrl,
estuaryFlowGithubUrl,
slackUrl,
statusPageUrl,
} from '../../../shared';
import {
footer,
globalFooterWrapper,
Expand Down Expand Up @@ -86,7 +91,7 @@ const Footer = () => {
</Link>
<OutboundLink
target="_blank"
href="https://github.com/estuary/flow/"
href={estuaryFlowGithubUrl}
className={globalFooterRightLink}
>
Github
Expand Down Expand Up @@ -167,7 +172,7 @@ const Footer = () => {
</OutboundLink>
<OutboundLink
target="_blank"
href="https://github.com/estuary/flow"
href={estuaryFlowGithubUrl}
aria-label="Github Repo Link"
>
<GithubIcon className={footerSocialIconStyle} />
Expand Down
11 changes: 8 additions & 3 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ import {
globalHeaderLogo,
globalHeaderTitle,
} from '../styles.module.less';
import { dashboardRegisterUrl, slackUrl } from '../../../shared';
import {
dashboardRegisterUrl,
dashboardUrl,
estuaryFlowGithubUrl,
slackUrl,
} from '../../../shared';
import {
globalHeader,
globalHeaderWrapper,
Expand Down Expand Up @@ -211,7 +216,7 @@ const Header = ({ fixedHeader }: HeaderProps) => {
</OutboundLink>
<OutboundLink
target="_blank"
href="https://github.com/estuary/flow"
href={estuaryFlowGithubUrl}
className={headerSocialIcon}
aria-label="Github Repo Link"
>
Expand All @@ -222,7 +227,7 @@ const Header = ({ fixedHeader }: HeaderProps) => {
<OutboundLink
target="_blank"
className={globalHeaderLink}
href="https://dashboard.estuary.dev"
href={dashboardUrl}
style={{ marginRight: '1rem' }}
>
Log in
Expand Down

0 comments on commit 85603be

Please sign in to comment.