diff --git a/TaikoWebUI/Pages/DaniDojo.razor b/TaikoWebUI/Pages/DaniDojo.razor index 2117485..5229eca 100644 --- a/TaikoWebUI/Pages/DaniDojo.razor +++ b/TaikoWebUI/Pages/DaniDojo.razor @@ -87,7 +87,7 @@ } - + @@ -97,48 +97,52 @@ - + @{ var redRequirement = GetSoulGauge(danData, false); var goldRequirement = GetSoulGauge(danData, true); - var barColor = Color.Default; + var barClass = "bar-default"; + var resultText = "Failed"; } - Result: + Result @if (bestDataMap.ContainsKey(danId)) { var danBestData = bestDataMap[danId]; if (danBestData.SoulGaugeTotal >= redRequirement) { - barColor = Color.Error; + barClass = "bar-pass-red"; + resultText = "Passed"; } if (danBestData.SoulGaugeTotal >= goldRequirement) { - barColor = Color.Warning; + barClass = "bar-pass-gold"; + resultText = "Gold"; } - - @(danBestData.SoulGaugeTotal)% + + + @(danBestData.SoulGaugeTotal)% + @resultText } else { - + 0% + N/A } - - - Red Requirement: - @redRequirement% + Conditions + + + Red + > @redRequirement% - - - - - Gold Requirement: - @goldRequirement% + + Gold + > @goldRequirement% - + @@ -146,10 +150,11 @@ + @for (var j = 1; j < danData.OdaiBorderList.Count; j++) { var border = danData.OdaiBorderList[j]; - + @@ -199,8 +204,8 @@ } - } + diff --git a/TaikoWebUI/wwwroot/index.html b/TaikoWebUI/wwwroot/index.html index e3ed8a1..17a13c8 100644 --- a/TaikoWebUI/wwwroot/index.html +++ b/TaikoWebUI/wwwroot/index.html @@ -8,6 +8,7 @@ + diff --git a/TaikoWebUI/wwwroot/style.overrides.css b/TaikoWebUI/wwwroot/style.overrides.css new file mode 100644 index 0000000..e201006 --- /dev/null +++ b/TaikoWebUI/wwwroot/style.overrides.css @@ -0,0 +1,21 @@ +.dani-results .mud-progress-linear { + height: 25px !important; +} + +.mud-progress-linear.bar-pass-gold .mud-progress-linear-bars .mud-progress-linear-bar { + background: linear-gradient( 90deg, rgb(255,83,147) 0%, rgb(255,248,6) 15%, rgb(122,255,79) 30%, rgb(122,244,255) 50%, rgb(149,104,255) 65%, rgb(255,98,244) 85%, rgb(255,83,147) 100% ); +} + +.mud-progress-linear.bar-pass-red .mud-progress-linear-bars .mud-progress-linear-bar { + background-color: #FF3C05; +} + +.mud-progress-linear.bar-default .mud-progress-linear-bars .mud-progress-linear-bar { + background-color: lightgrey; +} + +.mud-progress-linear.bar-pass-gold .mud-typography, +.mud-progress-linear.bar-pass-red .mud-typography { + font-weight: bold; + color: white; +} \ No newline at end of file