Skip to content

Commit 757e1ec

Browse files
committed
Finish initial styling to match crystal websites
1 parent f01a8f6 commit 757e1ec

File tree

3 files changed

+42
-12
lines changed

3 files changed

+42
-12
lines changed

website/src/components/Sponsor/index.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ export default function Sponsor({
2525
);
2626
}
2727

28+
function LinkTo({ href }) {
29+
return href ? (
30+
<Link className={styles.name} to={href}>
31+
{name}
32+
</Link>
33+
) : (
34+
<div className={styles.name}>{name}</div>
35+
);
36+
}
37+
2838
return (
2939
<div
3040
className={clsx(
@@ -40,12 +50,7 @@ export default function Sponsor({
4050
<Avatar src={avatar ? "https://www.graphile.org" + avatar : null} />
4151
) : null}
4252

43-
<Link
44-
className={styles.name}
45-
to={href ?? "https://www.graphile.org/sponsor"}
46-
>
47-
{name}
48-
</Link>
53+
<LinkTo href={href} />
4954
</div>
5055
);
5156
}

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

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
margin: 0.5rem;
88
padding: 1rem;
99
flex: 0 0 18rem;
10-
font-size: 1.5rem;
10+
font-size: 1.2rem;
11+
}
12+
13+
.leaders {
14+
flex: 0 0 12rem;
1115
}
1216

1317
.featured,
@@ -23,8 +27,8 @@
2327
}
2428

2529
.leaders .name {
26-
font-size: 1.24rem;
27-
padding-top: 1rem;
30+
font-size: 1.2rem;
31+
padding-top: 0.8rem;
2832
}
2933
.name {
3034
color: var(--ifm-color-primary-darker);
@@ -70,3 +74,23 @@
7074
border-radius: inherit;
7175
border: inherit;
7276
}
77+
78+
.backers:last-child {
79+
display: none;
80+
}
81+
82+
.backers:first-child {
83+
display: flex;
84+
}
85+
86+
@media screen and (max-width: 995px) {
87+
.leaders {
88+
display: none;
89+
}
90+
.backers:first-child {
91+
display: none;
92+
}
93+
.backers:last-child {
94+
display: flex;
95+
}
96+
}

website/src/pages/sponsors.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ to fund ongoing development on Graphile Worker through sponsorship. THANK YOU!
3131
</Sponsors>
3232
<Sponsors level="leaders">
3333
<Sponsor name="Robert Claypool" />
34+
<Sponsor name="nigelrmtaylor" />
3435
<Sponsor
3536
name="Principia Mentis"
3637
avatar="/images/sponsors/principiamentis.png"
3738
business
3839
/>
39-
<Sponsor name="nigelrmtaylor" />
4040
<Sponsor
4141
name="Trigger.dev"
4242
avatar="/images/sponsors/triggerdev.png"
@@ -50,15 +50,15 @@ to fund ongoing development on Graphile Worker through sponsorship. THANK YOU!
5050
href="https://www.bairesdev.com/sponsoring-open-source-projects/"
5151
business
5252
/>
53-
<Sponsor name="Cintra" avatar="/images/sponsors/cintra.svg" business />
5453
<Sponsor
5554
name="Two Bit Solutions"
5655
avatar="/images/sponsors/two-bits.svg"
5756
business
5857
/>
58+
<Sponsor name="Apollo" avatar="/images/sponsors/apollo.png" business />
5959
<Sponsor name="Dimply" avatar="/images/sponsors/dimply.svg" business />
6060
<Sponsor name="Ndustrial" avatar="/images/sponsors/ndustrial.png" business />
61-
<Sponsor name="Apollo" avatar="/images/sponsors/apollo.png" business />
61+
<Sponsor name="Cintra" avatar="/images/sponsors/cintra.svg" business />
6262
<Sponsor name="Beacon" avatar="/images/sponsors/beaconbio.jpg" business />
6363
<Sponsor
6464
name="deliver.media"
@@ -71,6 +71,7 @@ to fund ongoing development on Graphile Worker through sponsorship. THANK YOU!
7171
</Sponsors>
7272
<Sponsors level="backers">
7373
<Sponsor name="plus 67 more backers..." plain />
74+
<Sponsor name="plus 84 more backers..." plain />
7475
</Sponsors>
7576

7677
<!-- SPONSORS_END -->

0 commit comments

Comments
 (0)