Skip to content

Commit

Permalink
Merge pull request preactjs#761 from preactjs/add-substack-sponsor
Browse files Browse the repository at this point in the history
Add Substack as a platinum sponsor
  • Loading branch information
marvinhagemeister authored Apr 11, 2021
2 parents 0dd0aab + e1dcbcb commit fc52218
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 34 deletions.
17 changes: 5 additions & 12 deletions src/components/sponsors/amp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 29 additions & 12 deletions src/components/sponsors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import styles from './style.less';
import AMPSvg from './amp.svg';
import TrivagoSvg from './trivago.svg';
import WebflowSvg from './webflow.svg';
import SubstackSvg from './substack.svg';

/**
* Sponsors on the main page is a unique selling point of our
Expand All @@ -23,40 +24,56 @@ export default function Sponsors() {
src={AMPSvg}
alt="AMP"
width="150"
height="150"
style="height: 4rem; width: auto;"
height="100"
style="height: 3rem; width: auto;"
/>
</a>
</li>
<li class={styles.sponsorItem}>
<a
href="https://tech.trivago.com/opensource/"
title="trivago"
title="Trivago"
target="_blank"
rel="noopener noreferrer"
>
<img
src={TrivagoSvg}
alt="trivago"
width="150"
height="150"
style="height: 3.5rem; width: auto;"
alt="Trivago"
width="102"
height="32"
style="height: 3rem; width: auto;"
/>
</a>
</li>
<li class={styles.sponsorItem}>
<a
href="https://substack.com/"
title="Substack"
target="_blank"
rel="noopener noreferrer"
>
<img
src={SubstackSvg}
alt="Substack"
width="192"
height="33"
style="height: 3rem; width: auto;"
/>
</a>
</li>
<li class={styles.sponsorItem}>
<a
href="https://webflow.com/"
title="webflow"
title="Webflow"
target="_blank"
rel="noopener noreferrer"
>
<img
src={WebflowSvg}
alt="webflow"
width="300"
height="75"
style="height:3rem; width: auto;"
alt="Webflow"
width="100"
height="25"
style="height: 3rem; width: auto;"
/>
</a>
</li>
Expand Down
22 changes: 17 additions & 5 deletions src/components/sponsors/style.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
:global(.sponsors) {
text-align: center;
margin-bottom: -2rem;
max-width: 60rem !important;
padding-left: 0 !important;
padding-right: 0 !important;

p {
margin-bottom: 0;
Expand All @@ -9,24 +12,33 @@

.sponsorList {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 0 !important;
margin: 1rem 0 0 0;
margin: .5rem 0 0;
}

.sponsorItem {
flex: 1 1 auto;
list-style: none;
opacity: 0.5;
transition: all 0.3s;
filter: grayscale(1);
filter: grayscale(1) contrast(5);
text-align: center;
padding: .5rem 1.5rem 0;
margin: 0;

@media (prefers-color-scheme: dark) {
filter: brightness(0) invert(1);
&:hover {
filter: grayscale(0) contrast(1);
}
}

&:hover {
opacity: 1;
filter: none;
}

a {
Expand All @@ -37,7 +49,7 @@
background: none !important;
}

& + .sponsorItem {
margin-left: 3rem;
}
// & + .sponsorItem {
// margin-left: 3rem;
// }
}
1 change: 1 addition & 0 deletions src/components/sponsors/substack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 1 addition & 5 deletions src/components/sponsors/trivago.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fc52218

Please sign in to comment.