Skip to content

Commit

Permalink
Merge pull request #43 from genesluna/develop
Browse files Browse the repository at this point in the history
feat: add missing pages (#42)
  • Loading branch information
genesluna authored Jul 19, 2024
2 parents dc6adca + bef80a8 commit acb3ee1
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/auth/login/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import HorizontalLayout from '@components/layouts/horizontal-layout';
import LoginForm from '@components/forms/login-form';

export default function LoginPage() {
return (
<HorizontalLayout>
<h1 className='text-4xl font-bold text-accent'>Bem-vindo</h1>
<p className='mt-2 text-lg text-content-300'>Acesse a sua conta</p>
<LoginForm />
</HorizontalLayout>
);
}
14 changes: 14 additions & 0 deletions app/auth/register/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import RegisterForm from '@components/forms/register-form';
import HorizontalLayout from '@components/layouts/horizontal-layout';

export default function RegisterPage() {
return (
<HorizontalLayout>
<h1 className='text-4xl font-bold text-accent'>Bem-vindo</h1>
<p className='mt-2 text-lg text-content-300'>
Crie sua conta de novo abrigo
</p>
<RegisterForm />
</HorizontalLayout>
);
}
12 changes: 12 additions & 0 deletions app/contact/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import ContactForm from '@components/forms/contact-form';
import HorizontalLayout from '@components/layouts/horizontal-layout';

export default function ContactPage() {
return (
<HorizontalLayout>
<h1 className='text-4xl font-bold text-accent'>Contato</h1>
<p className='mt-2 text-lg text-content-300'>Escreva sua mensagem</p>
<ContactForm />
</HorizontalLayout>
);
}
24 changes: 24 additions & 0 deletions app/pet/adoption/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import HorizontalLayout from '@components/layouts/horizontal-layout';
import AdoptionForm from '@components/forms/adoption-form';

interface AdoptionPageProps {
searchParams: {
id: string;
name: string;
gender: string;
};
}

export default function AdoptionPage({ searchParams }: AdoptionPageProps) {
return (
<HorizontalLayout>
<h1 className='text-4xl font-bold text-accent'>{`Adote ${
searchParams.gender === 'Macho' ? 'o' : 'a'
} ${searchParams.name}`}</h1>
<p className='mt-2 max-w-[467px] text-lg text-content-300'>
Faça sua solicitação e entraremos em contato o mais rápido possível.
</p>
<AdoptionForm petId={searchParams.id} />
</HorizontalLayout>
);
}

0 comments on commit acb3ee1

Please sign in to comment.