Skip to content

Commit

Permalink
feat: add link to the GitHub repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ixartz committed Mar 29, 2024
1 parent 8b9036a commit ed42176
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
8 changes: 5 additions & 3 deletions src/app/[locale]/(auth)/dashboard/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Protect } from '@clerk/nextjs';
import Link from 'next/link';
import { useTranslations } from 'next-intl';

import { buttonVariants } from '@/components/ui/button';
Expand Down Expand Up @@ -57,9 +56,12 @@ const DashboardIndexPage = () => {
/>
}
>
<Link className={buttonVariants({ size: 'lg' })} href="/">
<a
className={buttonVariants({ size: 'lg' })}
href="https://github.com/ixartz/SaaS-Boilerplate"
>
{t('message_state_button')}
</Link>
</a>
</Protect>
}
/>
Expand Down
7 changes: 3 additions & 4 deletions src/templates/CTA.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { GitHubLogoIcon } from '@radix-ui/react-icons';
import Link from 'next/link';
import { useTranslations } from 'next-intl';

import { buttonVariants } from '@/components/ui/button';
Expand All @@ -15,13 +14,13 @@ const CTA = () => {
title={t('title')}
description={t('description')}
buttons={
<Link
<a
className={buttonVariants({ variant: 'outline', size: 'lg' })}
href="/"
href="https://github.com/ixartz/SaaS-Boilerplate"
>
<GitHubLogoIcon className="mr-2 size-5" />
{t('button_text')}
</Link>
</a>
}
/>
</Section>
Expand Down
14 changes: 8 additions & 6 deletions src/templates/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { GitHubLogoIcon, TwitterLogoIcon } from '@radix-ui/react-icons';
import Link from 'next/link';
import { useTranslations } from 'next-intl';

import { buttonVariants } from '@/components/ui/button';
Expand Down Expand Up @@ -30,17 +29,20 @@ const Hero = () => {
description={t('description')}
buttons={
<>
<Link className={buttonVariants({ size: 'lg' })} href="/">
<a
className={buttonVariants({ size: 'lg' })}
href="https://github.com/ixartz/SaaS-Boilerplate"
>
{t('primary_button')}
</Link>
</a>

<Link
<a
className={buttonVariants({ variant: 'outline', size: 'lg' })}
href="/"
href="https://github.com/ixartz/SaaS-Boilerplate"
>
<GitHubLogoIcon className="mr-2 size-5" />
{t('secondary_button')}
</Link>
</a>
</>
}
/>
Expand Down

0 comments on commit ed42176

Please sign in to comment.