From 2e0cae3f605137cfd6eae7def1a657f3d534b1af Mon Sep 17 00:00:00 2001 From: Vladimir Skrjabin Date: Fri, 27 Oct 2023 16:51:05 +0300 Subject: [PATCH] mobile styles added --- src/components/information/CarInformation.jsx | 240 +++++++++--------- 1 file changed, 119 insertions(+), 121 deletions(-) diff --git a/src/components/information/CarInformation.jsx b/src/components/information/CarInformation.jsx index 7a1ebaf..5d29a5c 100644 --- a/src/components/information/CarInformation.jsx +++ b/src/components/information/CarInformation.jsx @@ -80,133 +80,131 @@ function CarInformation({ car }) { setIsSlotAvailable(false); }, [fromSlot, toSlot]); - - return (
-
- -

{car.brand}

-

{car.name}

- - - {/* Buttons group */} - -
- { - setFromSlot(value[0].toDate()); - setToSlot(value[1].toDate()); - }} - disabledDate={(current) => { - return current && current < moment().endOf("day"); - }} - /> - - -
- -
- - - - - -
- - {fromSlot && toSlot && ( -
-

- Total Hours: {moment(toSlot).diff(moment(fromSlot), "hours")} +
+ +

{car.brand}

+

+ {car.name}

-

- Total Amount:{" "} - {moment(toSlot).diff(moment(fromSlot), "hours") * car?.price} € -

+ {/* Buttons group */} + +
+ { + setFromSlot(value[0].toDate()); + setToSlot(value[1].toDate()); + }} + disabledDate={(current) => { + return current && current < moment().endOf("day"); + }} + /> + + +
+ +
+ + + + + +
+ + {fromSlot && toSlot && ( +
+

+ Total Hours: {moment(toSlot).diff(moment(fromSlot), "hours")} +

+ +

+ Total Amount:{" "} + {moment(toSlot).diff(moment(fromSlot), "hours") * car?.price} € +

+
+ )} + +
+ + + Fuel type of this model + + + {car.fuelType} + + + + + + Price per hour including insurance + + + {car.price} € + + + + + + Insurance policy + + + Our insurance coverage applies when the client is not proven to be + at fault. In cases where the client's fault is not established, + the insurance will cover any damages to the rental vehicle. + + +
- )} - -
- - - Fuel type of this model - - - {car.fuelType} - - - - - - Price per hour including insurance - - - {car.price} € - - - - - - Insurance policy - - - Our insurance coverage applies when the client is not proven to be - at fault. In cases where the client's fault is not established, the - insurance will cover any damages to the rental vehicle. - -
-

-
- ); }