Skip to content

Commit 5b5b892

Browse files
committed
Use theming based on query param for testing
1 parent ca40377 commit 5b5b892

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,8 @@ function drawBranchInfo(array $release): void
475475

476476
(() => {
477477
const layout = document.querySelector('#landing-content');
478-
const isLightMode = window.matchMedia('(prefers-color-scheme: light)').matches
478+
const isLightMode = <?= (($_GET['theme'] ?? 'dark') === 'light' ? 'true' : 'false') ?>;
479+
// window.matchMedia('(prefers-color-scheme: light)').matches
479480
if (isLightMode) {
480481
layout.classList.remove('landing-dark');
481482
layout.classList.add('landing-light');

styles/landing.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@
150150
margin-bottom: 1em;
151151
}
152152

153+
.landing-light .landing-ver-hero-img {
154+
background: #aaaaaa;
155+
padding: 1em;
156+
border-radius: var(--card-radius);
157+
box-sizing: border-box;
158+
}
159+
153160
@media (max-width: 400px) {
154161
.landing-ver-hero-img {
155162
height: 40px;

0 commit comments

Comments
 (0)