Skip to content

Commit 678555c

Browse files
committed
update
1 parent 220074a commit 678555c

7 files changed

Lines changed: 122 additions & 37 deletions

File tree

css/all.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,30 @@
33

44
@import "variables";
55

6+
html {
7+
font-size: 16px;
8+
}
9+
610
* {
11+
box-sizing: border-box;
712
font-family: $serif;
813
}
14+
15+
body {
16+
color: $black;
17+
background: $off-white;
18+
overflow-x: hidden;
19+
}
20+
21+
img,
22+
svg {
23+
max-width: 100%;
24+
}
25+
26+
a,
27+
p,
28+
li,
29+
td,
30+
th {
31+
overflow-wrap: break-word;
32+
}

css/background.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ footer {
1313
background-image: var(--background);
1414
background-size: cover;
1515
background-repeat: no-repeat;
16-
background-position: 50% 25%;
17-
opacity: 0.2;
16+
background-position: center 32%;
17+
opacity: 0.22;
1818
// filter: blur(5px);
1919
z-index: -1;
20+
pointer-events: none;
2021
}
2122
}

css/feature.scss

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66

77
.feature {
88
@include flex-center;
9-
margin: 40px 0;
9+
align-items: center;
10+
gap: clamp(20px, 4vw, 44px);
11+
margin: clamp(32px, 5vw, 56px) 0;
1012
@include trim-margins;
1113

1214
.feature_image {
13-
width: 350px;
14-
height: 250px;
15+
width: min(100%, clamp(280px, 36vw, 420px));
16+
aspect-ratio: 7 / 5;
17+
height: auto;
1518
flex-shrink: 0;
1619
overflow: hidden;
1720
box-shadow: $shadow;
@@ -31,35 +34,40 @@
3134
&:nth-child(odd) {
3235
.feature_image {
3336
order: -1;
34-
margin-right: 40px;
3537
}
3638
}
3739

3840
&:nth-child(even) {
3941
.feature_image {
4042
order: 1;
41-
margin-left: 40px;
4243
}
4344
}
4445

46+
.feature_text {
47+
flex: 1 1 360px;
48+
min-width: 0;
49+
}
50+
4551
.feature_heading {
4652
font-family: $sans;
4753
font-weight: $medium;
4854
text-align: center;
55+
font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
56+
line-height: 1.3;
4957
}
5058

5159
@media (max-width: $tablet) {
5260
flex-direction: column;
5361

5462
.feature_image {
5563
order: unset !important;
56-
width: unset !important;
64+
width: min(100%, 620px) !important;
5765
margin: 0 !important;
58-
margin-bottom: 20px !important;
5966

60-
.feature_text {
61-
width: unset !important;
62-
}
67+
}
68+
69+
.feature_text {
70+
width: 100%;
6371
}
6472
}
6573
}
@@ -70,8 +78,8 @@
7078
justify-content: center;
7179

7280
.feature_image {
73-
width: auto;
81+
width: min(100%, 760px);
7482
height: auto;
75-
margin: 20px 0px;
83+
margin: 0;
7684
}
7785
}

css/header.scss

