-
-
Notifications
You must be signed in to change notification settings - Fork 6
feat(home): Enhance home section with new illustrations and translations #833
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
Merged
aXenDeveloper
merged 3 commits into
canary
from
feat(home)--Enhance-home-section-with-new-illustrations-and-translations
Sep 30, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "site": { | ||
| "home": { | ||
| "hero": { | ||
| "canary": "VitNode 2.0 is an early canary", | ||
| "description": "Publish content, bring members together and build the features your community needs on an open-source platform you control.", | ||
| "explore": "Explore what you can build", | ||
| "preview": { | ||
| "alt": "The AdminCP dashboard with a sidebar listing Core, Blog and Example plugin sections, a private notes widget and a send-notification widget.", | ||
| "members": "{count, plural, one {<strong>#</strong> member} other {<strong>#</strong> members}}", | ||
| "toast_meta": "Live toast · just now", | ||
| "toast_title": "Welcome aboard, {name}!" | ||
| }, | ||
| "see_product": "See the product", | ||
| "title": "A home for <highlight>your people</highlight>, built around your idea.", | ||
| "trust": { | ||
| "agents": "Made for AI coding agents", | ||
| "license": "MIT licence", | ||
| "open_source": "Open source" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "site": { | ||
| "home": { | ||
| "hero": { | ||
| "canary": "VitNode 2.0 to wczesna wersja canary", | ||
| "description": "Publikuj treści, łącz ludzi i twórz funkcje, których potrzebuje Twoja społeczność, na platformie open source, nad którą masz pełną kontrolę.", | ||
| "explore": "Odkryj, co możesz zbudować", | ||
| "preview": { | ||
| "alt": "Pulpit AdminCP z paskiem bocznym z sekcjami Core, Blog i wtyczki Example, widżetem prywatnych notatek i widżetem wysyłania powiadomień.", | ||
| "members": "{count, plural, one {<strong>#</strong> członek} few {<strong>#</strong> członkowie} many {<strong>#</strong> członków} other {<strong>#</strong> członka}}", | ||
| "toast_meta": "Komunikat na żywo · przed chwilą", | ||
| "toast_title": "Witaj na pokładzie, {name}!" | ||
| }, | ||
| "see_product": "Zobacz produkt", | ||
| "title": "Dom dla <highlight>Twojej społeczności</highlight>, zbudowany wokół Twojego pomysłu.", | ||
| "trust": { | ||
| "agents": "Stworzony dla agentów AI do kodowania", | ||
| "license": "Licencja MIT", | ||
| "open_source": "Open source" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,20 @@ | ||
| import { createFileRoute } from '@tanstack/react-router' | ||
| import { intlQueryOptions } from '@vitnode/core/tanstack/i18n' | ||
|
|
||
| import { HomeRouteContent } from '@/site/home/home-content' | ||
| import { HOME_NAMESPACES } from '@/site/home/namespaces' | ||
| import { MARKETING_PAGES, marketingHead } from '@/site/marketing/metadata' | ||
|
|
||
| export const Route = createFileRoute('/_main/')({ | ||
| loader: async ({ context }) => { | ||
| await context.queryClient.query({ | ||
| ...intlQueryOptions({ | ||
| locale: context.locale, | ||
| namespaces: HOME_NAMESPACES, | ||
| }), | ||
| staleTime: 'static', | ||
| }) | ||
| }, | ||
| head: () => marketingHead(MARKETING_PAGES.home), | ||
| component: HomeRouteContent, | ||
| }) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| import type { LucideIcon } from 'lucide-react' | ||
|
|
||
| import { | ||
| Bell, | ||
| Blocks, | ||
| Bot, | ||
| CalendarDays, | ||
| Code, | ||
| Database, | ||
| FileText, | ||
| Globe, | ||
| Image as ImageIcon, | ||
| Languages, | ||
| LayoutDashboard, | ||
| Lock, | ||
| Mail, | ||
| Plug, | ||
| Search, | ||
| ShieldCheck, | ||
| Sparkles, | ||
| Timer, | ||
| Users, | ||
| Zap, | ||
| } from 'lucide-react' | ||
|
|
||
| const ICONS: LucideIcon[] = [ | ||
| Bell, | ||
| Blocks, | ||
| Bot, | ||
| CalendarDays, | ||
| Code, | ||
| Database, | ||
| FileText, | ||
| Globe, | ||
| ImageIcon, | ||
| Languages, | ||
| LayoutDashboard, | ||
| Lock, | ||
| Mail, | ||
| Plug, | ||
| Search, | ||
| ShieldCheck, | ||
| Sparkles, | ||
| Timer, | ||
| Users, | ||
| Zap, | ||
| ] | ||
|
|
||
| const FIELD = Array.from({ length: 26 }, (_, index) => ({ | ||
| Icon: ICONS[index % ICONS.length], | ||
| rotate: ((index * 47) % 30) - 15, | ||
| x: (index * 29.7 + 7) % 96, | ||
| y: (index * 53.3 + 11) % 92, | ||
| })) | ||
|
|
||
| export const HeroIconField = () => ( | ||
| <div | ||
| aria-hidden | ||
| className="pointer-events-none absolute inset-0 -z-10 hidden lg:block" | ||
| style={{ | ||
| maskImage: | ||
| 'radial-gradient(ellipse 45% 60% at 25% 50%, transparent 45%, black 90%)', | ||
| }} | ||
| > | ||
| {FIELD.map(({ Icon, rotate, x, y }) => ( | ||
| <Icon | ||
| className="text-foreground/15 absolute size-5" | ||
| key={`${x}-${y}`} | ||
| strokeWidth={1.5} | ||
| style={{ left: `${x}%`, rotate: `${rotate}deg`, top: `${y}%` }} | ||
| /> | ||
| ))} | ||
| </div> | ||
| ) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep this file topology-only by exposing a home route loader/query contract from the TanStack feature module instead of constructing
intlQueryOptionshere and importing an app-local namespace list. The current arrangement couples the host route to the screen's query and namespace implementation, contrary to the repository's route-module boundary.AGENTS.md reference: AGENTS.md:L26-L28
Useful? React with 👍 / 👎.