Skip to content

Add Sponsors to landing page #1689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import InlineSVG from '../components/util/InlineSVG.astro';

const landingFeatures = await getCollection('landing-features');
const demos = await getEntry('landing', 'demos');
const sponsors = await getEntry('sponsors', 'info');
const posts = await getCollection('blog');
posts
.sort((a, b) => {
Expand Down Expand Up @@ -123,6 +124,25 @@ posts
</Container>
</div>
</div>
<div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The donate page clarified that “following companies and institutes have supported the development of NixOS and hosting for its infrastructure”. Here it is not clear what the logos mean. Landing pages often show users or endorsements so it might be important to the sponsors themselves for the relationship to be made clear.

<Container
class:list={[
'flex flex-wrap items-center justify-center gap-8 pt-4 pb-16 md:justify-between',
]}
>
{
sponsors.data.items.map((item) => (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The acknowledgements section on the donate page also includes institutions that have contributed to Nix in the past (at least we are not sure they do nowadays). Should the landing page continue to show all the past sponsors and supporters forever, only the foundational ones (Utrecht University), or just the current ones?

<a href={item.href} target="_blank" rel="noopener noreferrer">
<img
class="max-h-16 max-w-32 opacity-65 grayscale-100 transition-all duration-100 hover:opacity-100 hover:grayscale-0 md:max-w-48"
src={item.src}
alt={item.alt}
/>
</a>
))
}
</Container>
</div>
<div>
<Container>
<h2
Expand Down