From 979349c861e3df75ca28608e2ec963558c2113af Mon Sep 17 00:00:00 2001 From: Jan Hensel Date: Tue, 16 Jan 2024 11:35:04 +0100 Subject: [PATCH] Highlight type identifier status visual PoC --- index.html | 13 +++- src/main.rs | 20 +++--- src/purl_data.rs | 172 +++++++++++++++++++++++++---------------------- 3 files changed, 116 insertions(+), 89 deletions(-) diff --git a/index.html b/index.html index 9912771..f93ffcd 100644 --- a/index.html +++ b/index.html @@ -91,12 +91,21 @@ max-width: 16em; } - .proposed-type { + .option-proposed { font-size: 1em; } - .well-known-type { + .option-well-known { font-size: 2em; } + + .identifier-well-known { + text-decoration: underline #007700 0.2em; + background-color: #bbffbb; + } + .identifier-proposed { + text-decoration: underline #777700 0.2em; + background-color: #ffffbb; + } diff --git a/src/main.rs b/src/main.rs index 5fd5232..0daf6aa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -52,8 +52,8 @@ fn MainContent() -> impl IntoView { }> { purl_data::PURL_TYPES.iter() - .map(|(type_option, choice_well_known)| view! { - + .map(|(type_option, choice_status)| view! { + }) .collect_view() } @@ -112,14 +112,14 @@ fn MainContent() -> impl IntoView { pub fn PurlTypeOption( is: &'static str, typestr: ReadSignal, - well_known: bool, + status: purl_data::PurlTypeStatus, ) -> impl IntoView { view! {