@@ -1044,8 +1044,8 @@ export function FlightSearch({ className }: FlightSearchProps) {
1044
1044
1045
1045
return (
1046
1046
< >
1047
- < div className = "z-20 text-center" >
1048
- < h1 className = "mb-6 ml-8 mt-24 text-left text-2xl font-bold md :mb-10 md:mt-32 md :text-center md :text-3xl" >
1047
+ < div className = "z-20 mt-24 text-center lg:mt-32 " >
1048
+ < h1 className = "mx-auto mb-6 max-w-xl px-4 text-left text-2xl font-bold lg :mb-10 lg:max-w-6xl lg :text-center lg :text-3xl" >
1049
1049
Find the best Ryanair deals!
1050
1050
</ h1 >
1051
1051
</ div >
@@ -1054,22 +1054,22 @@ export function FlightSearch({ className }: FlightSearchProps) {
1054
1054
e . preventDefault ( ) ;
1055
1055
handleSubmit ( ) ;
1056
1056
} }
1057
- className = "mx-auto max-w-6xl px-4"
1057
+ className = "mx-auto max-w-xl px-4 lg:max-w-6xl "
1058
1058
role = "search"
1059
1059
aria-label = "Flight search form"
1060
1060
>
1061
- < div className = "items-left flex flex-col gap-4 text-base leading-relaxed md :items-center md :gap-6 md :text-lg" >
1061
+ < div className = "items-left flex flex-col gap-4 text-base leading-relaxed lg :items-center lg :gap-6 lg :text-lg" >
1062
1062
{ /* Trip Type Question */ }
1063
1063
{ animationStates . tripType . question && (
1064
1064
< PopMotion
1065
1065
key = "mode-section"
1066
- className = "flex flex-col gap-x-2 gap-y-2 md :flex-row md :items-center md :gap-y-4"
1066
+ className = "flex flex-col gap-x-2 gap-y-2 lg :flex-row lg :items-center lg :gap-y-4"
1067
1067
aria-label = "trip-type-group"
1068
1068
>
1069
1069
< QuestionBubble
1070
1070
question = "What type of the trip you want?"
1071
1071
isAnswered = { answeredQuestions . tripType }
1072
- className = "self-start md :self-auto"
1072
+ className = "self-start lg :self-auto"
1073
1073
/>
1074
1074
{ shouldShowValue ( "tripType" ) && (
1075
1075
< BaseModal
@@ -1083,7 +1083,7 @@ export function FlightSearch({ className }: FlightSearchProps) {
1083
1083
onChange = { ( value ) => updateFormForTripType ( value as TripType ) }
1084
1084
placeholder = "Select flight type"
1085
1085
aria-label = "Select trip type"
1086
- className = "self-end md :self-auto"
1086
+ className = "self-end lg :self-auto"
1087
1087
/>
1088
1088
) }
1089
1089
</ PopMotion >
@@ -1093,15 +1093,15 @@ export function FlightSearch({ className }: FlightSearchProps) {
1093
1093
{ shouldShowQuestion ( "passengers" ) && (
1094
1094
< PopMotion
1095
1095
key = "passenger-section"
1096
- className = "flex flex-col gap-x-2 gap-y-2 md :flex-row md :items-center md :gap-y-4"
1096
+ className = "flex flex-col gap-x-2 gap-y-2 lg :flex-row lg :items-center lg :gap-y-4"
1097
1097
>
1098
1098
< QuestionBubble
1099
1099
question = "How many passengers?"
1100
1100
isAnswered = { answeredQuestions . passengers }
1101
- className = "min-w-[200px] self-start md :self-auto"
1101
+ className = "min-w-[200px] self-start lg :self-auto"
1102
1102
/>
1103
1103
{ shouldShowValue ( "passengers" ) && (
1104
- < div className = "self-end md :self-auto" >
1104
+ < div className = "self-end lg :self-auto" >
1105
1105
< PassengerModal
1106
1106
passengers = { passengers }
1107
1107
onChange = { handlePassengersChange }
@@ -1117,17 +1117,17 @@ export function FlightSearch({ className }: FlightSearchProps) {
1117
1117
{ shouldShowQuestion ( "locations" ) && (
1118
1118
< PopMotion
1119
1119
key = "locations-section"
1120
- className = "flex flex-col gap-2 md :flex-row md :items-center"
1120
+ className = "flex flex-col gap-2 lg :flex-row lg :items-center"
1121
1121
>
1122
1122
< QuestionBubble
1123
1123
question = "From where to fly?"
1124
1124
isAnswered = { answeredQuestions . locations }
1125
- className = "min-w-[200px] self-start md :self-auto"
1125
+ className = "min-w-[200px] self-start lg :self-auto"
1126
1126
/>
1127
1127
{ shouldShowValue ( "locations" ) && (
1128
- < div className = "flex flex-col items-end gap-2 self-end md :flex-row md :items-center md :self-auto" >
1128
+ < div className = "flex flex-col items-end gap-2 self-end lg :flex-row lg :items-center lg :self-auto" >
1129
1129
< div className = "flex flex-wrap items-center justify-end gap-2" >
1130
- < div className = "flex items-center gap-1 md :gap-2" >
1130
+ < div className = "flex items-center gap-1 lg :gap-2" >
1131
1131
< span className = "text-bubble-color dark:text-bubble-color" > </ span >
1132
1132
< span className = "inline-block transition-all" >
1133
1133
< MultiCombobox
@@ -1146,7 +1146,7 @@ export function FlightSearch({ className }: FlightSearchProps) {
1146
1146
/>
1147
1147
</ span >
1148
1148
</ div >
1149
- < div className = "ml-1 flex items-center gap-1 md :gap-2" >
1149
+ < div className = "ml-1 flex items-center gap-1 lg :gap-2" >
1150
1150
< span className = "text-bubble-color dark:text-bubble-color" > </ span >
1151
1151
< span className = "inline-block transition-all" >
1152
1152
< MultiCombobox
@@ -1179,15 +1179,15 @@ export function FlightSearch({ className }: FlightSearchProps) {
1179
1179
{ shouldShowQuestion ( "dates" ) && (
1180
1180
< PopMotion
1181
1181
key = "dates-section"
1182
- className = "flex flex-col gap-2 md :flex-row md :items-center"
1182
+ className = "flex flex-col gap-2 lg :flex-row lg :items-center"
1183
1183
>
1184
1184
< QuestionBubble
1185
1185
question = "What is your search window?"
1186
1186
isAnswered = { answeredQuestions . dates }
1187
- className = "min-w-[200px] self-start md :self-auto"
1187
+ className = "min-w-[200px] self-start lg :self-auto"
1188
1188
/>
1189
1189
{ shouldShowValue ( "dates" ) && (
1190
- < div className = "self-end md :self-auto" >
1190
+ < div className = "self-end lg :self-auto" >
1191
1191
{ tripType === "weekend" || tripType === "longWeekend" ? (
1192
1192
< NumberModal
1193
1193
value = { weekendCount }
@@ -1216,15 +1216,15 @@ export function FlightSearch({ className }: FlightSearchProps) {
1216
1216
{ tripType === "return" && shouldShowQuestion ( "duration" ) && (
1217
1217
< PopMotion
1218
1218
key = "duration-section"
1219
- className = "flex flex-col gap-2 md :flex-row md :items-center"
1219
+ className = "flex flex-col gap-2 lg :flex-row lg :items-center"
1220
1220
>
1221
1221
< QuestionBubble
1222
1222
question = "How long is the trip?"
1223
1223
isAnswered = { answeredQuestions . duration }
1224
- className = "min-w-[200px] self-start md :self-auto"
1224
+ className = "min-w-[200px] self-start lg :self-auto"
1225
1225
/>
1226
1226
{ shouldShowValue ( "duration" ) && (
1227
- < div className = "flex items-center gap-2 self-end md :self-auto" >
1227
+ < div className = "flex items-center gap-2 self-end lg :self-auto" >
1228
1228
< NumberModal
1229
1229
value = { minDays }
1230
1230
onChange = { ( value ) => handleDurationChange ( value , maxDays ) }
@@ -1257,15 +1257,15 @@ export function FlightSearch({ className }: FlightSearchProps) {
1257
1257
{ shouldShowQuestion ( "budget" ) && (
1258
1258
< PopMotion
1259
1259
key = "budget-section"
1260
- className = "flex flex-col gap-2 md :flex-row md :items-center"
1260
+ className = "flex flex-col gap-2 lg :flex-row lg :items-center"
1261
1261
>
1262
1262
< QuestionBubble
1263
1263
question = "What is the trip budget?"
1264
1264
isAnswered = { answeredQuestions . budget }
1265
- className = "min-w-[200px] self-start md :self-auto"
1265
+ className = "min-w-[200px] self-start lg :self-auto"
1266
1266
/>
1267
1267
{ shouldShowValue ( "budget" ) && (
1268
- < div className = "self-end md :self-auto" >
1268
+ < div className = "self-end lg :self-auto" >
1269
1269
< PriceModal
1270
1270
value = { maxPrice }
1271
1271
onChange = { handleBudgetChange }
0 commit comments