refactor(split): extract DeepDrftShared.Client RCL with shared atoms

TrackCard, TracksGallery, DDIcons, DeepDrftPalettes (Default+Cms), DeepDrftFontLinks,
and palette CSS tokens extracted. Both hosts and DeepDrftCms reference the shared RCL.
This commit is contained in:
Daniel Harvey
2026-05-19 17:14:23 -04:00
parent 840192fb79
commit 8b8796fc58
22 changed files with 360 additions and 299 deletions
+1
View File
@@ -22,6 +22,7 @@
<ItemGroup>
<ProjectReference Include="..\DeepDrftModels\DeepDrftModels.csproj" />
<ProjectReference Include="..\DeepDrftData\DeepDrftData.csproj" />
<ProjectReference Include="..\DeepDrftShared.Client\DeepDrftShared.Client.csproj" />
</ItemGroup>
</Project>
+2 -38
View File
@@ -1,7 +1,8 @@
@rendermode InteractiveServer
@inherits LayoutComponentBase
@using DeepDrftShared.Client.Common
<MudThemeProvider IsDarkMode="false" Theme="@_theme" />
<MudThemeProvider IsDarkMode="false" Theme="@DeepDrftPalettes.Cms" />
<MudPopoverProvider />
<MudDialogProvider />
<MudSnackbarProvider />
@@ -31,40 +32,3 @@
<span class="dismiss">🗙</span>
</div>
@code {
// Light palette from MainLayout — keeps the CMS visually consistent with the public site.
private readonly MudTheme _theme = new()
{
PaletteLight = new PaletteLight
{
Primary = "#0D1B2A",
PrimaryDarken = "#162437",
Secondary = "#1A3C34",
Tertiary = "#3D7A68",
Background = "#FAFAF8",
BackgroundGray = "#F0F2F0",
Surface = "#FAFAF8",
AppbarBackground = "#0D1B2A",
AppbarText = "#FAFAF8",
TextPrimary = "#0D1B2A",
TextSecondary = "#8A9BB0",
Divider = "rgba(13,27,42,0.10)",
TableLines = "rgba(13,27,42,0.10)",
},
Typography = new Typography
{
Default = new DefaultTypography { FontFamily = new[] { "DM Sans", "sans-serif" } },
H1 = new H1Typography { FontFamily = new[] { "Cormorant Garamond", "Georgia", "serif" } },
H2 = new H2Typography { FontFamily = new[] { "Cormorant Garamond", "Georgia", "serif" } },
H3 = new H3Typography { FontFamily = new[] { "Cormorant Garamond", "Georgia", "serif" } },
H4 = new H4Typography { FontFamily = new[] { "Cormorant Garamond", "Georgia", "serif" } },
H5 = new H5Typography { FontFamily = new[] { "Cormorant Garamond", "Georgia", "serif" } },
H6 = new H6Typography { FontFamily = new[] { "Cormorant Garamond", "Georgia", "serif" } },
Subtitle1 = new Subtitle1Typography{ FontFamily = new[] { "Geist Mono", "monospace" } },
Body1 = new Body1Typography { FontFamily = new[] { "DM Sans", "sans-serif" } },
Body2 = new Body2Typography { FontFamily = new[] { "DM Sans", "sans-serif" } },
Caption = new CaptionTypography { FontFamily = new[] { "Geist Mono", "monospace" } },
Button = new ButtonTypography { FontFamily = new[] { "Geist Mono", "monospace" } },
}
};
}