Lines changed: 59 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ header {
99
position: relative;
1010
@include flex-center;
1111
justify-content: space-between;
12-
padding: 20px;
12+
gap: clamp(16px, 3vw, 32px);
13+
padding: clamp(16px, 3vw, 28px);
1314
color: $white;
1415
background: $dark-gray;
1516
font-family: $sans;
@@ -19,21 +20,34 @@ header {
1920

2021
.logo_row {
2122
@include inline-flex-center;
23+
flex: 1 1 420px;
24+
justify-content: flex-start;
25+
min-width: 0;
26+
gap: clamp(12px, 2vw, 20px);
27+
28+
.logo {
29+
display: inline-flex;
30+
flex: 0 0 auto;
31+
justify-content: center;
32+
align-items: center;
33+
max-width: clamp(120px, 20vw, 270px);
34+
}
2235

2336
.logo > * {
24-
max-width: 100%;
25-
height: 200px;
37+
width: auto;
38+
max-width: clamp(120px, 20vw, 270px);
39+
height: clamp(72px, 12vw, 132px);
2640
}
2741

2842
.logo_text {
29-
position: absolute;
30-
top: 30px;
31-
left:500px;
3243
font-family: $sans;
33-
font-size: 1.6rem;
34-
color:$blue;
35-
margin: 0 10px;
36-
text-align: center;
44+
font-size: clamp(1rem, 0.78rem + 0.9vw, 1.55rem);
45+
color: $light-blue;
46+
line-height: 1.22;
47+
margin: 0;
48+
max-width: 760px;
49+
text-align: left;
50+
text-wrap: balance;
3751
}
3852

3953
.logo_title {
@@ -49,15 +63,19 @@ header {
4963

5064
.nav_row {
5165
@include inline-flex-center;
66+
flex: 0 1 680px;
5267
flex-wrap: wrap;
68+
justify-content: flex-end;
69+
gap: 2px 4px;
5370
font-size: 0.9rem;
5471
font-weight: $medium;
5572
text-transform: uppercase;
5673
letter-spacing: 1px;
74+
min-width: 280px;
5775

5876
.nav_link {
5977
display: inline-block;
60-
padding: 10px;
78+
padding: 8px 9px;
6179
text-align: center;
6280
white-space: nowrap;
6381
transition: opacity $fast;
@@ -80,24 +98,50 @@ header {
8098

8199
@media (max-width: $tablet) {
82100
flex-direction: column;
101+
align-items: stretch;
83102

84103
.logo_row {
85-
margin-bottom: 10px;
104+
justify-content: center;
105+
flex: 0 1 auto;
106+
margin-bottom: 6px;
107+
108+
.logo_text {
109+
text-align: center;
110+
}
111+
}
112+
113+
.nav_row {
114+
flex: 0 1 auto;
115+
justify-content: center;
116+
min-width: 0;
86117
}
87118
}
88119

89120
@media (max-width: $phone) {
90121
.logo_row {
91-
margin-bottom: 20px;
92122
flex-direction: column;
123+
gap: 10px;
124+
125+
.logo > * {
126+
max-width: clamp(140px, 52vw, 220px);
127+
height: clamp(64px, 24vw, 96px);
128+
}
129+
130+
.logo_text {
131+
font-size: clamp(0.95rem, 4.4vw, 1.15rem);
132+
}
93133
}
94134

95135
.nav_row {
96-
flex-direction: column;
136+
align-items: stretch;
137+
display: grid;
138+
grid-template-columns: repeat(2, minmax(0, 1fr));
97139
width: 100%;
98140

99141
.nav_link {
100142
width: 100%;
143+
padding: 9px 6px;
144+
white-space: normal;
101145
}
102146
}
103147
}
@@ -112,7 +156,7 @@ header {
112156
animation: ease-in;
113157
// greyscale 0.1s
114158
.logo > * {
115-
height: 200px;
159+
height: clamp(96px, 18vw, 180px);
116160
animation: logo_zoom 2s ease forwards;
117161

118162
@keyframes logo_zoom {

css/heading.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,24 @@ h4 {
2222
}
2323
}
2424
h1 {
25-
font-size: 1.4rem;
26-
letter-spacing: 2px;
25+
font-size: clamp(1.35rem, 1.12rem + 0.7vw, 1.8rem);
26+
letter-spacing: 1px;
2727
text-transform: uppercase;
2828
text-align: center;
29+
text-wrap: balance;
2930

3031
& + p {
3132
margin-top: 40px;
3233
}
3334
}
3435
h2 {
35-
font-size: 1.3rem;
36+
font-size: clamp(1.2rem, 1.08rem + 0.45vw, 1.5rem);
3637
letter-spacing: 1px;
3738
text-align: center;
39+
text-wrap: balance;
3840
}
3941
h3 {
40-
font-size: 1.2rem;
42+
font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem);
4143
text-align: center;
4244
}
4345
h4 {

css/paragraph.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ p {
99
@include trim-margins;
1010
text-align: justify;
1111
line-height: 1.7;
12+
13+
@media (max-width: $phone) {
14+
text-align: left;
15+
}
1216
}

css/section.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,24 @@ body {
1414
justify-content: flex-start;
1515
align-items: stretch;
1616
flex-direction: column;
17-
font-size: 12pt;
17+
font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
1818

1919
main {
2020
box-sizing: border-box;
2121
flex-grow: 1;
22-
background: $white;
22+
background: $off-white;
2323
}
2424

2525
section {
2626
.section {
2727
box-sizing: border-box;
28-
max-width: 2000;
28+
width: min(100%, 1120px);
2929
margin: 0 auto;
30-
padding: 40px;
30+
padding: clamp(24px, 5vw, 56px) clamp(18px, 5vw, 48px);
3131
}
3232

33+
background: $white;
34+
3335
&:nth-child(even) {
3436
background: $off-white;
3537
}

0 commit comments

Comments
 (0)