Skip to content

Commit

Permalink
dark theme for advanced settings
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Sep 29, 2024
1 parent 262ea3d commit 4504b26
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/Moonglade.Web/Pages/Settings/Advanced.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@using System.Reflection
@Html.AntiForgeryToken()
@{
ViewBag.ThemeSwitchReady = true;
var settings = BlogConfig.AdvancedSettings;

var asm = Assembly.GetEntryAssembly();
Expand Down Expand Up @@ -100,7 +101,7 @@
<div class="mb-4">
<h4 class="admin-subtitle fw-bold mb-2">@SharedLocalizer["Advanced Settings"]</h4>

<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border mb-2">
<div class="col-auto">
<i class="bi-arrow-right-circle settings-entry-icon"></i>
</div>
Expand All @@ -115,7 +116,7 @@
</div>
</div>

<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border mb-2">
<div class="col-auto">
<i class="bi-arrow-right-circle settings-entry-icon"></i>
</div>
Expand All @@ -130,7 +131,7 @@
</div>
</div>

<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border mb-2">
<div class="col-auto">
<i class="bi-map settings-entry-icon"></i>
</div>
Expand All @@ -145,7 +146,7 @@
</div>
</div>

<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border mb-2">
<div class="col-auto">
<i class="bi-search settings-entry-icon"></i>
</div>
Expand All @@ -160,7 +161,7 @@
</div>
</div>

<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border mb-2">
<div class="col-auto">
<i class="bi-diagram-2 settings-entry-icon"></i>
</div>
Expand All @@ -176,7 +177,7 @@
</div>
</div>

<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border mb-2">
<div class="col-auto">
<i class="bi-filetype-xml settings-entry-icon"></i>
</div>
Expand All @@ -191,7 +192,7 @@
</div>
</div>

<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white">
<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border">
<div class="col-auto">
<i class="bi-exclamation-triangle settings-entry-icon"></i>
</div>
Expand All @@ -210,12 +211,12 @@
<div class="col-md-6">
<div class="mb-3">
<h4 class="admin-subtitle fw-bold mb-2">@Html.DisplayNameFor(m => settings.RobotsTxtContent)</h4>
<div class="p-3 rounded-3 shadow-sm border bg-white mb-3">
<div class="p-3 rounded-3 shadow-sm border mb-3">
<textarea asp-for="@settings.RobotsTxtContent" class="form-control textarea-code" cols="60" rows="10" spellcheck="false"></textarea>
</div>

<h4 class="admin-subtitle fw-bold mb-2">@Html.DisplayNameFor(m => settings.FootScripts)</h4>
<div class="p-3 rounded-3 shadow-sm border bg-white mb-3">
<div class="p-3 rounded-3 shadow-sm border mb-3">
<div class="alert alert-warning">
@SharedLocalizer["Using a third party script may cause your website to be blocked by some browsers or ad blockers, it can have security risks too. Please use with caution."]
</div>
Expand All @@ -234,7 +235,7 @@
@SharedLocalizer["Options"]
</h4>

<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border mb-2">
<div class="col-auto">
<i class="bi-moon-stars settings-entry-icon"></i>
</div>
Expand All @@ -251,7 +252,7 @@
</div>
</div>

<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white">
<div class="settings-entry row align-items-center py-3 px-2 rounded-3 shadow-sm border">
<div class="col-auto">
<i class="bi-eraser settings-entry-icon"></i>
</div>
Expand Down

0 comments on commit 4504b26

Please sign in to comment.