Skip to content

Commit 14cab02

Browse files
ericfennisclaudeCopilot
authored
feat(site): Add sponsor page (#5132)
* feat(docs): add sponsor page Add a /sponsor page to lucide.dev with sponsor tiers, an amount picker, a sponsor wall and a FAQ. - Fetch active Open Collective sponsors at build time into sponsorsData.json, falling back to an empty list when the API fails - Group sponsors by monthly amount so the wall keeps working while the Open Collective tiers are renamed - Add reusable SponsorLogoGrid and SponsorAvatars components - Add general Faq/FaqItem components fed by `faq` frontmatter, which also emits FAQPage structured data - Link the page from the nav, footer and the home page sponsor card Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(docs): add navbar sponsor button, more sponsor stats and tier links - Replace the Sponsor nav text link with a dedicated heart button in the navbar, shown icon-only at tablet widths where the menu is crowded - Show weekly npm downloads across all Lucide packages and the all-time Open Collective sponsor count in the sponsor page hero - Add tierLinks.ts for direct Open Collective and GitHub Sponsors tier checkout links, falling back to the general pages while empty Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(docs): update team member titles and add funding manifest * update tier links * Adjust hero * Add motion counter to hero * Add custom option * Add scroll padding * Fix reduce motion sponsor page * Refactor sponsor tier links into tier data Store only the Open Collective tier slug and GitHub Sponsors tier id on each tier and derive the checkout URLs from them, so amounts are no longer duplicated in the links. Removes tierLinks.ts and the circular import between it and tiers.ts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G9u8FefqMHXb8HoeQ8LhcU * Set transition duration to zero * Add social links * Fix stikcybar * Format code * Refactor SponsorAmountPicker and SponsorHeroAnimation Co-authored-by: Copilot Autofix powered by AI <[email protected]> * Fix sponsor animation * Adjust tiers * Update readmes * Update sponsors * Update sponsors * Update sponsors * Update logo gris size * Add breaking space * Update logos --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Copilot Autofix powered by AI <[email protected]>
1 parent a630cec commit 14cab02

54 files changed

Lines changed: 3156 additions & 357 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ docs/.vitepress/data/categoriesData.json
6666
docs/.vitepress/data/iconDetails
6767
docs/.vitepress/data/relatedIcons.json
6868
docs/.vitepress/data/brandStopwords.json
69+
docs/.vitepress/data/sponsorsData.json
6970
docs/.vitepress/data/iconPopularity
7071
docs/.vitepress/data/lab/iconNodes
7172
docs/.vitepress/data/lab/iconMetaData.ts
@@ -74,3 +75,4 @@ docs/.vercel
7475
docs/.nitro
7576
docs/public/og/**
7677
!docs/public/og/general.png
78+
.claude

‎.well-known/funding-manifest-urls‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://lucide.dev/funding.json

‎README.md‎

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<p align="center">
2-
<a href="https://github.com/lucide-icons/lucide#gh-light-mode-only">
3-
<img src="https://lucide.dev/lucide-logo-repo.svg#gh-light-mode-only" alt="Lucide - Beautiful & consistent icon toolkit made by the community. Open-source project and a fork of Feather Icons." width="480">
4-
</a>
5-
<a href="https://github.com/lucide-icons/lucide#gh-dark-mode-only">
6-
<img src="https://lucide.dev/lucide-logo-repo-dark.svg#gh-dark-mode-only" alt="Lucide - Beautiful & consistent icon toolkit made by the community. Open-source project and a fork of Feather Icons." width="480">
2+
<a href="https://github.com/lucide-icons/lucide">
3+
<picture>
4+
<source media="(prefers-color-scheme: dark)" srcset="https://lucide.dev/lucide-logo-repo-dark.svg">
5+
<img src="https://lucide.dev/lucide-logo-repo.svg" alt="Lucide - Beautiful & consistent icon toolkit made by the community. Open-source project and a fork of Feather Icons." width="480">
6+
</picture>
77
</a>
88
</p>
99
<p align="center">
@@ -88,24 +88,29 @@ Thank you to all the people who contributed to Lucide!
8888
<img src="docs/public/vercel.svg" alt="Powered by Vercel" width="200" />
8989
</a>
9090

91-
<a href="https://www.digitalocean.com/?refcode=b0877a2caebd&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge"><img src="docs/public/digitalocean.svg" width="200" alt="DigitalOcean Referral Badge" /></a>
92-
9391
[//]: <> (Sponsor tiers start)
9492

95-
### Hero Backer 🦸
93+
### Bronze 🥉
94+
95+
<a href="https://about.sourcegraph.com"><picture><source media="(prefers-color-scheme: dark)" srcset="docs/public/sponsors/dark/sourcegraph.svg" /><img src="docs/public/sponsors/sourcegraph.svg" height="48" alt="Sourcegraph – Understand, fix, and automate across your codebase with Sourcegraph's code intelligence platform" /></picture></a>
96+
&nbsp;&nbsp;
97+
<a href="https://opencollective.com/zephyr-cloud"><picture><source media="(prefers-color-scheme: dark)" srcset="docs/public/sponsors/dark/zephyr-cloud.svg" /><img src="docs/public/sponsors/zephyr-cloud.svg" height="48" alt="Zephyr Cloud" /></picture></a>
98+
99+
[//]: <> (Main README only start)
96100

97-
<a href="https://about.sourcegraph.com"><img src="https://images.opencollective.com/sourcegraph/f67b621/logo.png" height="64" alt="Sourcegraph – Understand, fix, and automate across your codebase with Sourcegraph's code intelligence platform" /></a>
98-
<a href="https://opencollective.com/zephyr-cloud"><img src="docs/public/sponsors/zephyr-cloud.svg" height="64" alt="Zephyr Cloud" /></a>
101+
### Backers 🍺
99102

100-
### Awesome backers 🍺
103+
<a href="https://www.paxhistoria.co"><img src="https://images.opencollective.com/pax-historia/9b4e54b/logo.png" height="32" alt="Pax Historia" /></a>
104+
&nbsp;&nbsp;
105+
<a href="https://pdfme.com"><img src="https://images.opencollective.com/pdfmeorg/9e0174d/logo.png" height="32" alt="pdfme – Free and Open source PDF generation library!" /></a>
101106

102-
<a href="https://www.paxhistoria.co"><img src="https://images.opencollective.com/pax-historia/9b4e54b/logo.png" height="64" alt="Pax Historia" /></a>
103-
<a href="https://pdfme.com"><img src="https://images.opencollective.com/pdfmeorg/9e0174d/logo.png" height="64" alt="pdfme – Free and Open source PDF generation library!" /></a>
107+
### Supporters ☕️
104108

105-
### Backer ☕️
109+
<a href="https://www.fina.money"><img src="https://images.opencollective.com/fina-money/7c1f196/logo.png" height="32" alt="Fina Money – Build the most flexible finance tracker" /></a>
110+
&nbsp;&nbsp;
111+
<a href="https://opencollective.com/rjvdw"><img src="https://images.opencollective.com/rjvdw/28bc9cd/avatar.png" height="32" alt="Ruud" /></a>
106112

107-
<a href="https://www.fina.money"><img src="docs/public/sponsors/fina-money.png" height="64" alt="Fina Money – Build the most flexible finance tracker" /></a>
108-
<a href="https://opencollective.com/rjvdw"><img src="https://images.opencollective.com/rjvdw/28bc9cd/avatar.png" height="64" alt="Ruud" /></a>
113+
[//]: <> (Main README only end)
109114

110115
[//]: <> (Sponsor tiers end)
111116

‎docs/.vitepress/config.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export default defineConfig({
8888
'index.md',
8989
'packages.md',
9090
'showcase.md',
91+
'sponsor.md',
9192
'brand-logo-statement.md',
9293
'icons/**', // Not working, need investigation
9394
],
@@ -123,6 +124,9 @@ export default defineConfig({
123124
socialLinks: [
124125
{ icon: 'github', link: 'https://github.com/lucide-icons/lucide' },
125126
{ icon: 'discord', link: 'https://discord.gg/EH6nSts' },
127+
{ icon: 'x', link: 'https://x.com/lucide_icons' },
128+
{ icon: 'linkedin', link: 'https://www.linkedin.com/company/lucide-icons/' },
129+
{ icon: 'bluesky', link: 'https://bsky.app/profile/lucide-icons.bsky.social' },
126130
],
127131
footer: {
128132
message: 'Released under the ISC License.',

‎docs/.vitepress/data/teamData.json‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"icon": "github",
1010
"link": "https://github.com/ericfennis"
1111
},
12+
{
13+
"icon": "linkedin",
14+
"link": "https://www.linkedin.com/in/ericfennis"
15+
},
1216
{
1317
"icon": "x",
1418
"link": "https://x.com/ericfennis"
@@ -36,7 +40,7 @@
3640
},
3741
{
3842
"name": "Jakob Guddas",
39-
"title": "Creator of Lucide Studio",
43+
"title": "Creator of Lucide Studio & Software engineer @LEGO",
4044
"image": "https://github.com/jguddas.png?size=192",
4145
"socialLinks": [
4246
{

‎docs/.vitepress/getStructuredData.ts‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,23 @@ export default async function getStructuredData(iconName: string, pageData: Page
7979
},
8080
};
8181
}
82+
83+
export interface FaqEntry {
84+
question: string;
85+
answer: string;
86+
}
87+
88+
export function getFaqStructuredData(faq: FaqEntry[]) {
89+
return {
90+
'@context': 'https://schema.org',
91+
'@type': 'FAQPage',
92+
mainEntity: faq.map(({ question, answer }) => ({
93+
'@type': 'Question',
94+
name: question,
95+
acceptedAnswer: {
96+
'@type': 'Answer',
97+
text: answer,
98+
},
99+
})),
100+
};
101+
}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<script setup lang="ts">
2+
import { computed } from 'vue';
3+
import { useData } from 'vitepress';
4+
import FaqItem from './FaqItem.vue';
5+
6+
interface FaqEntry {
7+
question: string;
8+
answer: string;
9+
}
10+
11+
const props = withDefaults(
12+
defineProps<{
13+
title?: string;
14+
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
15+
/** Defaults to the page's `faq` frontmatter, which also feeds the FAQPage structured data. */
16+
items?: FaqEntry[];
17+
}>(),
18+
{
19+
headingLevel: 2,
20+
},
21+
);
22+
23+
const { frontmatter } = useData();
24+
25+
const entries = computed<FaqEntry[]>(() => props.items ?? frontmatter.value.faq ?? []);
26+
const headingElement = computed(() => `h${props.headingLevel}`);
27+
</script>
28+
29+
<template>
30+
<section class="faq">
31+
<component
32+
v-if="title"
33+
:is="headingElement"
34+
class="title"
35+
>
36+
{{ title }}
37+
</component>
38+
<div class="items">
39+
<FaqItem
40+
v-for="entry in entries"
41+
:key="entry.question"
42+
:question="entry.question"
43+
:answer="entry.answer"
44+
/>
45+
<slot />
46+
</div>
47+
</section>
48+
</template>
49+
50+
<style scoped>
51+
.faq {
52+
display: flex;
53+
flex-direction: column;
54+
gap: 24px;
55+
}
56+
57+
.title {
58+
margin: 0;
59+
font-size: 32px;
60+
line-height: 40px;
61+
font-weight: 600;
62+
letter-spacing: -0.02em;
63+
color: var(--vp-c-text-1);
64+
}
65+
66+
.items {
67+
display: flex;
68+
flex-direction: column;
69+
border-top: 1px solid var(--vp-c-divider);
70+
}
71+
</style>
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<script setup lang="ts">
2+
import { chevronDown } from '../../../data/iconNodes';
3+
import Icon from '@lucide/vue/src/Icon';
4+
5+
defineProps<{
6+
question: string;
7+
answer?: string;
8+
}>();
9+
</script>
10+
11+
<template>
12+
<details class="faq-item">
13+
<summary class="question">
14+
{{ question }}
15+
<Icon
16+
:iconNode="chevronDown"
17+
name="chevron-down"
18+
:size="20"
19+
class="chevron"
20+
aria-hidden="true"
21+
/>
22+
</summary>
23+
<div class="answer">
24+
<slot>
25+
<p>{{ answer }}</p>
26+
</slot>
27+
</div>
28+
</details>
29+
</template>
30+
31+
<style scoped>
32+
.faq-item {
33+
border-bottom: 1px solid var(--vp-c-divider);
34+
}
35+
36+
.question {
37+
display: flex;
38+
align-items: center;
39+
justify-content: space-between;
40+
gap: 16px;
41+
min-height: 56px;
42+
font-size: 16px;
43+
font-weight: 600;
44+
color: var(--vp-c-text-1);
45+
list-style: none;
46+
cursor: pointer;
47+
}
48+
49+
.question::-webkit-details-marker {
50+
display: none;
51+
}
52+
53+
.chevron {
54+
flex-shrink: 0;
55+
color: var(--vp-c-text-2);
56+
transition: transform 0.2s;
57+
}
58+
59+
.faq-item[open] .chevron {
60+
transform: rotate(180deg);
61+
}
62+
63+
.answer {
64+
padding-bottom: 20px;
65+
font-size: 16px;
66+
line-height: 28px;
67+
color: var(--vp-c-text-2);
68+
}
69+
70+
.answer :slotted(p),
71+
.answer p {
72+
margin: 0;
73+
}
74+
</style>
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<script setup lang="ts">
2+
import { computed, onBeforeUnmount, ref, watch } from 'vue';
3+
import { animate, useInView, useReducedMotion } from 'motion-v';
4+
5+
/**
6+
* Springs a number up from 0 once it scrolls into view.
7+
* Ported from motion-counter by Tanja Gomilar (MIT): https://github.com/tgomilar/motion-components
8+
*/
9+
const props = withDefaults(
10+
defineProps<{
11+
value: number;
12+
suffix?: string;
13+
/** Spring duration, in seconds. */
14+
duration?: number;
15+
/** Delay before counting starts, in seconds. */
16+
delay?: number;
17+
}>(),
18+
{
19+
suffix: '',
20+
duration: 1.5,
21+
delay: 0,
22+
},
23+
);
24+
25+
const el = ref<HTMLElement>();
26+
const inView = useInView(el, { once: true, amount: 0.2 });
27+
const reducedMotion = useReducedMotion();
28+
const current = ref(0);
29+
30+
const format = (value: number) => `${Math.round(value).toLocaleString('en-US')}${props.suffix}`;
31+
const finalText = computed(() => format(props.value));
32+
33+
let controls: ReturnType<typeof animate> | undefined;
34+
35+
watch(inView, (isInView) => {
36+
if (!isInView) return;
37+
38+
if (reducedMotion.value) {
39+
current.value = props.value;
40+
return;
41+
}
42+
43+
controls = animate(0, props.value, {
44+
type: 'spring',
45+
duration: props.duration,
46+
delay: props.delay,
47+
bounce: 0.05,
48+
onUpdate: (latest) => {
49+
current.value = latest;
50+
},
51+
});
52+
});
53+
54+
onBeforeUnmount(() => controls?.stop());
55+
</script>
56+
57+
<template>
58+
<span
59+
ref="el"
60+
class="motion-counter"
61+
>
62+
<span class="visually-hidden">{{ finalText }}</span>
63+
<span aria-hidden="true">{{ format(current) }}</span>
64+
</span>
65+
</template>
66+
67+
<style scoped>
68+
.motion-counter {
69+
font-variant-numeric: tabular-nums;
70+
}
71+
</style>

‎docs/.vitepress/theme/components/base/PageTabs.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</script>
88

99
<template>
10-
<TabGroup>
10+
<TabGroup as="div">
1111
<TabList class="tab-list">
1212
<template v-for="(tab, index) in props.tabs" :key="index">
1313
<Tab :id="`tab-${index}`" class="tab">{{ tab }}</Tab>

0 commit comments

Comments
 (0)