Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move the previous/next buttons further up #28

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/forms/first-registration/has-child.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function HasChild() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -66,7 +66,7 @@ export function HasChild() {
</div>
</div>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function IsFirstRegistration() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -69,7 +69,7 @@ export function IsFirstRegistration() {
</div>
</div>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
4 changes: 2 additions & 2 deletions src/components/forms/first-registration/is-married.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function IsMarried() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -65,7 +65,7 @@ export function IsMarried() {
</div>
</div>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function IsRegisteringChild() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -69,7 +69,7 @@ export function IsRegisteringChild() {
</div>
</div>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function IsRegisteringMoreThanTwo() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -70,7 +70,7 @@ export function IsRegisteringMoreThanTwo() {
</div>
</div>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function IsRegisteringSpouse() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -69,7 +69,7 @@ export function IsRegisteringSpouse() {
</div>
</div>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
8 changes: 2 additions & 6 deletions src/components/forms/intro/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,14 @@ export function Intro() {
e.preventDefault();
goToNextStep();
}}
className="flex h-full flex-col justify-end gap-10"
className="flex w-full flex-col gap-9 lg:h-96"
>
<div className="flex flex-col gap-4">
<h1 className="text-xl font-semibold">
{t("intro.title", language)}
</h1>

<p>{t("intro.p1", language)}</p>

<Appointment />
</div>
<div className="flex h-full w-full items-end justify-end">
<div className="flex w-full justify-end">
<PrimaryButton label={t("button.next", language)} type="submit" />
</div>
</form>
Expand Down
4 changes: 2 additions & 2 deletions src/components/forms/nationality/is-european.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function IsEuropean() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -65,7 +65,7 @@ export function IsEuropean() {
</div>
</div>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
4 changes: 2 additions & 2 deletions src/components/forms/nationality/is-german-under-16.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function IsGermanUnder16() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -67,7 +67,7 @@ export function IsGermanUnder16() {
</div>
</div>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
4 changes: 2 additions & 2 deletions src/components/forms/nationality/is-german.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function IsGerman() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -65,7 +65,7 @@ export function IsGerman() {
</div>
</div>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
4 changes: 2 additions & 2 deletions src/components/forms/nationality/is-non-german-under-16.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function IsNonGermanUnder16() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -69,7 +69,7 @@ export function IsNonGermanUnder16() {
</div>
</div>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
4 changes: 2 additions & 2 deletions src/components/forms/nationality/is-refugee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function IsRefugee() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -76,7 +76,7 @@ export function IsRefugee() {
</a>
</p>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function HasOtherResidence() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -69,7 +69,7 @@ export function HasOtherResidence() {
</div>
</div>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function IsOtherResidenceAbroad() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -69,7 +69,7 @@ export function IsOtherResidenceAbroad() {
</div>
</div>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function IsRegisteringForMoreThanSixMonths() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -84,7 +84,7 @@ export function IsRegisteringForMoreThanSixMonths() {
</a>
</p>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function IsRegisteringForMoreThanThreeMonths() {

return (
<form
className="flex h-full w-full flex-col gap-5"
className="flex h-80 w-full flex-col gap-12 lg:h-96"
onSubmit={(e) => {
e.preventDefault();
goToNextStep();
Expand Down Expand Up @@ -85,7 +85,7 @@ export function IsRegisteringForMoreThanThreeMonths() {
</a>
</p>

<div className="flex h-full w-full flex-row-reverse items-end justify-between pt-10">
<div className="flex w-full flex-row-reverse items-end justify-between">
<div
className={`${
!isValid
Expand Down
4 changes: 2 additions & 2 deletions src/components/steps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export function Steps() {

return (
<div
className={`flex h-full w-[22rem] flex-col items-end gap-4 print:w-full lg:text-lg ${
currentStep < 16 && "pt-12"
className={`flex h-full w-[22rem] flex-col gap-4 print:w-full lg:text-lg ${
currentStep < 16 && "pt-4 lg:pt-12"
}`}
>
{steps[currentStep]}
Expand Down
Loading