Skip to content

Commit

Permalink
Update siteConfig usage in signin and signup pages
Browse files Browse the repository at this point in the history
Replaced hardcoded text with references to siteConfig for site name and description in signin and signup pages. This change ensures consistent and dynamic site details across the application.

Took 15 minutes
  • Loading branch information
mikepsinn committed Nov 18, 2024
1 parent c406c50 commit decc99d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions app/(auth)/signin/page.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { Metadata } from "next"
import Link from "next/link"
import { siteConfig } from "@/config/site"

import { cn } from "@/lib/utils"
import { buttonVariants } from "@/components/ui/button"
import { Icons } from "@/components/icons"
import { UserAuthForm } from "@/components/user/user-auth-form"

export const metadata: Metadata = {
title: "Enter Wishonia",
description: "Become a citizen of Wishonia",
title: `Enter ${siteConfig.name}`,
description: siteConfig.description ,
}

export default function Signin() {
Expand All @@ -27,22 +28,21 @@ export default function Signin() {
</>
</Link>
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
<div className="flex flex-col space-y-2 text-center">
{/* <div className="flex flex-col space-y-2 text-center">
<h1 className="text-2xl font-semibold tracking-tight">
Welcome to Wishonia
Welcome to {siteConfig.name}
</h1>
<p className="text-sm text-muted-foreground">
Please verify your identity to enter the magical kingdom!
</p>
</div>
</div> */}
<UserAuthForm />
<p className="px-8 text-center text-sm text-muted-foreground">
Not a citizen yet?{" "}
<Link
href="/signup"
className="hover:text-brand underline underline-offset-4"
>
Become a citizen
Not a member yet?
</Link>
</p>
</div>
Expand Down
3 changes: 2 additions & 1 deletion app/(auth)/signup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { cn } from "@/lib/utils"
import { buttonVariants } from "@/components/ui/button"
import { Icons } from "@/components/icons"
import { UserAuthForm } from "@/components/user/user-auth-form"
import { siteConfig } from "@/config/site"

export const metadata: Metadata = {
title: "Sign up",
Expand All @@ -29,7 +30,7 @@ export default function Signup() {
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
<div className="flex flex-col space-y-2 text-center">
<h1 className="text-2xl font-semibold tracking-tight">
Become a Citizen of Wishonia
Join {siteConfig.name}
</h1>
<p className="text-sm text-muted-foreground">
Select a provider to verify your identity
Expand Down

0 comments on commit decc99d

Please sign in to comment.