Project card done

This commit is contained in:
Franklin 2023-03-24 20:59:56 -04:00
parent b0bb9a836c
commit 474cbf3817
4 changed files with 4 additions and 6 deletions

View File

@ -3,7 +3,7 @@ body {
}
.page-container {
padding-top: 80px;
padding-top: 83px;
display: flex;
flex-direction: column;
justify-content: center;

View File

@ -55,7 +55,6 @@
flex-direction: column;
justify-content: flex-start;
margin-top: 10px;
}
.navbar-item {
@ -91,7 +90,7 @@
.navbar-title {
color: white;
font-size: 18pt;
font-size: 16pt;
font-weight: 100;
font-family: 'Gill Sans';
}

View File

@ -1,5 +1,4 @@
use jl_types::{domain::{media::Media}, dto::project_card::ProjectCardDto};
use stylist::css;
use thousands::Separable;
use yew::prelude::*;
use yew_router::prelude::use_navigator;
@ -37,7 +36,7 @@ pub fn project_card(props: &ProjectCardProps) -> Html {
format!("{price_separated}.00")
}
},
None => "N/A".into()
None => "0.00".into()
});
let project_condition = props.project.project_condition.to_string();

View File

@ -1,4 +1,4 @@
use jl_types::{domain::{project_state::ProjectState, project_type::ProjectType, project_condition::ProjectCondition, project::Project}, dto::{filters::Filter, project_card::ProjectCardDto}};
use jl_types::{domain::{project_state::ProjectState, project_type::ProjectType, project_condition::ProjectCondition}, dto::{filters::Filter, project_card::ProjectCardDto}};
use log::info;
use yew::prelude::*;
use yew_utils::{components::drop_down::{DropDownProps, DropDown}, vdom::comp_with};