Skip to content

Commit c255df8

Browse files
committed
initial commit
1 parent b94bcf8 commit c255df8

File tree

4 files changed

+113
-23
lines changed

4 files changed

+113
-23
lines changed

website/src/components/Sponsor/index.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import styles from "@site/src/components/Sponsor/styles.module.css";
33
import clsx from "clsx";
44
import React, { useContext } from "react";
55

6+
import FallbackAvatar from "@site/static/img/avatar.svg";
67
import { SponsorContext } from "../../contexts/sponsor";
78

89
export default function Sponsor({
@@ -15,6 +16,15 @@ export default function Sponsor({
1516
}) {
1617
const level = useContext(SponsorContext);
1718
const showAvatar = level === "featured" || level === "leaders";
19+
20+
function Avatar({ src }) {
21+
return src ? (
22+
<img className={styles.avatar} src={src} />
23+
) : (
24+
<FallbackAvatar className={styles.avatar} />
25+
);
26+
}
27+
1828
return (
1929
<div
2030
className={clsx(
@@ -27,10 +37,7 @@ export default function Sponsor({
2737
)}
2838
>
2939
{showAvatar ? (
30-
<img
31-
className={styles.avatar}
32-
src={"https://www.graphile.org" + avatar}
33-
/>
40+
<Avatar src={avatar ? "https://www.graphile.org" + avatar : null} />
3441
) : null}
3542

3643
<Link

website/src/components/Sponsor/styles.module.css

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,23 @@
99
flex: 0 0 18rem;
1010
font-size: 1.5rem;
1111
}
12-
.featured .name {
13-
font-size: 2rem;
14-
padding-top: 1rem;
15-
}
1612

17-
.featured {
13+
.featured,
14+
.leaders {
1815
border: 3px solid var(--ifm-color-primary-dark);
1916
background: white;
2017
border-radius: 12px;
2118
}
2219

20+
.featured .name {
21+
font-size: 2rem;
22+
padding-top: 1rem;
23+
}
24+
25+
.leaders .name {
26+
font-size: 1.24rem;
27+
padding-top: 1rem;
28+
}
2329
.name {
2430
color: var(--ifm-color-primary-darker);
2531
text-align: center;
@@ -41,12 +47,18 @@
4147
color: var(--ifm-color-primary);
4248
}
4349

44-
img.avatar {
50+
.featured .avatar {
4551
border-radius: 10rem;
4652
width: 10rem;
4753
height: 10rem;
4854
}
4955

56+
.leaders .avatar {
57+
border-radius: 5rem;
58+
width: 5rem;
59+
height: 5rem;
60+
}
61+
5062
.business {
5163
}
5264

website/src/pages/sponsors.mdx

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,54 @@ to fund ongoing development on Graphile Worker through sponsorship. THANK YOU!
2323
business
2424
/>
2525
<Sponsor
26-
name="Dovetail"
27-
avatar="/images/sponsors/dovetail.png"
28-
href="https://dovetailapp.com/"
26+
name="Steelhead"
27+
avatar="/images/sponsors/steelhead.svg"
28+
href="https://gosteelhead.com/"
2929
business
3030
/>
31+
</Sponsors>
32+
<Sponsors level="leaders">
33+
<Sponsor name="Robert Claypool" />
3134
<Sponsor
32-
name="Stellate"
33-
avatar="/images/sponsors/Stellate.png"
34-
href="https://stellate.co/"
35+
name="Principia Mentis"
36+
avatar="/images/sponsors/principiamentis.png"
3537
business
3638
/>
39+
<Sponsor name="nigelrmtaylor" />
3740
<Sponsor
38-
name="Steelhead"
39-
avatar="/images/sponsors/steelhead.svg"
40-
href="https://gosteelhead.com/"
41+
name="Trigger.dev"
42+
avatar="/images/sponsors/triggerdev.png"
43+
business
44+
/>
45+
<Sponsor name="Axinom" avatar="/images/sponsors/axinom.png" business />
46+
<Sponsor name="Taiste" avatar="/images/sponsors/taiste-sq.svg" business />
47+
<Sponsor
48+
name="BairesDev"
49+
avatar="/images/sponsors/BairesDev.png"
50+
href="https://www.bairesdev.com/sponsoring-open-source-projects/"
51+
business
52+
/>
53+
<Sponsor name="Cintra" avatar="/images/sponsors/cintra.svg" business />
54+
<Sponsor
55+
name="Two Bit Solutions"
56+
avatar="/images/sponsors/two-bits.svg"
4157
business
4258
/>
59+
<Sponsor name="Dimply" avatar="/images/sponsors/dimply.svg" business />
60+
<Sponsor name="Ndustrial" avatar="/images/sponsors/ndustrial.png" business />
61+
<Sponsor name="Apollo" avatar="/images/sponsors/apollo.png" business />
62+
<Sponsor name="Beacon" avatar="/images/sponsors/beaconbio.jpg" business />
4363
<Sponsor
44-
name="LatchBio"
45-
avatar="/images/sponsors/latchbio.jpg"
46-
href="https://latch.bio/"
64+
name="deliver.media"
65+
avatar="/images/sponsors/deliverdotmedia.jpg"
4766
business
4867
/>
68+
<Sponsor name="Ravio" avatar="/images/sponsors/Ravio.svg" business />
69+
<Sponsor name="prodready" />
70+
<Sponsor name="Locomote" avatar="/images/sponsors/locomote.svg" />
4971
</Sponsors>
5072
<Sponsors level="backers">
51-
<Sponsor name="plus 85 more backers..." plain />
73+
<Sponsor name="plus 67 more backers..." plain />
5274
</Sponsors>
5375

5476
<!-- SPONSORS_END -->

website/static/img/avatar.svg

Lines changed: 49 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)