Skip to content

Commit

Permalink
fill in some placeholder links
Browse files Browse the repository at this point in the history
  • Loading branch information
Tropix126 committed Jan 12, 2024
1 parent 7cb2edd commit 89f9b98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
export const CRATE_NAME = `pros`;

export const GITHUB_ORG_URL = `https://github.com/pros-rs`;
export const GITHUB_REPO_URL = `${GITHUB_ORG_URL}/pros-rs`;

export const DISCORD_INVITE_CODE = `y9mcGuQRYz`;
export const DISCORD_INVITE_URL = `https://discord.gg/y9mcGuQRYz`;

export interface Example {
name: string;
code: string;
Expand Down
5 changes: 3 additions & 2 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Navigation from '~/components/Navigation.astro';
import NavigationItem from '~/components/NavigationItem.astro';
import Button from '~/components/Button.svelte';
import { GITHUB_REPO_URL, DISCORD_INVITE_URL } from '~/constants';
interface Props {
name?: string;
Expand Down Expand Up @@ -70,8 +71,8 @@ const {
<NavigationItem href="#">Simulator</NavigationItem>
<NavigationItem href="#">Blog</NavigationItem>
<Fragment slot="actions">
<Button href="#">Discord</Button>
<Button href="#">GitHub</Button>
<Button href={DISCORD_INVITE_URL} target="_blank" rel="noreferrer noopener">Discord</Button>
<Button href={GITHUB_REPO_URL} target="_blank" rel="noreferrer noopener">GitHub</Button>
</Fragment>
</Navigation>
<slot />
Expand Down

0 comments on commit 89f9b98

Please sign in to comment.