refactor(cv): centralize tailored templates
CI and Deploy / test (push) Successful in 5m35s
CI and Deploy / deploy (push) Successful in 2m6s

This commit is contained in:
cesnimda
2026-08-27 20:47:59 +02:00
parent 6b3acf7b07
commit 7c4e6fb5b7
6 changed files with 101 additions and 83 deletions
@@ -73,15 +73,7 @@ public sealed partial class ProfileCvController : ControllerBase
RenderOptions = new TailoredCvRenderOptions
{
ShowPhoto = true,
AccentColor = templateId switch
{
"harvard" => "brick",
"auckland" => "emerald",
"edinburgh" => "plum",
"monarch" => "#7c2d12",
"fjord" => "#0f4c5c",
_ => "slate",
},
AccentColor = TailoredCvTemplateCatalog.Resolve(templateId).AccentColor,
SectionOrder = new List<string> { "summary", "skills", "experience", "education", "custom" },
}
});