diff --git a/css/details.css b/css/details.css index 9fe5e74..ca15194 100644 --- a/css/details.css +++ b/css/details.css @@ -141,4 +141,55 @@ Divide the Details page into 3 main sections: font-size: 14px; font-weight: 400; color: rgb(113, 113, 113); +} + +.details-body-units { + display: flex; + flex-direction: column; + justify-content: start; + align-items: center; + gap: 30px; + + width: 100%; +} + +.details-body-units-title { + font-size: 24px; + font-family: Inter; + font-weight: bold; +} + +.details-body-units-selection-container { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + flex-wrap: wrap; + gap: 30px; + width: 100%; +} + +.details-body-units-selection-container:hover { + cursor: pointer; +} + +.details-body-units-selection-item-selected { + display: flex; + flex-direction: row; + gap: 10px; + + font-family: Inter; + font-size: 15px; + padding-bottom: 6px; + border-bottom: 3px solid #04B2D9; +} + +.details-body-units-selection-item-unselected { + display: flex; + flex-direction: row; + gap: 10px; + + font-family: Inter; + font-size: 15px; + } \ No newline at end of file diff --git a/src/pages/details.rs b/src/pages/details.rs index 360f54a..7e6135a 100644 --- a/src/pages/details.rs +++ b/src/pages/details.rs @@ -1,4 +1,4 @@ -use jl_types::dto::listing::Listing; +use jl_types::{dto::listing::Listing, domain::unit_type::UnitType}; use log::{error, info}; use uuid::Uuid; use yew::prelude::*; @@ -10,6 +10,7 @@ pub fn details_page(props: &DetailsPageProps) -> Html { //TODO: query backend let finished_loading = use_state(|| false); let listing_handle: UseStateHandle