Skip to content

Commit ba03920

Browse files
committed
fix: set background color on body, to match navbar when scrolling above viewport
1 parent 39e4a19 commit ba03920

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

index.pug

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ html
55
include /templates/head-includes.pug
66
include /templates/analytics-superuserlabs.pug
77

8-
body
8+
// set background color on body, to match navbar color when scrolling above viewport
9+
body(style="background-color: rgb(15 23 42)")
910
div.flex.flex-col.min-h-screen.justify-between
1011
include /templates/navbar.pug
1112

12-
main
13+
main.bg-white
1314
+section.bg-teal-950.text-white
1415
div.text-center.h-96.flex.flex-col.justify-center
1516
div
@@ -151,6 +152,4 @@ html
151152
div.col-span-2(class="md:col-span-3")
152153
+teammember("Michael Young", "michael.jpg", "Developer", github="https://github.com/Miyou", linkedin="https://www.linkedin.com/in/michael-young-522148142/")
153154

154-
+section
155-
.mx-auto
156-
+footer
155+
+footer

templates/footer.pug

Lines changed: 0 additions & 3 deletions
This file was deleted.

templates/mixins.pug

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ mixin sectitle
2424
block
2525

2626
mixin footer
27-
+section("8")(class!=attributes.class)
28-
+cell(12)
29-
p(style="m-0 text-center")
30-
b Made with #[i.fas.fa-heart(style="color: red")] by Superuser Labs
27+
div.bg-slate-900.text-white.w-full.p-8.text-center(class!=attributes.class)
28+
b Made with #[i.fas.fa-heart(style="color: red")] by Superuser Labs
3129

3230
mixin teammember(name, imagename, role, github, linkedin, image_style)
3331
.border.rounded-xl.shadow.bg-white.text-black

thankful/index.pug

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ html
66
include /templates/head-includes.pug
77
include /templates/analytics-thankful.pug
88

9-
body
9+
// set background color on body, to match navbar color when scrolling above viewport
10+
body(style="background-color: rgb(15 23 42)")
1011
div.flex.flex-col.min-h-screen.justify-between
1112
include /templates/navbar.pug
1213

13-
main
14+
main.bg-white
1415
+section.bg-teal-950.text-white
1516
div.text-center.h-96.flex.flex-col.justify-center
1617
div
@@ -95,6 +96,4 @@ html
9596
p
9697
| We believe in open source and self-ownership of data. That's why we designed Thankful so that we don't collect any of your data and don't need any servers. Even if we disappeared tomorrow, Thankful would still work.
9798

98-
+section
99-
.mx-auto
100-
+footer
99+
+footer

0 commit comments

Comments
 (0)