Skip to content

Commit 776e70a

Browse files
LeoMcAfiji-flocaugner
authored
feature: pride month 2023 (#8979)
update logo m and underscore to pride flag site wide update homepage mandala to pride colours replace tagline on homepage with "united in love" also includes some general improvements to mandala and logo svgs - I'll prepare a special PR to just revert the pride changes at the end of the month, while keeping those other changes Co-authored-by: Florian Dieminger <[email protected]> Co-authored-by: Claas Augner <[email protected]>
1 parent 458dd5b commit 776e70a

File tree

10 files changed

+187
-27
lines changed

10 files changed

+187
-27
lines changed

Diff for: client/src/assets/mdn-docs-logo.svg

+1-1
Loading

Diff for: client/src/assets/mdn-logo.svg

+1-1
Loading

Diff for: client/src/assets/mdn-plus-logo.svg

+1-1
Loading

Diff for: client/src/homepage/homepage-hero/index.scss

+34
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
width: 100%;
88

99
section {
10+
--contrast-boost-bg: #191919;
11+
--contrast-boost-shadow: 2px 2px 3px var(--contrast-boost-bg),
12+
2px -2px 3px var(--contrast-boost-bg),
13+
-2px -2px 3px var(--contrast-boost-bg),
14+
-2px 2px 3px var(--contrast-boost-bg);
1015
display: flex;
1116
flex-direction: column;
1217
gap: 2rem;
@@ -47,6 +52,35 @@
4752
p {
4853
font-weight: 300;
4954
}
55+
56+
h1,
57+
p {
58+
text-shadow: var(--contrast-boost-shadow);
59+
}
60+
61+
p > span {
62+
font-size: 1.5rem;
63+
position: relative;
64+
65+
&:after {
66+
background: linear-gradient(
67+
90deg,
68+
var(--pride-0) 0%,
69+
var(--pride-1) 20%,
70+
var(--pride-2) 40%,
71+
var(--pride-3) 60%,
72+
var(--pride-4) 80%,
73+
var(--pride-5) 100%
74+
);
75+
bottom: -0.1rem;
76+
box-shadow: var(--contrast-boost-shadow);
77+
content: "";
78+
height: 0.15rem;
79+
left: 0;
80+
position: absolute;
81+
right: 0;
82+
}
83+
}
5084
}
5185

5286
.homepage-hero-bg {

Diff for: client/src/homepage/homepage-hero/index.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ export function HomepageHero() {
1111
<br /> by Developers
1212
</h1>
1313
<p>
14-
Documenting web technologies, including CSS, HTML, and JavaScript,
15-
since 2005.
14+
<span>United in love</span>
1615
</p>
1716
<Search id="hp-search" isHomepageSearch={true} />
1817
</section>
19-
<Mandala rotate={true} extraClasses="homepage-hero-bg" />
18+
<Mandala rotate={true} pride={true} extraClasses="homepage-hero-bg" />
2019
</div>
2120
);
2221
}

Diff for: client/src/ui/atoms/logo/index.scss

+35-5
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,42 @@
88
height: 1.5rem;
99
margin-top: 0.3rem;
1010
}
11-
}
1211

13-
/* DARK AND HIGH CONTRACT BLACK MODE */
14-
.dark,
15-
.high-contrast-black {
12+
#pride-gradient {
13+
:nth-child(1) {
14+
stop-color: var(--pride-0);
15+
}
16+
17+
:nth-child(2) {
18+
stop-color: var(--pride-1);
19+
}
20+
21+
:nth-child(3) {
22+
stop-color: var(--pride-2);
23+
}
24+
25+
:nth-child(4) {
26+
stop-color: var(--pride-3);
27+
}
28+
29+
:nth-child(5) {
30+
stop-color: var(--pride-4);
31+
}
32+
33+
:nth-child(6) {
34+
stop-color: var(--pride-5);
35+
}
36+
}
37+
38+
.logo-m {
39+
fill: url("#pride-gradient-v");
40+
}
41+
42+
.logo-_ {
43+
fill: url("#pride-gradient-h");
44+
}
45+
1646
.logo-text {
17-
fill: #fff;
47+
fill: var(--text-primary);
1848
}
1949
}

Diff for: client/src/ui/atoms/logo/index.tsx

+30
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,36 @@ export function Logo() {
1919
return (
2020
<a href={`/${locale}/`} className="logo" aria-label="MDN homepage">
2121
{(plus && <MDNPlusLogo />) || (docs && <MDNDocsLogo />) || <MDNLogo />}
22+
<svg width="0" height="0">
23+
<defs>
24+
<linearGradient id="pride-gradient">
25+
<stop offset="0" />
26+
<stop offset=".2" />
27+
<stop offset=".4" />
28+
<stop offset=".6" />
29+
<stop offset=".8" />
30+
<stop offset="1" />
31+
</linearGradient>
32+
<linearGradient
33+
href="#pride-gradient"
34+
id="pride-gradient-v"
35+
x1="0"
36+
x2="0"
37+
y1="0"
38+
y2="1"
39+
gradientUnits="objectBoundingBox"
40+
/>
41+
<linearGradient
42+
href="#pride-gradient"
43+
id="pride-gradient-h"
44+
x1="0"
45+
x2="1"
46+
y1="0"
47+
y2="0"
48+
gradientUnits="objectBoundingBox"
49+
/>
50+
</defs>
51+
</svg>
2252
</a>
2353
);
2454
}

0 commit comments

Comments
 (0)