Skip to content

Commit 58669fe

Browse files
committed
feat: add community discussion section
1 parent 794cb2f commit 58669fe

File tree

1 file changed

+117
-2
lines changed

1 file changed

+117
-2
lines changed

apps/index/src/app/page.tsx

Lines changed: 117 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ export default function Home() {
106106

107107
<div className="flex items-center justify-center gap-4 text-sm text-gray-500 dark:text-gray-400">
108108
<div className="flex items-center gap-2">
109-
<div className="w-2 h-2 bg-green-500 rounded-full animate-pulse" />
109+
<div className="w-2 h-2 bg-green-500 rounded-full animate-pulse shrink-0" />
110110
<span>{totalTranslations} Languages Available</span>
111111
</div>
112112
{pendingSiteEntries.length > 0 && (
113113
<div className="flex items-center gap-2">
114-
<div className="w-2 h-2 bg-orange-500 rounded-full animate-pulse" />
114+
<div className="w-2 h-2 bg-orange-500 rounded-full animate-pulse shrink-0" />
115115
<span>{pendingSiteEntries.length} More Coming Soon</span>
116116
</div>
117117
)}
@@ -209,6 +209,121 @@ export default function Home() {
209209
</div>
210210
</div>
211211

212+
{/* Language Request Section */}
213+
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pb-20">
214+
<div className="relative overflow-hidden rounded-3xl bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-500 dark:to-purple-500">
215+
<div className="absolute inset-0 bg-black/10" />
216+
<div className="relative px-8 py-12 text-center">
217+
<div className="max-w-4xl mx-auto">
218+
<div className="flex justify-center mb-6">
219+
<div className="flex items-center gap-2 bg-white/20 backdrop-blur-sm rounded-full px-4 py-2">
220+
<div className="w-2 h-2 bg-yellow-400 rounded-full animate-pulse" />
221+
<span className="text-white text-sm font-medium">
222+
Community Input Needed
223+
</span>
224+
</div>
225+
</div>
226+
227+
<h2 className="text-3xl sm:text-4xl font-bold text-white mb-6">
228+
What Language Do You Need?
229+
</h2>
230+
231+
<p className="text-xl text-white/90 mb-8 leading-relaxed">
232+
Help us prioritize our translation efforts! Tell us which
233+
languages would be most valuable
234+
<br className="hidden sm:block" /> for your development team and
235+
the global Next.js community.
236+
</p>
237+
238+
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4 mb-8 text-white/80">
239+
<div className="flex items-center gap-3">
240+
<div className="w-8 h-8 bg-white/20 rounded-full flex items-center justify-center">
241+
<span className="text-lg">🗳️</span>
242+
</div>
243+
<span className="text-sm">Vote for languages</span>
244+
</div>
245+
<div className="flex items-center gap-3">
246+
<div className="w-8 h-8 bg-white/20 rounded-full flex items-center justify-center">
247+
<span className="text-lg">💬</span>
248+
</div>
249+
<span className="text-sm">Share your use case</span>
250+
</div>
251+
<div className="flex items-center gap-3">
252+
<div className="w-8 h-8 bg-white/20 rounded-full flex items-center justify-center">
253+
<span className="text-lg">🤝</span>
254+
</div>
255+
<span className="text-sm">Offer to contribute</span>
256+
</div>
257+
<div className="flex items-center gap-3">
258+
<div className="w-8 h-8 bg-white/20 rounded-full flex items-center justify-center">
259+
<span className="text-lg">🌍</span>
260+
</div>
261+
<span className="text-sm">Build global community</span>
262+
</div>
263+
</div>
264+
265+
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
266+
<a
267+
href="https://github.com/xiaoyu2er/nextjs-i18n-docs/discussions/33"
268+
target="_blank"
269+
rel="noopener noreferrer"
270+
className="inline-flex items-center gap-3 px-8 py-4 bg-white text-blue-600 rounded-xl font-semibold hover:bg-gray-50 transition-all duration-200 transform hover:scale-105 shadow-lg"
271+
>
272+
<svg
273+
className="w-5 h-5"
274+
fill="currentColor"
275+
viewBox="0 0 24 24"
276+
>
277+
<title>GitHub Icon</title>
278+
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
279+
</svg>
280+
<span>Join the Discussion</span>
281+
<svg
282+
className="w-4 h-4"
283+
fill="none"
284+
stroke="currentColor"
285+
viewBox="0 0 24 24"
286+
>
287+
<title>External Link Icon</title>
288+
<path
289+
strokeLinecap="round"
290+
strokeLinejoin="round"
291+
strokeWidth={2}
292+
d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
293+
/>
294+
</svg>
295+
</a>
296+
297+
<div className="flex items-center gap-2 text-white/80 text-sm">
298+
<span>or</span>
299+
<a
300+
href={GITHUB_URL}
301+
target="_blank"
302+
rel="noopener noreferrer"
303+
className="underline hover:text-white transition-colors"
304+
>
305+
browse our GitHub repo
306+
</a>
307+
</div>
308+
</div>
309+
310+
<div className="mt-8 p-4 bg-white/10 backdrop-blur-sm rounded-xl">
311+
<p className="text-white/80 text-sm">
312+
<strong>Most requested so far:</strong>{' '}
313+
{pendingSiteEntries
314+
.map(([locale]) => {
315+
const info =
316+
LANGUAGE_INFO[locale as keyof typeof LANGUAGE_INFO];
317+
return info ? info.name : locale;
318+
})
319+
.join(', ')}
320+
</p>
321+
</div>
322+
</div>
323+
</div>
324+
</div>
325+
</div>
326+
212327
{/* Pending Sites Section */}
213328
{pendingSiteEntries.length > 0 && (
214329
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pb-20">

0 commit comments

Comments
 (0)