Skip to content

Commit

Permalink
feat: move the previous/next buttons further up
Browse files Browse the repository at this point in the history
Signed-off-by: Raphael Arce <[email protected]>
  • Loading branch information
raphael-arce committed Feb 15, 2024
1 parent 1bce679 commit a327013
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 38 deletions.
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 @@ -22,7 +22,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 @@ -61,7 +61,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 @@ -26,7 +26,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 @@ -64,7 +64,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 @@ -22,7 +22,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 @@ -60,7 +60,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 @@ -26,7 +26,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 @@ -64,7 +64,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 @@ -26,7 +26,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 @@ -65,7 +65,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 @@ -26,7 +26,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 @@ -64,7 +64,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 @@ -22,7 +22,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 @@ -60,7 +60,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 @@ -24,7 +24,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 @@ -62,7 +62,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 @@ -22,7 +22,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 @@ -60,7 +60,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 @@ -26,7 +26,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 @@ -64,7 +64,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 @@ -22,7 +22,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 @@ -71,7 +71,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
4 changes: 2 additions & 2 deletions src/components/forms/other-residence/has-other-residence.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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 @@ -64,7 +64,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 @@ -26,7 +26,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 @@ -64,7 +64,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 @@ -28,7 +28,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 @@ -79,7 +79,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 || !needsRegistration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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 @@ -80,7 +80,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 || !needsRegistration
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

0 comments on commit a327013

Please sign in to comment.