Skip to content

Commit 3bfbcc1

Browse files
committed
Put the landing sections on one white surface
Case Studies through Contact share a white background, separated by a full-width rule at each boundary. The footer matches the header, so the page opens and closes on the same tone. viewport-fit=cover with theme-color lets iOS paint its status bar to match the header, and the footer pads for the home indicator.
1 parent 6603ab1 commit 3bfbcc1

5 files changed

Lines changed: 7 additions & 9 deletions

File tree

‎index.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
6+
<meta name="theme-color" content="#f9fbfa">
67
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
78
<link rel="preconnect" href="https://fonts.googleapis.com">
89
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

‎src/components/Section.scss‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@
88
.section-white {
99
background: t.$white;
1010
border-top: 1px solid t.$line;
11-
border-bottom: 1px solid t.$line;
1211

13-
&:last-child {
14-
flex-grow: 1;
15-
border-bottom: 0;
16-
}
12+
&:last-child { flex-grow: 1; }
1713
}
1814

1915
.section-pale {

‎src/layout/Footer.scss‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
.site-footer {
44
padding-block: 1.25rem;
5-
background: t.$tint;
5+
background: t.$paper;
6+
padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
67
}

‎src/sections/Contact.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { site } from '../site'
22

33
export default function Contact() {
44
return (
5-
<section id="contact" className="py-5 section-pale">
5+
<section id="contact" className="py-5 section-white">
66
<div className="container py-md-5 reveal">
77
<h2 className="section-title mb-3">Contact</h2>
88
<p className="hero-tagline text-body-secondary mb-4" style={{ maxWidth: '34em' }}>

‎src/sections/Testimonials.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function Testimonials() {
1818
}
1919

2020
return (
21-
<Section id="testimonials" tone="pale" title="What clients say" subtitle="From the reference letters of people I worked with directly.">
21+
<Section id="testimonials" tone="white" title="What clients say" subtitle="From the reference letters of people I worked with directly.">
2222
<div className="swipe-row" ref={row} onScroll={onScroll}>
2323
{testimonials.map((item) => (
2424
<figure key={item.name} className="reveal quote-card card p-4 mb-0">

0 commit comments

Comments
 (0)