Skip to content

Commit 253986a

Browse files
committed
fix background on some pages
1 parent cab85e4 commit 253986a

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

bouncy_frontend/src/lib/components/activity/ActivityReview.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
{#if !showResults}
2929
<LessonEnd bind:showResults></LessonEnd>
3030
{:else}
31-
<StandardPage gray>
31+
<StandardPage black>
3232
<div class="top-summary">
3333
<LessonEndResults {hitRate} {passed}></LessonEndResults>
3434
<div class="down-marker">

bouncy_frontend/src/lib/components/activity/LessonEnd.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
let { showResults = $bindable() } = $props();
88
</script>
99

10-
<StandardPage gray>
10+
<StandardPage black>
1111
<!-- <h3>That was fun, wasn't it?</h3> -->
1212
<div class="outer">
1313
<DarkSection>

bouncy_frontend/src/lib/components/ui/LogoHeader.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @typedef {Object} Props
77
* @property {string} [title]
88
* @property {boolean} [white]
9-
* @property {boolean} [gray]
9+
* @property {boolean} [black]
1010
* @property {boolean} [accent]
1111
* @property {boolean} [mainColor]
1212
* @property {boolean} [backButton]
@@ -16,7 +16,7 @@
1616
/** @type {Props} */
1717
let {
1818
white = false,
19-
gray = false,
19+
black = false,
2020
accent = false,
2121
mainColor = false,
2222
title = '',
@@ -27,7 +27,7 @@
2727
let bgColor = $derived(
2828
white
2929
? 'var(--theme-neutral-light)'
30-
: gray
30+
: black
3131
? 'var(--theme-neutral-dark)'
3232
: accent
3333
? 'var(--theme-accent)'

bouncy_frontend/src/lib/components/ui/StandardPage.svelte

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
* @property {import('svelte').Snippet} [children]
99
* @property {string} [title]
1010
* @property {boolean} [white]
11-
* @property {boolean} [gray]
11+
* @property {boolean} [black]
1212
* @property {boolean} [accent]
1313
* @property {boolean} [mainColor]
1414
*/
1515
/** @type {Props} */
16-
let { children, title, white, gray, accent, mainColor } = $props();
16+
let { children, title, white, black, accent, mainColor } = $props();
1717
</script>
1818

1919
{#if mainColor}
@@ -24,11 +24,16 @@
2424
bgColor="var(--theme-neutral-light)"
2525
color="var(--theme-neutral-black)"
2626
></Background>
27+
{:else if black}
28+
<Background
29+
bgColor="var(--theme-neutral-black)"
30+
color="var(--theme-neutral-white)"
31+
></Background>
2732
{/if}
2833

2934
<div class="wrapper">
3035
<div>
31-
<LogoHeader {white} {gray} {accent} {mainColor} {title} />
36+
<LogoHeader {white} {black} {accent} {mainColor} {title} />
3237
</div>
3338

3439
<div class="content">

0 commit comments

Comments
 (0)