refactor(cv): centralize tailored templates
This commit is contained in:
@@ -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" },
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user