diff --git a/app/UserInterface/Domain/Homepage/Resources/sass/_recent_trip.scss b/app/UserInterface/Domain/Homepage/Resources/sass/_recent_trip.scss new file mode 100644 index 0000000..5d5e1e4 --- /dev/null +++ b/app/UserInterface/Domain/Homepage/Resources/sass/_recent_trip.scss @@ -0,0 +1,98 @@ +#recent_trip_wrapper { + .page-item { + &:not(#datatable_previous, #datatable_next) { + a { + background-color: var(--color-secondary-color); + border-color: var(--color-secondary-color); + + &:hover { + background-color: var(--color-secondary-color-hover); + border-color: var(--color-secondary-color-hover); + } + } + } + + } +} + +.dt-recent-trip-wrapper { + display: inline-block; + background-color: var(--color-tertiary-color); + color: white; + border-radius: 50%; + padding: 0.5em; + font-size: 1.25em; + font-weight: bold; + width: 2.8em; + height: 2.8em; + + .number { + display: flex; + justify-content: center; + align-items: center; + height: 100%; + font-size: 0.75em; + } +} + +.r-type-inline-d { + font-size: 1.5rem; +} + +.r-type-inline-l { + color: grey; + text-overflow: ellipsis; +} + +.trip-review-container { + max-height: 125px; + height: 125px; + display: flex; + justify-content: space-evenly; + padding-left: 1rem; + flex-direction: column; + + .trip-review { + display: flex; + align-items: center; + margin-top: 0.25rem; + + &-title-wrapper { + display: flex; + justify-content: center; + width: 100%; + flex-direction: column; + + + .trip-review-title { + font-size: 1.25rem; + font-weight: 500; + } + + .trip-review-unit { + font-size: 0.75rem; + font-weight: 400; + color: var(--color-gray-500); + } + } + + &-value-wrapper { + width: 70px; + height: 35px; + margin-right: 1rem; + display: flex; + justify-content: center; + align-items: center; + background-color: var(--color-tertiary-color); + border-radius: 0.25rem; + + + .trip-review-value { + margin-top: 3px; + font-size: 1.25rem; + font-weight: 700; + color: white; + } + } + } +} \ No newline at end of file diff --git a/app/UserInterface/Domain/Homepage/Resources/views/homepage.blade.php b/app/UserInterface/Domain/Homepage/Resources/views/homepage.blade.php index b9e9900..21b22c2 100644 --- a/app/UserInterface/Domain/Homepage/Resources/views/homepage.blade.php +++ b/app/UserInterface/Domain/Homepage/Resources/views/homepage.blade.php @@ -3,6 +3,7 @@ @section('head') @vite('app/UserInterface/Domain/Homepage/Resources/sass/_homepage.scss') @vite('app/UserInterface/Domain/Homepage/Resources/sass/_recent_device.scss') + @vite('app/UserInterface/Domain/Homepage/Resources/sass/_recent_trip.scss') @endsection @section('content') @@ -67,37 +68,280 @@

Weekly Review

-
Speed
+
+
+
Speed
+
+
+ 000 +
+
+ Average + km/h +
+
+
+
-
Gear
+
+
+
Gear
+
+
+ 01 +
+
+ Excpected Changes +
+
+
+
+ 00 +
+
+ Changes +
+
+
+
-
Brake
+
+
+
Brake
+
+
+ 12 +
+
+ Stop short +
+
+
+
+ 07 +
+
+ Inefficient +
+
+
+
+ 04 +
+
+ Perfect +
+
+
+
-
Steering
+
+
+
Steering
+
+
+ 01 +
+
+ Wrong Steering +
+
+
+
+ 00 +
+
+ Inefficient +
+
+
+
+ 00 +
+
+ Efficient +
+
+
+
+
- -
+ +

Recent Trips

-
- Trip #1 +
+ +
+
+ #0001 +
+
+ Trip #0001 + Device: Test +
+
+ 12-01-2024 + Date +
+ + +
+ 08:39 - 12:00 + Time +
+ + +
+ 100 km + Distance +
+ + +
+ 6.0 + Score +
+ + + + + +
+ +
- Trip #2 + +
+
+ #0002 +
+
+ Trip #0002 + Device: Test +
+
+ 12-01-2024 + Date +
+ + +
+ 08:39 - 12:00 + Time +
+ + +
+ 100 km + Distance +
+ + +
+ 6.0 + Score +
+ + + + + +
+ +
- Trip #3 + +
+
+ #0003 +
+
+ Trip #0003 + Device: Test +
+
+ 12-01-2024 + Date +
+ + +
+ 08:39 - 12:00 + Time +
+ + +
+ 100 km + Distance +
+ + +
+ 6.0 + Score +
+ + + + + +
+ + +
- Trip #4 + +
+
+ #0004 +
+
+ Trip #0004 + Device: Test +
+
+ 12-01-2024 + Date +
+ + +
+ 08:39 - 12:00 + Time +
+ + +
+ 100 km + Distance +
+ + +
+ 6.0 + Score +
+ + + + + +
+ +