Skip to content

Commit

Permalink
Add login button
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanalemunioz committed Dec 12, 2024
1 parent a4c2cf3 commit 22a2997
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/config/nav-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export const navMenuConfig: NavMenuConfig = {
image: "",
external: true
},
{
title: "Login",
href: siteConfig.links.app,
description: "",
image: "",
},
{
title: "Github",
href: siteConfig.links.github,
Expand Down
1 change: 1 addition & 0 deletions src/config/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const siteConfig: SiteConfig = {
links: {
discord: "https://discord.gg/A6TuHEyAZm",
github: "https://github.com/afipsdk",
app: "https://app.afipsdk.com",
docs: "https://docs.afipsdk.com",
productionDocs: "https://docs.afipsdk.com/paso-a-paso/ir-a-produccion",
sdkPython: 'https://github.com/afipsdk/afip.py',
Expand Down
7 changes: 7 additions & 0 deletions src/layouts/main-layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ const { title, description, mainClass } = Astro.props;
/>

<div class="flex items-center gap-x-4" slot="right-header">
<a
href={siteConfig.links.app}
class={cn(buttonVariants({ size: "sm", variant: 'ghost' }), 'hidden md:flex')}
>
Login
</a>

<a
href={siteConfig.links.github}
target="_blank"
Expand Down
1 change: 1 addition & 0 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export type SiteConfig = {
links: {
discord: string;
github: string;
app: string;
docs: string;
productionDocs: string;
sdkJs: string;
Expand Down

0 comments on commit 22a2997

Please sign in to comment.