Skip to content

Commit

Permalink
GitHub link (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
satelllte authored Nov 28, 2023
1 parent ed45188 commit 92ec064
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import {Suspense, lazy, useState} from 'react';
import {PlayIcon} from '@/components/icons';
import {Button} from '@/components/ui/Button';
import {GitHubLink} from '@/components/ui/GitHubLink';
import {SynthPageSkeleton} from '@/components/pages/SynthPage/SynthPageSkeleton';

const SynthPage = lazy(async () => {
Expand All @@ -22,6 +23,9 @@ export default function IndexPage() {
<Button size='large' aria-label='Launch' onClick={launch}>
<PlayIcon />
</Button>
<div className='absolute bottom-2'>
<GitHubLink />
</div>
</div>
);
}
Expand Down
5 changes: 5 additions & 0 deletions src/components/pages/SynthPage/SynthPageLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {GitHubLink} from '@/components/ui/GitHubLink';

type SynthPageLayoutProps = {
topPanel?: React.ReactNode;
children: [React.ReactNode, React.ReactNode];
Expand All @@ -15,6 +17,9 @@ export function SynthPageLayout({topPanel, children}: SynthPageLayoutProps) {
<div className='flex w-full items-center justify-center px-4 pt-16'>
{children[1]}
</div>
<div className='absolute bottom-2'>
<GitHubLink />
</div>
</div>
);
}
15 changes: 15 additions & 0 deletions src/components/ui/GitHubLink.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import Link from 'next/link';
import {GitHubLogoIcon} from '@radix-ui/react-icons';

export function GitHubLink() {
return (
<Link
href='https://github.com/satelllte/adsr'
target='_blank'
className='flex items-center'
>
<GitHubLogoIcon className='mr-1 inline h-4 w-4' />
<span>satelllte/adsr</span>
</Link>
);
}

0 comments on commit 92ec064

Please sign in to comment.