Skip to content

Commit 60c14fe

Browse files
committed
fix: update hero section styling and add theme management script
1 parent c03fea1 commit 60c14fe

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

Web/Pages/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838

3939
<!-- Hero Section -->
40-
<div class="hero-section bg-primary bg-gradient text-white py-4 mb-4 rounded">
40+
<div class="hero-section bg-primary bg-gradient text-white py-4 mb-4 rounded-4">
4141
<div class="container">
4242
<div class="row align-items-center"><div class="col-lg-7 col-md-8">
4343
<h1 class="display-3 fw-bold mb-3 brand-title">Copilot That Jawn</h1>

Web/Pages/Shared/_Layout.cshtml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<meta name="description" content="@(ViewData["Description"] ?? "Where Philly innovation meets AI excellence. Master Microsoft Copilot and GitHub Copilot with our expert-curated tips.")" />
88
<title>@ViewData["Title"] - Copilot That Jawn</title>
9+
<!-- Prevent theme flash -->
10+
<script>
11+
(function() {
12+
const theme = localStorage.getItem('theme') || 'auto';
13+
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
14+
const isDark = theme === 'dark' || (theme === 'auto' && prefersDark);
15+
document.documentElement.setAttribute('data-theme', theme);
16+
document.documentElement.setAttribute('data-theme-resolved', isDark ? 'dark' : 'light');
17+
if (isDark) {
18+
document.documentElement.classList.add('theme-dark');
19+
} else {
20+
document.documentElement.classList.add('theme-light');
21+
}
22+
})();
23+
</script>
924

1025
<!-- Feeds and Sitemap -->
1126
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml" />

0 commit comments

Comments
 (0)