From 76bd9b616921a88a889885782db6c42b31345585 Mon Sep 17 00:00:00 2001 From: aXenDeveloper Date: Fri, 27 Nov 2026 11:22:53 +0100 Subject: [PATCH 1/2] feat(web): islands hero and app-screen bento on the home page Replace the hero wall with the islands scene (engine, runtime and scene components) and rebuild the bento section around tiles that mirror real app screens: admin table, inbox, editor, AI actions and the search dialog. Update the hero copy and the en/pl site locales, extend the marketing styles, and keep the site-plan prototypes used to pick the direction. Co-Authored-By: Claude Fable 5.2 --- apps/web/src/locales/site/en.json | 589 ++------ apps/web/src/locales/site/pl.json | 591 ++------ apps/web/src/site/home/home-content.tsx | 4 - .../home/illustrations/bento/admin-table.tsx | 228 +++ .../home/illustrations/bento/ai-actions.tsx | 74 + .../site/home/illustrations/bento/ai-chip.tsx | 180 --- .../site/home/illustrations/bento/board.tsx | 237 --- .../site/home/illustrations/bento/co-type.tsx | 241 ---- .../site/home/illustrations/bento/drop.tsx | 115 -- .../site/home/illustrations/bento/editor.tsx | 276 ++++ .../site/home/illustrations/bento/inbox.tsx | 153 ++ .../site/home/illustrations/bento/scene.tsx | 46 +- .../bento/{suggest.tsx => search-dialog.tsx} | 131 +- .../site/home/illustrations/bento/slab.tsx | 72 - .../illustrations/hero-wall/app-pages.tsx | 905 ------------ .../hero-wall/content-screens.tsx | 362 ----- .../home/illustrations/hero-wall/frames.tsx | 227 --- .../hero-wall/hero-wall-columns.tsx | 124 -- .../illustrations/hero-wall/hero-wall.tsx | 42 - .../hero-wall/member-screens.tsx | 155 -- .../illustrations/hero-wall/pages-copy.ts | 127 -- .../home/illustrations/hero-wall/parts.tsx | 125 -- .../hero-wall/people-screens.tsx | 316 ---- .../hero-wall/system-screens.tsx | 320 ----- .../site/home/illustrations/islands/engine.ts | 1240 ++++++++++++++++ .../illustrations/islands/islands-scene.tsx | 333 +++++ .../home/illustrations/islands/runtime.ts | 187 +++ apps/web/src/site/home/sections/bento.tsx | 20 +- apps/web/src/site/home/sections/hero.tsx | 74 +- apps/web/src/site/home/use-word-rotation.ts | 78 - .../src/site/marketing/install-command.tsx | 9 +- apps/web/src/site/marketing/marketing.css | 1064 ++++++++++++-- oxfmt.config.mts | 1 + .../cli/commands/generate-compile.test.ts | 29 +- plans/prototypes/build.mjs | 72 + plans/prototypes/site-plans/base.css | 1274 +++++++++++++++++ plans/prototypes/site-plans/base.js | 334 +++++ plans/prototypes/site-plans/shell.html | 61 + .../site-plans/variants/01-by-business.html | 2 + .../site-plans/variants/01-by-business.js | 304 ++++ .../site-plans/variants/02-by-money.html | 2 + .../site-plans/variants/02-by-money.js | 320 +++++ .../site-plans/variants/03-by-journey.html | 2 + .../site-plans/variants/03-by-journey.js | 274 ++++ .../site-plans/variants/04-by-proof.html | 2 + .../site-plans/variants/04-by-proof.js | 320 +++++ 46 files changed, 6734 insertions(+), 4908 deletions(-) create mode 100644 apps/web/src/site/home/illustrations/bento/admin-table.tsx create mode 100644 apps/web/src/site/home/illustrations/bento/ai-actions.tsx delete mode 100644 apps/web/src/site/home/illustrations/bento/ai-chip.tsx delete mode 100644 apps/web/src/site/home/illustrations/bento/board.tsx delete mode 100644 apps/web/src/site/home/illustrations/bento/co-type.tsx delete mode 100644 apps/web/src/site/home/illustrations/bento/drop.tsx create mode 100644 apps/web/src/site/home/illustrations/bento/editor.tsx create mode 100644 apps/web/src/site/home/illustrations/bento/inbox.tsx rename apps/web/src/site/home/illustrations/bento/{suggest.tsx => search-dialog.tsx} (50%) delete mode 100644 apps/web/src/site/home/illustrations/bento/slab.tsx delete mode 100644 apps/web/src/site/home/illustrations/hero-wall/app-pages.tsx delete mode 100644 apps/web/src/site/home/illustrations/hero-wall/content-screens.tsx delete mode 100644 apps/web/src/site/home/illustrations/hero-wall/frames.tsx delete mode 100644 apps/web/src/site/home/illustrations/hero-wall/hero-wall-columns.tsx delete mode 100644 apps/web/src/site/home/illustrations/hero-wall/hero-wall.tsx delete mode 100644 apps/web/src/site/home/illustrations/hero-wall/member-screens.tsx delete mode 100644 apps/web/src/site/home/illustrations/hero-wall/pages-copy.ts delete mode 100644 apps/web/src/site/home/illustrations/hero-wall/parts.tsx delete mode 100644 apps/web/src/site/home/illustrations/hero-wall/people-screens.tsx delete mode 100644 apps/web/src/site/home/illustrations/hero-wall/system-screens.tsx create mode 100644 apps/web/src/site/home/illustrations/islands/engine.ts create mode 100644 apps/web/src/site/home/illustrations/islands/islands-scene.tsx create mode 100644 apps/web/src/site/home/illustrations/islands/runtime.ts delete mode 100644 apps/web/src/site/home/use-word-rotation.ts create mode 100644 plans/prototypes/build.mjs create mode 100644 plans/prototypes/site-plans/base.css create mode 100644 plans/prototypes/site-plans/base.js create mode 100644 plans/prototypes/site-plans/shell.html create mode 100644 plans/prototypes/site-plans/variants/01-by-business.html create mode 100644 plans/prototypes/site-plans/variants/01-by-business.js create mode 100644 plans/prototypes/site-plans/variants/02-by-money.html create mode 100644 plans/prototypes/site-plans/variants/02-by-money.js create mode 100644 plans/prototypes/site-plans/variants/03-by-journey.html create mode 100644 plans/prototypes/site-plans/variants/03-by-journey.js create mode 100644 plans/prototypes/site-plans/variants/04-by-proof.html create mode 100644 plans/prototypes/site-plans/variants/04-by-proof.js diff --git a/apps/web/src/locales/site/en.json b/apps/web/src/locales/site/en.json index 455bcb9021..ae656eab3a 100644 --- a/apps/web/src/locales/site/en.json +++ b/apps/web/src/locales/site/en.json @@ -7,41 +7,78 @@ "content": { "title": "One file, a whole feature", "desc": "Tables, typed API and AdminCP screens from one definition.", - "features": { - "admin": "AdminCP screens", - "api": "Typed API", - "database": "Database table", - "publishing": "Drafts and publishing", - "revisions": "Revisions", - "scheduling": "Scheduling", - "translations": "Translations", - "search": "Site search", - "live": "Live editing", - "comments": "Comments", - "reactions": "Reactions", - "followers": "Followers" + "admin": { + "heading": "Articles", + "create": "Create Article", + "search": "Search…", + "nav": { + "group": "Blog", + "articles": "Articles", + "categories": "Categories", + "core": "Core", + "dashboard": "Dashboard", + "users": "Users" + }, + "columns": { + "title": "Title", + "authors": "Authors", + "status": "Status", + "updated": "Updated" + }, + "published": "Published", + "draft": "Draft", + "rows": { + "fresh": { + "title": "Spring menu launches Monday", + "author": "Ola", + "updated": "Just now" + }, + "recap": { + "title": "Our summer meetup recap", + "author": "Kuba", + "updated": "2 days ago" + }, + "guide": { + "title": "A guide for new moderators", + "author": "Marta", + "updated": "5 days ago" + }, + "rules": { + "title": "Membership rules, rewritten", + "author": "Ola", + "updated": "Last week" + } + } } }, "notifications": { "title": "News that finds its people", "desc": "An inbox, a live count and email digests.", + "heading": "Notifications", + "tabs": { + "unread": "Unread", + "mentions": "Mentions", + "all": "All" + }, "mark_all": "Mark all as read", "items": { "reply": { - "title": "Kuba replied to your topic", - "sub": "on “Summer meetup photos”" - }, - "live": { - "title": "Your article is live", - "sub": "Our summer meetup recap" + "who": "Kuba", + "action": "replied to", + "target": "Summer meetup photos", + "time": "Just now" }, "comment": { - "title": "Ola commented", - "sub": "“Count me in for next year!”" - }, - "report": { - "title": "A moderator closed your report", - "sub": "Report #128 · content hidden" + "who": "Ola", + "action": "commented on", + "target": "Our summer meetup recap", + "time": "2 min ago" + }, + "mention": { + "who": "Marta", + "action": "mentioned you in", + "target": "Meet the moderators", + "time": "1 hour ago" } } }, @@ -55,19 +92,24 @@ "first_end": ".", "ola": " The pizza ran out by eight.", "second": "Next year we are booking", - "kuba": " a bigger venue and two more ovens." + "kuba": " a bigger venue and two more ovens.", + "heading": "Our summer meetup recap", + "translate": "Translate" }, "ai": { "title": "AI that does the chores", "desc": "ALT text and translations, any provider, on a budget.", - "provider": "Any provider", - "alt": "ALT text", - "budget": "{percent}% of budget" + "actions": { + "alt": "Generate image ALT text", + "translate": "Translate content", + "rewrite": "Rewrite selected text", + "review": "Review article before publishing" + }, + "budget": "{percent}% of monthly budget" }, "search": { "title": "Found before you finish typing", "desc": "Suggestions update on every key, ranked by what people read.", - "tab": "Tab", "queries": "m|me|mem|me|mee|meet", "suggestions": { "recap": "Meetup recap 2026", @@ -76,7 +118,12 @@ "rules": "Membership rules", "events": "Mentoring evenings", "library": "Media library tips" - } + }, + "group": "Suggestions", + "navigate": "to navigate", + "open": "to open", + "close": "to close", + "esc": "Esc" } }, "cta": { @@ -125,459 +172,51 @@ "hero": { "copied": "Copied", "copy_command": "Copy install command", - "description": "Accounts, roles, moderation, search and an admin panel are built in. Every feature is a plugin, so you write only what makes your community different.", + "description": "Add whatever your community needs as it grows, all on one account. Every member and every cent you earn stays with you.", "explore": "Explore what you can build", - "pages": { - "article": { - "back": "Back to articles", - "body": "Forty-two members, one rooftop and far too much pizza. Here is everything we shipped together, and what we are planning for next year.", - "read": "4 min read" - }, - "blog": { - "all": "All articles", - "articles": { - "0": { - "date": "Nov 18, 2026", - "title": "Our summer meetup recap, with far too much pizza" - }, - "1": { - "date": "Nov 9, 2026", - "title": "Self-hosting on a Raspberry Pi" - } - }, - "categories": "Categories", - "categoryNames": { - "0": "Events", - "1": "Guides", - "2": "Releases" - }, - "desc": "Articles, guides and news from the team, newest first.", - "title": "Blog" - }, - "discover": { - "commented": "commented on", - "desc": "See the latest activity across the community.", - "kind": "Comment", - "title": "Discover" - }, - "forum": { - "comments": "Comments", - "desc": "Pull up a chair. Ask questions, share what you built and help each other out.", - "forums": { - "0": { - "latest": "Version 2.0 is here", - "name": "Announcements" - }, - "1": { - "latest": "Canary 13 notes", - "name": "Releases" - }, - "2": { - "desc": "Talk about anything and everything.", - "latest": "Summer meetup photos", - "name": "General discussion" - }, - "3": { - "desc": "Stuck? Someone here has been there.", - "latest": "Docker setup on a NAS", - "name": "Help and support" - } - }, - "latest": "Latest topic", - "newTopic": "New topic", - "title": "Forum", - "topics": "Topics", - "topicsList": { - "0": { - "date": "Nov 23, 5:02 PM", - "title": "Summer meetup photos, add yours to the thread" - }, - "1": { - "date": "Nov 22, 9:14 AM", - "title": "Which keyboard are you typing on?" - }, - "2": { - "date": "Nov 20, 7:40 PM", - "title": "Introduce yourself" - }, - "3": { - "date": "Nov 18, 1:25 PM", - "title": "Plugin ideas for the next release" - } - } - }, - "modcp": { - "assigned": "Assigned", - "cards": { - "0": { - "kind": "#8 · Comment", - "reason": "Spam", - "text": "Great news, the rail yard has been empty for years." - }, - "1": { - "kind": "#7 · Comment", - "reason": "Abusive content", - "text": "This thread went off the rails after page two." - }, - "2": { - "kind": "#1 · Article", - "reason": "Spam", - "text": "Self-hosting on a Raspberry Pi" - } - }, - "columns": { - "0": "New", - "1": "In progress", - "2": "Done" - }, - "crumb": "Moderator CP", - "desc": "Reports you can act on. Drag a card to another column to take it, close it or send it back.", - "empty": "Nothing here.", - "nav": { - "0": "Reports", - "1": "Approvals", - "2": "Warnings" - }, - "search": "Search by title or #id", - "title": "Reports" - }, - "nav": { + "scene": { + "all": { + "off": "Connect them all", + "on": "Cut the bridges" + }, + "bridge": "Bridge to {name}", + "captions": { + "blog": "Articles with comments. Replies and the weekly email bring readers back across, with no ad to pay for.", + "booking": "Members book and pay for your time on an island they can already walk to.", + "forum": "Members answer each other in public, and every answer is a page that search engines send new people to.", + "members": "Charge for the members-only island. The people most likely to join are already one bridge away.", + "payments": "Everything your islands earn lands in your own bank account. VitNode takes no cut.", + "people": "Your members live here. Every island you add gets a bridge, and they cross it with the account they already have.", + "shop": "Everyone crossing the bridge is already signed in, so buying takes no second account." + }, + "clear_skies": "Clear skies", + "cut": "The bridges are down and the members' island is still full. Nobody lost their account.", + "home": "Members", + "lowered": "The bridge comes down and the island sinks. Your members walk home and keep their accounts.", + "parts": { "blog": "Blog", - "community": "Community", - "docs": "Docs", - "login": "Login", - "plugins": "Plugins", - "register": "Register", - "search": "Search…" - }, - "notifications": { - "items": { - "0": { - "text": "commented on Summer meetup photos", - "time": "2 minutes ago" - }, - "1": { - "text": "reacted to your article", - "time": "1 hour ago" - }, - "2": { - "text": "mentioned you in Introduce yourself", - "time": "4 days ago" - } - }, - "markAll": "Mark all as read", - "tabs": { - "0": "Unread", - "1": "Mentions", - "2": "All" - }, - "title": "Notifications" - }, - "payments": { - "desc": "Buy one fixed-price item with a hosted checkout. The purchase counts only once the provider confirms the payment.", - "item": "Sticker pack", - "itemDesc": "Twelve vinyl stickers for laptops, water bottles and tired monitors.", - "owned": "You own this item", - "price": "$5.00", - "title": "Payments demo", - "view": "View purchase" - }, - "people": { - "0": { - "name": "Ola Nowak", - "nick": "@ola" - }, - "1": { - "name": "Kuba Wiśniewski", - "nick": "@kuba" - }, - "2": { - "name": "Maya Lindqvist", - "nick": "@maya" - }, - "3": { - "name": "Jun Sato", - "nick": "@jun" - } - }, - "profile": { - "joined": "November 15, 2025", - "month": "November 2026", - "online": "Online now", - "reacted": "reacted to", - "reputation": "+128 reputation", - "role": "Administrator", - "timeline": "Timeline", - "today": "Today · 2 items", - "weekday": "TUE", - "weekdayBefore": "MON", - "yesterday": "Yesterday · 14 items" - }, - "search": { - "any": "Any time", - "content": "Content", - "date": "Date created", - "desc": "Search across everything in the community.", - "filters": "Filters", - "kinds": { - "0": "Article", - "1": "Comment", - "2": "Topic" - }, - "newest": "Newest", - "placeholder": "meetup", - "ranges": { - "0": "Any time", - "1": "Past 24 hours", - "2": "Past week" - }, - "results": "45 results", - "title": "Search" - }, - "topic": { - "body": "Drop your photos from the rooftop here. Bonus points for anything with the pizza tower in frame.", - "commentCount": "6 comments", - "comments": { - "0": "Here are mine from the rooftop. What a view!", - "1": "The pizza ran out by eight. Next year we order double." - }, - "hide": "Hide 2 replies", - "posted": "Posted Nov 23, 5:02 PM", - "report": "Report" - } - }, - "rotator": { - "lead": "Build your", - "spoken": "Build your forum, blog, shop, team space or own idea without starting from zero.", - "tail": "without starting from zero.", - "words": { - "blog": "blog", - "forum": "forum", - "own": "own idea", - "shop": "shop", - "team": "team space" + "booking": "Bookings", + "forum": "Forum", + "members": "Memberships", + "payments": "Payments", + "shop": "Shop" + }, + "react": { + "cloud": "A cloud drifts off. Nothing stands between your members and the next island.", + "flock": "A flock of members flies to another island. Nobody needs a new account to visit.", + "plank": "The planks bounce under their feet. Members cross with the account they already have, no second sign-up.", + "walker": "Crossing over with the account they already have." } }, "start": "Get started", + "title": { + "accent": "a place to belong", + "lead": "Give your people" + }, "trust": { "agents": "Made for AI coding agents", "license": "MIT licence", "open_source": "Open source" - }, - "wall": { - "ai": { - "alt_text": "Alt text for images", - "budget": "Budget left", - "desc": "Points your members spent on AI features this month.", - "models": "{count, plural, one {# model} other {# models}}", - "points": "Points used", - "requests": "Requests", - "summaries": "Summaries", - "translate": "Translate articles" - }, - "article": { - "back": "Back", - "choose": "Choose file", - "content": "Content", - "content_value": "Forty-two members, one rooftop and far too much pizza. Here is everything we shipped together…", - "cover": "Cover image", - "cover_desc": "JPG, PNG, WEBP, AVIF · max 5 MB", - "desc": "Add a new Article.", - "draft": "Save as draft", - "drop": "Drop a file here", - "publish": "Publish", - "title": "Create Article", - "title_label": "Title", - "title_value": "Our summer meetup recap", - "url": "Friendly URL" - }, - "categories": { - "announcements": "Announcements", - "count": "{count, plural, one {# article} other {# articles}}", - "create": "New category", - "desc": "Group your blog articles so readers find their way.", - "events": "Events", - "guides": "Guides & tutorials", - "releases": "Release notes", - "spotlight": "Community spotlight" - }, - "common": { - "active": "Active", - "english": "English", - "optional": "Optional", - "read_more": "Read more" - }, - "cron": { - "daily": "Daily", - "desc": "Background tasks and when they run next.", - "digest": "Send weekly digest", - "failed": "Failed", - "files": "Purge deleted files", - "healthy": "Healthy", - "hourly": "Every hour", - "in_hours": "in {count} h", - "in_minutes": "in {count} min", - "job": "Job", - "last_tick": "Last tick {count, plural, one {# second} other {# seconds}} ago", - "next_run": "Next run", - "running": "Running", - "scheduler": "Scheduler is running", - "search": "Rebuild search index", - "sessions": "Clear expired sessions", - "six_hours": "Every 6 hours", - "status": "Status", - "tomorrow": "Tomorrow", - "weekly": "Weekly" - }, - "dashboard": { - "dev_mode": "Development Mode", - "edit_layout": "Edit layout", - "message": "Title", - "message_value": "Hello from the admin 👋", - "notes_desc": "A private scratchpad. Only you can see it.", - "notes_placeholder": "Anything worth remembering…", - "notes_title": "Notes", - "notify_desc": "Pushes a toast to the user in real time, on every browser where they are signed in.", - "notify_title": "Send a notification", - "send": "Send", - "user_id": "User ID", - "version": "Version: {version}" - }, - "files": { - "desc": "Everything your members and staff have uploaded.", - "upload": "Upload" - }, - "integrations": { - "ai": "Text generation, structured output, and embeddings via the Vercel AI SDK.", - "cron": "Scheduled background tasks such as clearing expired sessions and tokens.", - "desc": "Status of the core services that power this instance.", - "email": "Transactional emails such as sign-up confirmations and password resets.", - "email_title": "Email", - "queue": "Background jobs enqueued in the database and drained by the cron worker.", - "redis": "Shared cache and rate-limiter storage. Falls back to in-memory when off.", - "title": "Integrations", - "unreachable": "Unreachable", - "websocket": "Live updates and notifications pushed to connected clients in real time." - }, - "login": { - "desc": "Welcome back! Sign in to your account.", - "email": "Email", - "forgot": "Forgot password?", - "no_account": "Don’t have an account?", - "password": "Password", - "sign_up": "Sign up.", - "submit": "Login", - "title": "Login" - }, - "moderators": { - "articles": "Manage articles", - "articles_desc": "Create, edit and publish articles", - "desc": "Choose what moderators can do in the AdminCP.", - "layout": "Edit layout", - "layout_desc": "Change the menu and dashboard widgets", - "members": "Moderate members", - "members_desc": "Ban, warn and edit member profiles", - "roles": "Manage roles", - "roles_desc": "Change roles and staff access", - "usage": "View AI usage", - "usage_desc": "See points and budgets" - }, - "nav": { - "admins": "Administrators", - "advanced": "Advanced", - "ai": "Artificial Intelligence (AI)", - "ai_actions": "Actions", - "ai_history": "History", - "ai_overview": "Overview", - "articles": "Articles", - "blog": "Blog", - "categories": "Categories", - "core": "Core", - "cron": "Cron Jobs", - "dashboard": "Dashboard", - "files": "Files", - "integrations": "Integrations", - "moderators": "Moderators", - "navigation": "Navigation", - "notifications": "Notifications", - "queue": "Queue Tasks", - "roles": "Roles", - "search": "Search", - "staff": "Staff", - "system": "System", - "user_list": "User List", - "users": "Users" - }, - "navigation": { - "add": "Add link", - "desc": "Choose where your menu links lead and in what order.", - "discord": "Discord", - "home": "Home", - "support": "Support us" - }, - "notifications": { - "desc": "What happened in your community while you were away.", - "digest": "Weekly digest sent to {count, number} members", - "hours_ago": "{count, plural, one {# hour ago} other {# hours ago}}", - "joined": "{name} joined your community", - "mark_all": "Mark all as read", - "minutes_ago": "{count, plural, one {# minute ago} other {# minutes ago}}", - "new": "{count} new", - "published": "{name} published “{title}”", - "published_title": "Self-hosting on a Raspberry Pi", - "role": "Moderator role updated by {name}", - "translated": "AI translated {count, plural, one {# article} other {# articles}} into Polish", - "yesterday": "Yesterday" - }, - "roles": { - "administrator": "Administrator", - "create": "Create role", - "desc": "Manage the roles of your application.", - "guest": "Guest", - "member": "Member", - "moderator": "Moderator", - "role": "Role", - "search": "Search roles by name…", - "updated": "Updated At", - "users_count": "Number of users" - }, - "search": { - "desc": "Everything your members can find, kept in one index.", - "documents": "Indexed documents", - "engine": "Engine", - "engine_value": "Postgres full-text", - "rebuilt": "Last rebuilt {count, plural, one {# hour} other {# hours}} ago", - "reindex": "Rebuild index", - "type": "Type" - }, - "settings": { - "active_now": "Active now", - "ai": "AI usage", - "days_ago": "{count, plural, one {# day ago} other {# days ago}}", - "devices": "Devices", - "edit_profile": "Edit profile", - "email": "Email", - "language": "Language", - "member_since": "Member since {date}", - "notifications": "Notifications", - "overview": "Overview", - "role": "Role", - "security": "Security", - "sign_out": "Sign out", - "sign_out_all": "Sign out of all other devices", - "sso": "Connected accounts", - "this_device": "This device", - "time_zone": "Time zone", - "time_zone_value": "Europe/Warsaw (GMT+2)", - "title": "Settings" - }, - "users": { - "add": "Add user", - "desc": "Everyone who has signed up to your community.", - "joined": "Joined", - "search": "Search by name or email…", - "user": "User" - } } } }, diff --git a/apps/web/src/locales/site/pl.json b/apps/web/src/locales/site/pl.json index 6c25bd70af..747eee0c1b 100644 --- a/apps/web/src/locales/site/pl.json +++ b/apps/web/src/locales/site/pl.json @@ -7,67 +7,109 @@ "content": { "title": "Jeden plik, cała funkcja", "desc": "Tabele, typowane API i ekrany AdminCP z jednej definicji.", - "features": { - "admin": "Ekrany AdminCP", - "api": "Typowane API", - "database": "Tabela w bazie", - "publishing": "Szkice i publikacja", - "revisions": "Rewizje", - "scheduling": "Harmonogram", - "translations": "Tłumaczenia", - "search": "Wyszukiwarka", - "live": "Wspólna edycja", - "comments": "Komentarze", - "reactions": "Reakcje", - "followers": "Obserwujący" + "admin": { + "heading": "Artykuły", + "create": "Utwórz artykuł", + "search": "Szukaj…", + "nav": { + "group": "Blog", + "articles": "Artykuły", + "categories": "Kategorie", + "core": "Rdzeń", + "dashboard": "Pulpit", + "users": "Użytkownicy" + }, + "columns": { + "title": "Tytuł", + "authors": "Autorzy", + "status": "Status", + "updated": "Zaktualizowano" + }, + "published": "Opublikowany", + "draft": "Szkic", + "rows": { + "fresh": { + "title": "Wiosenne menu startuje w poniedziałek", + "author": "Ola", + "updated": "Przed chwilą" + }, + "recap": { + "title": "Podsumowanie letniego spotkania", + "author": "Kuba", + "updated": "2 dni temu" + }, + "guide": { + "title": "Poradnik dla nowych moderatorów", + "author": "Marta", + "updated": "5 dni temu" + }, + "rules": { + "title": "Zasady członkostwa po nowemu", + "author": "Ola", + "updated": "Tydzień temu" + } + } } }, "notifications": { "title": "Wiadomości, które same trafiają do ludzi", "desc": "Skrzynka, licznik na żywo i podsumowania e-mailem.", + "heading": "Powiadomienia", + "tabs": { + "unread": "Nieprzeczytane", + "mentions": "Wzmianki", + "all": "Wszystkie" + }, "mark_all": "Oznacz wszystkie jako przeczytane", "items": { "reply": { - "title": "Kuba odpowiedział w Twoim temacie", - "sub": "w „Zdjęcia z letniego spotkania”" - }, - "live": { - "title": "Twój artykuł jest opublikowany", - "sub": "Podsumowanie letniego spotkania" + "who": "Kuba", + "action": "odpowiedział w", + "target": "Zdjęcia z letniego spotkania", + "time": "Przed chwilą" }, "comment": { - "title": "Ola dodała komentarz", - "sub": "„Wpisz mnie na przyszły rok!”" - }, - "report": { - "title": "Moderator zamknął Twoje zgłoszenie", - "sub": "Zgłoszenie #128 · treść ukryta" + "who": "Ola", + "action": "skomentowała", + "target": "Podsumowanie letniego spotkania", + "time": "2 min temu" + }, + "mention": { + "who": "Marta", + "action": "wspomniała o Tobie w", + "target": "Poznaj moderatorów", + "time": "Godzinę temu" } } }, "live": { "title": "Piszcie razem w czasie rzeczywistym", "desc": "Tekst sformatowany przyjmuje kilka kursorów naraz, a każda zmiana zapisuje się sama.", - "saving": "Zapisywanie…", + "saving": "Zapisuję…", "saved": "Zapisano", "first": "Czterdziestu dwóch członków spotkało się na", "selected": "dachu", "first_end": ".", "ola": " Pizza skończyła się przed ósmą.", "second": "W przyszłym roku rezerwujemy", - "kuba": " większą salę i dwa piece więcej." + "kuba": " większą salę i dwa piece więcej.", + "heading": "Podsumowanie letniego spotkania", + "translate": "Tłumacz" }, "ai": { "title": "AI, które odwala nudną robotę", "desc": "Teksty ALT i tłumaczenia, dowolny dostawca, w ramach budżetu.", - "provider": "Dowolny dostawca", - "alt": "Tekst ALT", - "budget": "{percent}% budżetu" + "actions": { + "alt": "Generuj tekst ALT obrazu", + "translate": "Tłumacz treści", + "rewrite": "Przeredaguj zaznaczony tekst", + "review": "Sprawdź artykuł przed publikacją" + }, + "budget": "{percent}% miesięcznego budżetu" }, "search": { "title": "Znalezione, zanim skończysz pisać", "desc": "Podpowiedzi zmieniają się z każdym klawiszem, ułożone według tego, co ludzie czytają.", - "tab": "Tab", "queries": "s|sp|spr|sp|spo|spot", "suggestions": { "recap": "Spotkanie letnie 2026", @@ -76,7 +118,12 @@ "rules": "Społeczność — zasady", "events": "Sport i rekreacja", "library": "Sprzedam rower" - } + }, + "group": "Podpowiedzi", + "navigate": "nawigacja", + "open": "otwórz", + "close": "zamknij", + "esc": "Esc" } }, "cta": { @@ -125,459 +172,51 @@ "hero": { "copied": "Skopiowano", "copy_command": "Skopiuj komendę instalacji", - "description": "Konta, role, moderacja, wyszukiwarka i panel administratora są w zestawie. Każda funkcja to plugin, więc piszesz tylko to, co wyróżnia Twoją społeczność.", + "description": "Dodawaj to, czego potrzebuje Twoja społeczność, gdy rośnie, wszystko na jednym koncie. Każdy użytkownik i każdy zarobiony grosz zostają z Tobą.", "explore": "Odkryj, co możesz zbudować", - "pages": { - "article": { - "back": "Wróć do artykułów", - "body": "Czterdziestu dwóch członków, jeden dach i zdecydowanie za dużo pizzy. Oto wszystko, co razem zbudowaliśmy, i plany na przyszły rok.", - "read": "4 min czytania" - }, - "blog": { - "all": "Wszystkie artykuły", - "articles": { - "0": { - "date": "18 lis 2026", - "title": "Podsumowanie letniego zlotu i zdecydowanie za dużo pizzy" - }, - "1": { - "date": "9 lis 2026", - "title": "Własny serwer na Raspberry Pi" - } - }, - "categories": "Kategorie", - "categoryNames": { - "0": "Wydarzenia", - "1": "Poradniki", - "2": "Wydania" - }, - "desc": "Artykuły, poradniki i wiadomości od zespołu, od najnowszych.", - "title": "Blog" - }, - "discover": { - "commented": "skomentował(a)", - "desc": "Zobacz najnowszą aktywność w całej społeczności.", - "kind": "Komentarz", - "title": "Odkrywaj" - }, - "forum": { - "comments": "Komentarze", - "desc": "Rozgość się. Pytaj, pokazuj, co budujesz, i pomagaj innym.", - "forums": { - "0": { - "latest": "Wersja 2.0 już jest", - "name": "Ogłoszenia" - }, - "1": { - "latest": "Notatki do canary 13", - "name": "Wydania" - }, - "2": { - "desc": "Rozmowy o wszystkim i o niczym.", - "latest": "Zdjęcia z letniego zlotu", - "name": "Dyskusja ogólna" - }, - "3": { - "desc": "Utknąłeś? Ktoś tu już przez to przeszedł.", - "latest": "Docker na serwerze NAS", - "name": "Pomoc i wsparcie" - } - }, - "latest": "Ostatni temat", - "newTopic": "Nowy temat", - "title": "Forum", - "topics": "Tematy", - "topicsList": { - "0": { - "date": "23 lis, 17:02", - "title": "Zdjęcia z letniego zlotu, dorzućcie swoje do wątku" - }, - "1": { - "date": "22 lis, 9:14", - "title": "Na jakiej klawiaturze piszecie?" - }, - "2": { - "date": "20 lis, 19:40", - "title": "Przedstaw się" - }, - "3": { - "date": "18 lis, 13:25", - "title": "Pomysły na pluginy do kolejnego wydania" - } - } - }, - "modcp": { - "assigned": "Przypisane", - "cards": { - "0": { - "kind": "#8 · Komentarz", - "reason": "Spam", - "text": "Świetna wiadomość, bocznica stoi pusta od lat." - }, - "1": { - "kind": "#7 · Komentarz", - "reason": "Obraźliwa treść", - "text": "Ten wątek wykoleił się po drugiej stronie." - }, - "2": { - "kind": "#1 · Artykuł", - "reason": "Spam", - "text": "Własny serwer na Raspberry Pi" - } - }, - "columns": { - "0": "Nowe", - "1": "W toku", - "2": "Gotowe" - }, - "crumb": "Panel moderatora", - "desc": "Zgłoszenia, którymi możesz się zająć. Przeciągnij kartę do innej kolumny, aby ją przejąć, zamknąć lub odesłać.", - "empty": "Nic tu nie ma.", - "nav": { - "0": "Zgłoszenia", - "1": "Akceptacje", - "2": "Ostrzeżenia" - }, - "search": "Szukaj po tytule lub #id", - "title": "Zgłoszenia" - }, - "nav": { + "scene": { + "all": { + "off": "Połącz wszystkie", + "on": "Zerwij mosty" + }, + "bridge": "Most: {name}", + "captions": { + "blog": "Artykuły z komentarzami. Odpowiedzi i cotygodniowy e-mail sprowadzają czytelników z powrotem, bez płacenia za reklamy.", + "booking": "Użytkownicy rezerwują i opłacają Twój czas na wyspie, na którą i tak mogą przejść.", + "forum": "Użytkownicy odpowiadają sobie publicznie, a każda odpowiedź to strona, na którą wyszukiwarki kierują nowych ludzi.", + "members": "Pobieraj opłaty za wyspę tylko dla członków. Najchętniej dołączą ci, którzy są już jeden most dalej.", + "payments": "Wszystko, co zarobią Twoje wyspy, trafia na Twoje konto bankowe. VitNode nie pobiera prowizji.", + "people": "Tu mieszkają Twoi użytkownicy. Każda dodana wyspa dostaje most, a oni przechodzą go z kontem, które już mają.", + "shop": "Każdy, kto przechodzi przez most, jest już zalogowany, więc do zakupu nie trzeba drugiego konta." + }, + "clear_skies": "Czyste niebo", + "cut": "Mosty opadły, a wyspa użytkowników jest wciąż pełna. Nikt nie stracił konta.", + "home": "Użytkownicy", + "lowered": "Most opada, wyspa tonie w chmurach. Użytkownicy wracają do siebie i zachowują swoje konta.", + "parts": { "blog": "Blog", - "community": "Społeczność", - "docs": "Dokumentacja", - "login": "Zaloguj się", - "plugins": "Wtyczki", - "register": "Zarejestruj się", - "search": "Szukaj…" - }, - "notifications": { - "items": { - "0": { - "text": "skomentował temat Zdjęcia z letniego zlotu", - "time": "2 minuty temu" - }, - "1": { - "text": "zareagowała na Twój artykuł", - "time": "godzinę temu" - }, - "2": { - "text": "wspomniał o Tobie w Przedstaw się", - "time": "4 dni temu" - } - }, - "markAll": "Oznacz wszystkie jako przeczytane", - "tabs": { - "0": "Nieprzeczytane", - "1": "Wzmianki", - "2": "Wszystkie" - }, - "title": "Powiadomienia" - }, - "payments": { - "desc": "Kup jeden produkt w stałej cenie przez zewnętrzną płatność. Zakup liczy się dopiero po potwierdzeniu przez operatora.", - "item": "Zestaw naklejek", - "itemDesc": "Dwanaście winylowych naklejek na laptopy, bidony i zmęczone monitory.", - "owned": "Masz ten produkt", - "price": "20,00 zł", - "title": "Demo płatności", - "view": "Zobacz zakup" - }, - "people": { - "0": { - "name": "Ola Nowak", - "nick": "@ola" - }, - "1": { - "name": "Kuba Wiśniewski", - "nick": "@kuba" - }, - "2": { - "name": "Maya Lindqvist", - "nick": "@maya" - }, - "3": { - "name": "Jun Sato", - "nick": "@jun" - } - }, - "profile": { - "joined": "15 listopada 2025", - "month": "Listopad 2026", - "online": "Teraz online", - "reacted": "zareagowała na", - "reputation": "+128 reputacji", - "role": "Administratorka", - "timeline": "Oś czasu", - "today": "Dzisiaj · 2 pozycje", - "weekday": "WT", - "weekdayBefore": "PON", - "yesterday": "Wczoraj · 14 pozycji" - }, - "search": { - "any": "Kiedykolwiek", - "content": "Treść", - "date": "Data utworzenia", - "desc": "Szukaj we wszystkim, co jest w społeczności.", - "filters": "Filtry", - "kinds": { - "0": "Artykuł", - "1": "Komentarz", - "2": "Temat" - }, - "newest": "Najnowsze", - "placeholder": "zlot", - "ranges": { - "0": "Kiedykolwiek", - "1": "Ostatnie 24 godziny", - "2": "Ostatni tydzień" - }, - "results": "45 wyników", - "title": "Szukaj" - }, - "topic": { - "body": "Wrzucajcie tu zdjęcia z dachu. Dodatkowe punkty za wszystko, na czym widać wieżę z pizzy.", - "commentCount": "6 komentarzy", - "comments": { - "0": "Oto moje z dachu. Co za widok!", - "1": "Pizza skończyła się przed ósmą. Za rok zamawiamy podwójnie." - }, - "hide": "Ukryj 2 odpowiedzi", - "posted": "Opublikowano 23 lis, 17:02", - "report": "Zgłoś" - } - }, - "rotator": { - "lead": "Zbuduj", - "spoken": "Zbuduj forum, bloga, sklep, przestrzeń zespołu albo własny pomysł bez zaczynania od zera.", - "tail": "bez zaczynania od zera.", - "words": { - "blog": "bloga", - "forum": "forum", - "own": "własny pomysł", - "shop": "sklep", - "team": "przestrzeń zespołu" + "booking": "Rezerwacje", + "forum": "Forum", + "members": "Członkostwa", + "payments": "Płatności", + "shop": "Sklep" + }, + "react": { + "cloud": "Chmura odpływa. Nic nie stoi między Twoimi użytkownikami a kolejną wyspą.", + "flock": "Stado użytkowników leci na inną wyspę. Nikt nie potrzebuje nowego konta, żeby wpaść.", + "plank": "Deski uginają się pod stopami. Użytkownicy przechodzą z kontem, które już mają, bez drugiej rejestracji.", + "walker": "Przechodzi z kontem, które już ma." } }, "start": "Zacznij", + "title": { + "accent": "miejsce, gdzie są u siebie", + "lead": "Daj swoim ludziom" + }, "trust": { "agents": "Stworzony dla agentów AI do kodowania", "license": "Licencja MIT", "open_source": "Open source" - }, - "wall": { - "ai": { - "alt_text": "Teksty alternatywne obrazów", - "budget": "Pozostały budżet", - "desc": "Punkty wydane przez członków na funkcje AI w tym miesiącu.", - "models": "{count, plural, one {# model} few {# modele} many {# modeli} other {# modelu}}", - "points": "Wykorzystane punkty", - "requests": "Żądania", - "summaries": "Podsumowania", - "translate": "Tłumaczenie artykułów" - }, - "article": { - "back": "Wróć", - "choose": "Wybierz plik", - "content": "Treść", - "content_value": "Czterdziestu dwóch członków, jeden dach i zdecydowanie za dużo pizzy. Oto wszystko, co razem zbudowaliśmy…", - "cover": "Obraz okładki", - "cover_desc": "JPG, PNG, WEBP, AVIF · maks. 5 MB", - "desc": "Dodaj nowy artykuł.", - "draft": "Zapisz jako szkic", - "drop": "Przeciągnij plik tutaj", - "publish": "Opublikuj", - "title": "Utwórz artykuł", - "title_label": "Tytuł", - "title_value": "Podsumowanie letniego spotkania", - "url": "Przyjazny adres URL" - }, - "categories": { - "announcements": "Ogłoszenia", - "count": "{count, plural, one {# artykuł} few {# artykuły} many {# artykułów} other {# artykułu}}", - "create": "Nowa kategoria", - "desc": "Grupuj artykuły na blogu, aby czytelnicy łatwo trafiali tam, gdzie chcą.", - "events": "Wydarzenia", - "guides": "Poradniki", - "releases": "Informacje o wydaniach", - "spotlight": "W centrum społeczności" - }, - "common": { - "active": "Aktywna", - "english": "Angielski", - "optional": "Opcjonalne", - "read_more": "Czytaj więcej" - }, - "cron": { - "daily": "Codziennie", - "desc": "Zadania w tle i czas ich następnego uruchomienia.", - "digest": "Wyślij cotygodniowe podsumowanie", - "failed": "Błąd", - "files": "Usuń skasowane pliki", - "healthy": "Działa", - "hourly": "Co godzinę", - "in_hours": "za {count} godz.", - "in_minutes": "za {count} min", - "job": "Zadanie", - "last_tick": "Ostatnie uruchomienie {count, plural, one {# sekundę} few {# sekundy} many {# sekund} other {# sekundy}} temu", - "next_run": "Następne uruchomienie", - "running": "W trakcie", - "scheduler": "Harmonogram działa", - "search": "Przebuduj indeks wyszukiwania", - "sessions": "Wyczyść wygasłe sesje", - "six_hours": "Co 6 godzin", - "status": "Status", - "tomorrow": "Jutro", - "weekly": "Co tydzień" - }, - "dashboard": { - "dev_mode": "Tryb deweloperski", - "edit_layout": "Edytuj układ", - "message": "Tytuł", - "message_value": "Pozdrowienia od administratora 👋", - "notes_desc": "Prywatny notatnik. Widzisz go tylko Ty.", - "notes_placeholder": "Wszystko, co warto zapamiętać…", - "notes_title": "Notatki", - "notify_desc": "Wysyła powiadomienie do użytkownika w czasie rzeczywistym, na każdej przeglądarce, na której jest zalogowany.", - "notify_title": "Wyślij powiadomienie", - "send": "Wyślij", - "user_id": "ID użytkownika", - "version": "Wersja: {version}" - }, - "files": { - "desc": "Wszystko, co przesłali członkowie i zespół.", - "upload": "Prześlij" - }, - "integrations": { - "ai": "Generowanie tekstu, uporządkowane dane wyjściowe i osadzenia dzięki Vercel AI SDK.", - "cron": "Zaplanowane zadania w tle, takie jak czyszczenie wygasłych sesji i tokenów.", - "desc": "Status podstawowych usług obsługujących tę instancję.", - "email": "Wiadomości transakcyjne, takie jak potwierdzenia rejestracji i resetowanie hasła.", - "email_title": "E-mail", - "queue": "Zadania w tle umieszczone w kolejce w bazie danych i przetwarzane przez proces cron.", - "redis": "Współdzielona pamięć podręczna i magazyn ogranicznika żądań. Przy wyłączeniu przechodzi na pamięć wewnętrzną.", - "title": "Integracje", - "unreachable": "Nieosiągalna", - "websocket": "Aktualizacje na żywo i powiadomienia wysyłane do połączonych klientów w czasie rzeczywistym." - }, - "login": { - "desc": "Witaj ponownie! Zaloguj się na swoje konto.", - "email": "Adres e-mail", - "forgot": "Nie pamiętasz hasła?", - "no_account": "Nie masz konta?", - "password": "Hasło", - "sign_up": "Zarejestruj się.", - "submit": "Zaloguj się", - "title": "Zaloguj się" - }, - "moderators": { - "articles": "Zarządzanie artykułami", - "articles_desc": "Tworzenie, edycja i publikowanie artykułów", - "desc": "Wybierz, co moderatorzy mogą robić w AdminCP.", - "layout": "Edycja układu", - "layout_desc": "Zmiana menu i widżetów pulpitu", - "members": "Moderowanie członków", - "members_desc": "Banowanie, ostrzeganie i edycja profili", - "roles": "Zarządzanie rolami", - "roles_desc": "Zmiana ról i dostępu zespołu", - "usage": "Podgląd użycia AI", - "usage_desc": "Punkty i budżety" - }, - "nav": { - "admins": "Administratorzy", - "advanced": "Zaawansowane", - "ai": "Sztuczna Inteligencja (AI)", - "ai_actions": "Akcje", - "ai_history": "Historia", - "ai_overview": "Przegląd", - "articles": "Artykuły", - "blog": "Blog", - "categories": "Kategorie", - "core": "Rdzeń", - "cron": "Zadania cron", - "dashboard": "Pulpit", - "files": "Pliki", - "integrations": "Integracje", - "moderators": "Moderatorzy", - "navigation": "Nawigacja", - "notifications": "Powiadomienia", - "queue": "Zadania w kolejce", - "roles": "Role", - "search": "Szukaj", - "staff": "Zespół", - "system": "System", - "user_list": "Lista użytkowników", - "users": "Użytkownicy" - }, - "navigation": { - "add": "Dodaj link", - "desc": "Wybierz, do czego prowadzą Twoje menu i w jakiej kolejności.", - "discord": "Discord", - "home": "Strona główna", - "support": "Wesprzyj nas" - }, - "notifications": { - "desc": "Co działo się w Twojej społeczności podczas Twojej nieobecności.", - "digest": "Wysłano cotygodniowe podsumowanie do {count, number} członków", - "hours_ago": "{count, plural, one {# godzinę temu} few {# godziny temu} many {# godzin temu} other {# godziny temu}}", - "joined": "{name} dołącza do Twojej społeczności", - "mark_all": "Oznacz wszystkie jako przeczytane", - "minutes_ago": "{count, plural, one {# minutę temu} few {# minuty temu} many {# minut temu} other {# minuty temu}}", - "new": "Nowe: {count}", - "published": "{name} publikuje „{title}”", - "published_title": "Self-hosting na Raspberry Pi", - "role": "{name} aktualizuje rolę Moderator", - "translated": "AI przetłumaczyło {count, plural, one {# artykuł} few {# artykuły} many {# artykułów} other {# artykułu}} na polski", - "yesterday": "Wczoraj" - }, - "roles": { - "administrator": "Administrator", - "create": "Utwórz rolę", - "desc": "Zarządzaj rolami w swojej aplikacji.", - "guest": "Gość", - "member": "Członek", - "moderator": "Moderator", - "role": "Rola", - "search": "Szukaj ról po nazwie…", - "updated": "Zaktualizowano", - "users_count": "Liczba użytkowników" - }, - "search": { - "desc": "Wszystko, co mogą znaleźć Twoi członkowie, w jednym indeksie.", - "documents": "Zaindeksowane dokumenty", - "engine": "Silnik", - "engine_value": "Wyszukiwanie pełnotekstowe Postgres", - "rebuilt": "Ostatnio przebudowano {count, plural, one {# godzinę} few {# godziny} many {# godzin} other {# godziny}} temu", - "reindex": "Przebuduj indeks", - "type": "Typ" - }, - "settings": { - "active_now": "Aktywne teraz", - "ai": "Użycie AI", - "days_ago": "{count, plural, one {# dzień temu} few {# dni temu} many {# dni temu} other {# dnia temu}}", - "devices": "Urządzenia", - "edit_profile": "Edytuj profil", - "email": "Adres e-mail", - "language": "Język", - "member_since": "Członek od {date}", - "notifications": "Powiadomienia", - "overview": "Przegląd", - "role": "Rola", - "security": "Bezpieczeństwo", - "sign_out": "Wyloguj", - "sign_out_all": "Wyloguj ze wszystkich innych urządzeń", - "sso": "Połączone konta", - "this_device": "To urządzenie", - "time_zone": "Strefa czasowa", - "time_zone_value": "Europa/Warszawa (GMT+2)", - "title": "Ustawienia" - }, - "users": { - "add": "Dodaj użytkownika", - "desc": "Wszyscy, którzy dołączyli do Twojej społeczności.", - "joined": "Dołączył", - "search": "Szukaj po nazwie lub adresie e-mail…", - "user": "Użytkownik" - } } } }, diff --git a/apps/web/src/site/home/home-content.tsx b/apps/web/src/site/home/home-content.tsx index e819b8ddcc..a2d8985721 100644 --- a/apps/web/src/site/home/home-content.tsx +++ b/apps/web/src/site/home/home-content.tsx @@ -7,15 +7,11 @@ import { FinalCtaSection } from '@/site/home/sections/final-cta' import { HeroSection } from '@/site/home/sections/hero' import { IntegrationsSection } from '@/site/home/sections/integrations' import { MarketingPage } from '@/site/marketing/marketing-page' -import { CanaryNotice } from '@/site/marketing/shared' export const HomeRouteContent = () => ( -
- -
diff --git a/apps/web/src/site/home/illustrations/bento/admin-table.tsx b/apps/web/src/site/home/illustrations/bento/admin-table.tsx new file mode 100644 index 0000000000..240c3c65d3 --- /dev/null +++ b/apps/web/src/site/home/illustrations/bento/admin-table.tsx @@ -0,0 +1,228 @@ +import type { LucideIcon } from 'lucide-react' + +import { LogoVitNode } from '@vitnode/core/components/logo-vitnode' +import { Badge } from '@vitnode/core/components/ui/badge' +import { buttonVariants } from '@vitnode/core/components/ui/button' +import { cn } from 'cn' +import { + CircleCheck, + Ellipsis, + FilePen, + ImageIcon, + LayoutDashboard, + List, + Pencil, + Plus, + Search, + SquarePen, + Users, +} from 'lucide-react' +import { useTranslations } from 'use-intl' + +import { MEMBER_TONE, SceneAvatar } from '@/site/home/illustrations/bento/scene' +import { useLoopStep } from '@/site/home/illustrations/bento/use-loop-step' + +const DURATIONS = [1500, 450, 1700, 3000] as const +const PRESS_STEP = 1 +const CREATED_STEP = 2 +const PUBLISHED_STEP = 3 +const ROW_HEIGHT = 40 + +const ROWS = [ + { key: 'fresh', member: 'ola', thumb: 'bg-primary/15 text-primary' }, + { key: 'recap', member: 'kuba', thumb: 'bg-amber-400/25 text-amber-700' }, + { draft: true, key: 'guide', member: 'marta', thumb: 'bg-muted' }, + { key: 'rules', member: 'ola', thumb: 'bg-emerald-500/20 text-emerald-700' }, +] as const + +const NAV: readonly { + group: 'core' | 'group' + items: readonly { active?: boolean; Icon: LucideIcon; key: string }[] +}[] = [ + { + group: 'core', + items: [ + { Icon: LayoutDashboard, key: 'dashboard' }, + { Icon: Users, key: 'users' }, + ], + }, + { + group: 'group', + items: [ + { active: true, Icon: SquarePen, key: 'articles' }, + { Icon: List, key: 'categories' }, + ], + }, +] + +const Status = ({ published }: { published: boolean }) => { + const t = useTranslations('site.home.bento.content.admin') + + return ( + + + + {t('published')} + + + + {t('draft')} + + + ) +} + +export const AdminTableScene = () => { + const t = useTranslations('site.home.bento.content.admin') + const { ref, step } = useLoopStep(DURATIONS) + const created = step >= CREATED_STEP + + return ( +
+
+
+ + {NAV.map(({ group, items }) => ( +
+ + {t(`nav.${group}`)} + + {items.map(({ active, Icon, key }) => ( + + + {t(`nav.${key}`)} + + ))} +
+ ))} +
+ +
+
+ + {t('heading')} + + + + {t('create')} + +
+ +
+
+ + + {t('search')} + +
+
+ + {t('columns.title')} + + {t('columns.authors')} + + {t('columns.status')} + + {t('columns.updated')} + + +
+
+ {ROWS.map((row, index) => { + const fresh = row.key === 'fresh' + const shown = !fresh || created + const slot = fresh + ? created + ? 0 + : -0.5 + : created + ? index + : index - 1 + const published = fresh + ? step >= PUBLISHED_STEP + : !('draft' in row) + + return ( +
+ + + + + + + {t(`rows.${row.key}.title`)} + + + + + + {t(`rows.${row.key}.author`)} + + + + + {t(`rows.${row.key}.updated`)} + + + + + +
+ ) + })} +
+
+
+
+
+ ) +} diff --git a/apps/web/src/site/home/illustrations/bento/ai-actions.tsx b/apps/web/src/site/home/illustrations/bento/ai-actions.tsx new file mode 100644 index 0000000000..fb93dff3e4 --- /dev/null +++ b/apps/web/src/site/home/illustrations/bento/ai-actions.tsx @@ -0,0 +1,74 @@ +import type { LucideIcon } from 'lucide-react' + +import { Switch } from '@vitnode/core/components/ui/switch' +import { + ClipboardCheck, + ImageIcon, + Languages, + Settings, + WandSparkles, +} from 'lucide-react' +import { useTranslations } from 'use-intl' + +import { Fit } from '@/site/home/illustrations/bento/scene' +import { useLoopStep } from '@/site/home/illustrations/bento/use-loop-step' + +const ACTIONS: readonly { Icon: LucideIcon; key: string }[] = [ + { Icon: ImageIcon, key: 'alt' }, + { Icon: Languages, key: 'translate' }, + { Icon: WandSparkles, key: 'rewrite' }, + { Icon: ClipboardCheck, key: 'review' }, +] + +const DURATIONS = [900, 750, 750, 750, 3400] as const +const BUDGET_BASE = 28 +const BUDGET_PER_ACTION = 6 + +export const AiActionsScene = () => { + const t = useTranslations('site.home.bento.ai') + const { ref, step } = useLoopStep(DURATIONS) + const percent = BUDGET_BASE + step * BUDGET_PER_ACTION + + return ( +
+ + + {ACTIONS.map(({ Icon, key }, index) => ( + + + + + + {t(`actions.${key}`)} + + = index + 1} + readOnly + size="sm" + tabIndex={-1} + /> + + + ))} + + + + + + {t('budget', { percent })} + + + + +
+ ) +} diff --git a/apps/web/src/site/home/illustrations/bento/ai-chip.tsx b/apps/web/src/site/home/illustrations/bento/ai-chip.tsx deleted file mode 100644 index f9069f159d..0000000000 --- a/apps/web/src/site/home/illustrations/bento/ai-chip.tsx +++ /dev/null @@ -1,180 +0,0 @@ -import { Image, Layers, Sparkles } from 'lucide-react' -import { useTranslations } from 'use-intl' - -import { - Fit, - GridTexture, - ScenePill, -} from '@/site/home/illustrations/bento/scene' -import { useLoopStep } from '@/site/home/illustrations/bento/use-loop-step' - -type Point = readonly [number, number] - -const TRACES: readonly { - delay: number - dot: Point - points: readonly Point[] -}[] = [ - { - delay: 0, - dot: [160, 10], - points: [ - [160, 78], - [160, 10], - ], - }, - { - delay: 0.9, - dot: [100, 56], - points: [ - [130, 78], - [130, 56], - [100, 56], - ], - }, - { - delay: 0.4, - dot: [268, 42], - points: [ - [204, 94], - [226, 94], - [226, 42], - [268, 42], - ], - }, - { - delay: 1.4, - dot: [46, 122], - points: [ - [116, 122], - [46, 122], - ], - }, - { - delay: 0.2, - dot: [274, 122], - points: [ - [204, 122], - [274, 122], - ], - }, - { - delay: 1.8, - dot: [52, 200], - points: [ - [116, 150], - [94, 150], - [94, 200], - [52, 200], - ], - }, - { - delay: 1.1, - dot: [238, 228], - points: [ - [204, 188], - [238, 188], - [238, 228], - ], - }, -] - -const toPath = (points: readonly Point[]) => { - const d = points - .map(([x, y], index) => `${index === 0 ? 'M' : 'L'}${x} ${y}`) - .join(' ') - const length = points.reduce((sum, [x, y], index) => { - const previous = points[index - 1] - - return previous - ? sum + Math.abs(x - previous[0]) + Math.abs(y - previous[1]) - : sum - }, 0) - - return { d, length } -} - -const PATHS = TRACES.map((trace) => ({ ...trace, ...toPath(trace.points) })) - -const BUDGET = [57, 55, 52, 54, 56] as const -const DURATIONS = BUDGET.map(() => 1600) - -export const AiChipScene = () => { - const t = useTranslations('site.home.bento.ai') - const { ref, step } = useLoopStep(DURATIONS) - - return ( -
- - - - - {PATHS.map(({ d, delay, dot, length }) => ( - - - - - - ))} - - - - - - - - - - - {t('provider')} - - - {t('alt')} - - - - - - - - {t('budget', { percent: BUDGET[step] ?? BUDGET[0] })} - - - -
- ) -} diff --git a/apps/web/src/site/home/illustrations/bento/board.tsx b/apps/web/src/site/home/illustrations/bento/board.tsx deleted file mode 100644 index 6575b18abf..0000000000 --- a/apps/web/src/site/home/illustrations/bento/board.tsx +++ /dev/null @@ -1,237 +0,0 @@ -import type { LucideIcon } from 'lucide-react' - -import { cn } from 'cn' -import { - Braces, - CalendarClock, - Database, - History, - Languages, - LayoutDashboard, - MessageCircle, - Search, - Send, - SmilePlus, - UserPlus, - Users, -} from 'lucide-react' -import { useTranslations } from 'use-intl' - -import { Fit, ScenePill } from '@/site/home/illustrations/bento/scene' -import { Slab } from '@/site/home/illustrations/bento/slab' -import { useLoopStep } from '@/site/home/illustrations/bento/use-loop-step' - -const FEATURES: readonly { Icon: LucideIcon; key: string }[] = [ - { Icon: LayoutDashboard, key: 'admin' }, - { Icon: Braces, key: 'api' }, - { Icon: Database, key: 'database' }, - { Icon: Send, key: 'publishing' }, - { Icon: History, key: 'revisions' }, - { Icon: CalendarClock, key: 'scheduling' }, - { Icon: Languages, key: 'translations' }, - { Icon: Search, key: 'search' }, - { Icon: Users, key: 'live' }, - { Icon: MessageCircle, key: 'comments' }, - { Icon: SmilePlus, key: 'reactions' }, - { Icon: UserPlus, key: 'followers' }, -] - -const COLS = 4 -const ROWS = 3 -const DURATIONS = [...FEATURES.map(() => 600), 2800] -const WIDTH = 600 -const BASE = { cx: 300, h: 140, t: 16, topY: 64, w: 280 } -const CUBE = { h: 28, t: 13, w: 56 } -const PILL_LEFT_EDGE = 138 -const PILL_RIGHT_EDGE = 462 -const PILL_TOP = 22 -const PILL_STEP = 36 - -const cellCenter = (i: number, j: number) => { - const u = (i + 0.5) / COLS - const v = (j + 0.5) / ROWS - - return { - x: BASE.cx + (u - v) * (BASE.w / 2), - y: BASE.topY + (u + v) * (BASE.h / 2), - } -} - -const pillAnchor = (index: number) => { - const left = index % 2 === 0 - const row = Math.floor(index / 2) - - return { - left, - x: left ? PILL_LEFT_EDGE : PILL_RIGHT_EDGE, - y: PILL_TOP + row * PILL_STEP + (left ? 0 : PILL_STEP / 2), - } -} - -const CELLS = FEATURES.map((feature, index) => { - const i = index % COLS - const j = Math.floor(index / COLS) - const center = cellCenter(i, j) - const anchor = pillAnchor(index) - const topY = center.y - CUBE.t - const midX = (center.x + anchor.x) / 2 - - return { - ...feature, - anchor, - center, - depth: i + j, - index, - path: `M${center.x} ${topY} C${midX} ${topY} ${midX} ${anchor.y} ${anchor.x} ${anchor.y}`, - } -}) - -const PAINT_ORDER = [...CELLS].sort((a, b) => a.depth - b.depth) - -const gridLine = (from: { x: number; y: number }, dx: number) => - `M${from.x} ${from.y} l${dx} ${BASE.h / 2}` - -export const BoardScene = () => { - const t = useTranslations('site.home.bento.content.features') - const { ref, step } = useLoopStep(DURATIONS) - - return ( -
- - - - - - - {Array.from({ length: COLS - 1 }, (_, n) => (n + 1) / COLS).map( - (u) => ( - - ), - )} - {Array.from({ length: ROWS - 1 }, (_, n) => (n + 1) / ROWS).map( - (v) => ( - - ), - )} - - - - {PAINT_ORDER.map(({ center, Icon, index, key }) => { - const landed = index <= step - - return ( - - - - ) - })} - - - {CELLS.map(({ anchor, index, key, path }) => { - const landed = index <= step - - return ( - - - - - - {index === step ? ( - - ) : null} - - ) - })} - - - {CELLS.map(({ anchor, Icon, index, key }) => { - const landed = index <= step - - return ( - - {t(key)} - - - ) - })} - -
- ) -} diff --git a/apps/web/src/site/home/illustrations/bento/co-type.tsx b/apps/web/src/site/home/illustrations/bento/co-type.tsx deleted file mode 100644 index 68485ecd2d..0000000000 --- a/apps/web/src/site/home/illustrations/bento/co-type.tsx +++ /dev/null @@ -1,241 +0,0 @@ -import { cn } from 'cn' -import { Bold, Italic, Link2, Underline } from 'lucide-react' -import { useEffect, useMemo, useRef, useState } from 'react' -import { useTranslations } from 'use-intl' - -import { Fit } from '@/site/home/illustrations/bento/scene' - -const CYCLE = 9000 -const FADE_AT = 7600 -const IDLE_AFTER = 450 -const SELECT_FROM = 3400 -const SELECT_TO = 3800 -const REDUCED_MOTION = '(prefers-reduced-motion: reduce)' - -const OLA = 'bg-primary text-primary-foreground' -const KUBA = 'bg-amber-400 text-amber-950' - -const jitter = (index: number, seed: number) => { - const value = Math.sin(index * 12.9898 + seed * 78.233) * 43758.5453 - - return value - Math.floor(value) -} - -const schedule = ( - text: string, - { - base, - seed, - spread, - startAt, - }: { base: number; seed: number; spread: number; startAt: number }, -) => { - const times: number[] = [] - let at = startAt - - for (let index = 0; index < text.length; index += 1) { - const char = text[index] ?? '' - at += base + jitter(index, seed) * spread - if (char === ' ') at += 40 - if (char === '.' || char === ',') at += 160 - times.push(at) - } - - return times -} - -const countAt = (times: readonly number[], t: number) => { - let count = 0 - - while (count < times.length && (times[count] ?? Infinity) <= t) count += 1 - - return count -} - -const isIdle = (times: readonly number[], count: number, t: number) => - count === 0 || t - (times[count - 1] ?? 0) > IDLE_AFTER - -const useAnimationClock = (cycle: number, still: number) => { - const ref = useRef(null) - const [t, setT] = useState(still) - - useEffect(() => { - const node = ref.current - - if (!node || window.matchMedia(REDUCED_MOTION).matches) return - - let frame = 0 - let origin = 0 - let elapsed = 0 - - const tick = (now: number) => { - if (!origin) origin = now - elapsed - setT((now - origin) % cycle) - frame = requestAnimationFrame(tick) - } - - const observer = new IntersectionObserver(([entry]) => { - if (entry?.isIntersecting) { - if (!frame) frame = requestAnimationFrame(tick) - - return - } - - if (frame) { - cancelAnimationFrame(frame) - frame = 0 - elapsed = performance.now() - origin - origin = 0 - } - }) - - observer.observe(node) - - return () => { - observer.disconnect() - cancelAnimationFrame(frame) - } - }, [cycle]) - - return { ref, t } -} - -const Initial = ({ - className, - initials, -}: { - className: string - initials: string -}) => ( - - {initials} - -) - -const Caret = ({ - className, - idle, - name, -}: { - className: string - idle: boolean - name: string -}) => ( - - - - {name} - - -) - -export const CoTypeScene = () => { - const t = useTranslations('site.home.bento.live') - const olaText = t('ola') - const kubaText = t('kuba') - const olaTimes = useMemo( - () => schedule(olaText, { base: 46, seed: 1, spread: 50, startAt: 500 }), - [olaText], - ) - const kubaTimes = useMemo( - () => schedule(kubaText, { base: 40, seed: 2, spread: 44, startAt: 1500 }), - [kubaText], - ) - const { ref, t: time } = useAnimationClock(CYCLE, FADE_AT - 1) - const ola = countAt(olaTimes, time) - const kuba = countAt(kubaTimes, time) - const olaIdle = isIdle(olaTimes, ola, time) - const kubaIdle = isIdle(kubaTimes, kuba, time) - const selection = Math.min( - 1, - Math.max(0, (time - SELECT_FROM) / (SELECT_TO - SELECT_FROM)), - ) - const fading = time >= FADE_AT - const saving = !fading && (!olaIdle || !kubaIdle) - - return ( -
- - - - - - - - - - - - {saving ? t('saving') : t('saved')} - - - - - - - - - - - {t('first')}{' '} - - - {t('selected')} - - {t('first_end')} - - {olaText.slice(0, ola)} - - - - {olaText.slice(ola)} - - - - {t('second')} - - {kubaText.slice(0, kuba)} - - - - {kubaText.slice(kuba)} - - - - - - -
- ) -} diff --git a/apps/web/src/site/home/illustrations/bento/drop.tsx b/apps/web/src/site/home/illustrations/bento/drop.tsx deleted file mode 100644 index 086eddbd16..0000000000 --- a/apps/web/src/site/home/illustrations/bento/drop.tsx +++ /dev/null @@ -1,115 +0,0 @@ -import { cn } from 'cn' -import { Bell, CheckCheck } from 'lucide-react' -import { useTranslations } from 'use-intl' - -import { Fit, GridTexture } from '@/site/home/illustrations/bento/scene' -import { useLoopStep } from '@/site/home/illustrations/bento/use-loop-step' - -const MESSAGES = [ - { avatar: 'K', key: 'reply', tone: 'bg-amber-400 text-amber-950' }, - { avatar: 'V', key: 'live', tone: 'bg-muted text-muted-foreground' }, - { avatar: 'O', key: 'comment', tone: 'bg-primary text-primary-foreground' }, - { avatar: 'M', key: 'report', tone: 'bg-muted text-muted-foreground' }, -] as const - -const DURATIONS = [1500, 1500, 1500, 1500, 2400] as const -const READ_STEP = 4 - -export const DropScene = () => { - const t = useTranslations('site.home.bento.notifications') - const { ref, step } = useLoopStep(DURATIONS) - const arrived = Math.min(step + 1, MESSAGES.length) - const read = step === READ_STEP - const count = read ? 0 : arrived - - return ( -
- - {MESSAGES.map(({ avatar, key, tone }, index) => { - const depth = arrived - 1 - index - const visible = depth >= 0 && depth <= 2 - const behind = depth > 0 - - return ( - - - - {avatar} - - - - {t(`items.${key}.title`)} - - - {t(`items.${key}.sub`)} - - - - = 0 ? 'opacity-100' : 'opacity-0', - )} - /> - - ) - })} - - - - - - - 0 ? 'scale-100 opacity-100' : 'scale-50 opacity-0', - )} - > - {Math.max(count, 1)} - - - - - - {t('mark_all')} - - -
- ) -} diff --git a/apps/web/src/site/home/illustrations/bento/editor.tsx b/apps/web/src/site/home/illustrations/bento/editor.tsx new file mode 100644 index 0000000000..9f2f55eef1 --- /dev/null +++ b/apps/web/src/site/home/illustrations/bento/editor.tsx @@ -0,0 +1,276 @@ +import { buttonVariants } from '@vitnode/core/components/ui/button' +import { cn } from 'cn' +import { ArrowLeft, ChevronDown, Languages, Save } from 'lucide-react' +import { useEffect, useMemo, useRef, useState } from 'react' +import { useTranslations } from 'use-intl' + +import { + Fit, + MEMBER_TONE, + SceneAvatar, +} from '@/site/home/illustrations/bento/scene' + +const CYCLE = 9000 +const FADE_AT = 7600 +const IDLE_AFTER = 450 +const SELECT_FROM = 3400 +const SELECT_TO = 3800 +const REDUCED_MOTION = '(prefers-reduced-motion: reduce)' + +const jitter = (index: number, seed: number) => { + const value = Math.sin(index * 12.9898 + seed * 78.233) * 43758.5453 + + return value - Math.floor(value) +} + +const schedule = ( + text: string, + { + base, + seed, + spread, + startAt, + }: { base: number; seed: number; spread: number; startAt: number }, +) => { + const times: number[] = [] + let at = startAt + + for (let index = 0; index < text.length; index += 1) { + const char = text[index] + at += base + jitter(index, seed) * spread + if (char === ' ') at += 40 + if (char === '.' || char === ',') at += 160 + times.push(at) + } + + return times +} + +const countAt = (times: readonly number[], t: number) => { + let count = 0 + + while (count < times.length && times[count] <= t) count += 1 + + return count +} + +const isIdle = (times: readonly number[], count: number, t: number) => + count === 0 || t - times[count - 1] > IDLE_AFTER + +const useAnimationClock = (cycle: number, still: number) => { + const ref = useRef(null) + const [t, setT] = useState(still) + + useEffect(() => { + const node = ref.current + + if (!node || window.matchMedia(REDUCED_MOTION).matches) return + + let frame = 0 + let origin = 0 + let elapsed = 0 + + const tick = (now: number) => { + if (!origin) origin = now - elapsed + setT((now - origin) % cycle) + frame = requestAnimationFrame(tick) + } + + const observer = new IntersectionObserver(([entry]) => { + if (entry?.isIntersecting) { + if (!frame) frame = requestAnimationFrame(tick) + + return + } + + if (frame) { + cancelAnimationFrame(frame) + frame = 0 + elapsed = performance.now() - origin + origin = 0 + } + }) + + observer.observe(node) + + return () => { + observer.disconnect() + cancelAnimationFrame(frame) + } + }, [cycle]) + + return { ref, t } +} + +const Caret = ({ + className, + idle, + name, +}: { + className: string + idle: boolean + name: string +}) => ( + + + + {name} + + +) + +export const EditorScene = () => { + const t = useTranslations('site.home.bento.live') + const olaText = t('ola') + const kubaText = t('kuba') + const olaTimes = useMemo( + () => schedule(olaText, { base: 46, seed: 1, spread: 50, startAt: 500 }), + [olaText], + ) + const kubaTimes = useMemo( + () => schedule(kubaText, { base: 40, seed: 2, spread: 44, startAt: 1500 }), + [kubaText], + ) + const { ref, t: time } = useAnimationClock(CYCLE, FADE_AT - 1) + const ola = countAt(olaTimes, time) + const kuba = countAt(kubaTimes, time) + const olaIdle = isIdle(olaTimes, ola, time) + const kubaIdle = isIdle(kubaTimes, kuba, time) + const selection = Math.min( + 1, + Math.max(0, (time - SELECT_FROM) / (SELECT_TO - SELECT_FROM)), + ) + const fading = time >= FADE_AT + const saving = !fading && (!olaIdle || !kubaIdle) + + return ( +
+ + + + + + + + + + {t('translate')} + + + + + + + + + + + {saving ? t('saving') : t('saved')} + + + + + + + + + + + + + + + {t('heading')} + + + + {t('first')}{' '} + + + {t('selected')} + + {t('first_end')} + + {olaText.slice(0, ola)} + + + + {olaText.slice(ola)} + + + + {t('second')} + + {kubaText.slice(0, kuba)} + + + + {kubaText.slice(kuba)} + + + + + + +
+ ) +} diff --git a/apps/web/src/site/home/illustrations/bento/inbox.tsx b/apps/web/src/site/home/illustrations/bento/inbox.tsx new file mode 100644 index 0000000000..14eb5f0dec --- /dev/null +++ b/apps/web/src/site/home/illustrations/bento/inbox.tsx @@ -0,0 +1,153 @@ +import { Badge } from '@vitnode/core/components/ui/badge' +import { cn } from 'cn' +import { + AtSign, + CheckCheck, + MessageCircle, + Reply, + SlidersHorizontal, +} from 'lucide-react' +import { useTranslations } from 'use-intl' + +import { + Fit, + MEMBER_TONE, + SceneAvatar, +} from '@/site/home/illustrations/bento/scene' +import { useLoopStep } from '@/site/home/illustrations/bento/use-loop-step' + +const DURATIONS = [350, 1500, 700, 1500, 3200] as const +const PRESS_STEP = 0 +const READ_STEP = 1 +const RESET_STEP = 2 +const STRIDE = 52 + +const ITEMS = [ + { from: 4, Icon: Reply, key: 'reply', member: 'kuba' }, + { from: 3, Icon: MessageCircle, key: 'comment', member: 'ola' }, + { from: 0, Icon: AtSign, key: 'mention', member: 'marta' }, +] as const + +const TABS = ['unread', 'mentions', 'all'] as const + +export const InboxScene = () => { + const t = useTranslations('site.home.bento.notifications') + const { ref, step } = useLoopStep(DURATIONS) + const present = (from: number) => + from === 0 || step >= from || step === PRESS_STEP || step === READ_STEP + const visible = ITEMS.filter((item) => present(item.from)) + const cleared = step === READ_STEP || step === RESET_STEP + const count = cleared ? 0 : visible.length - 1 + + return ( +
+ + + + {t('heading')} + + + + + {TABS.map((tab, index) => ( + + + {t(`tabs.${tab}`)} + {index === 0 ? ( + 0 ? 'opacity-100' : 'opacity-0', + )} + variant="secondary" + > + {Math.max(count, 1)} + + ) : null} + + + ))} + + + + {ITEMS.map(({ from, Icon, key, member }) => { + const slot = visible.findIndex((item) => item.key === key) + const shown = slot !== -1 + const unread = from > 0 && shown && !cleared + + return ( + + + + + + + + + + + + {t(`items.${key}.who`)} + {' '} + {t(`items.${key}.action`)} + + + {t(`items.${key}.time`)} + + + + + {t(`items.${key}.target`)} + + + + + + ) + })} + + + + + + {t('mark_all')} + + + + +
+ ) +} diff --git a/apps/web/src/site/home/illustrations/bento/scene.tsx b/apps/web/src/site/home/illustrations/bento/scene.tsx index 48bc8889a5..23a20687dc 100644 --- a/apps/web/src/site/home/illustrations/bento/scene.tsx +++ b/apps/web/src/site/home/illustrations/bento/scene.tsx @@ -1,5 +1,3 @@ -import type { LucideIcon } from 'lucide-react' - import { cn } from 'cn' export const Fit = ({ @@ -28,31 +26,29 @@ export const Fit = ({ ) -export const ScenePill = ({ - children, +export const SceneAvatar = ({ className, - Icon, - style, + initial, }: { - children: React.ReactNode - className?: string - Icon?: LucideIcon - style?: React.CSSProperties + className: string + initial: string }) => ( - {Icon ? ( - - ) : null} - {children} + {initial} ) +export const MEMBER_TONE = { + kuba: 'bg-amber-400 text-amber-950', + marta: 'bg-emerald-600 text-white', + ola: 'bg-primary text-primary-foreground', +} as const + export const SceneBackdrop = () => ( ( /> ) - -export const GridTexture = ({ - className, - size, -}: { - className?: string - size: number -}) => ( - -) diff --git a/apps/web/src/site/home/illustrations/bento/suggest.tsx b/apps/web/src/site/home/illustrations/bento/search-dialog.tsx similarity index 50% rename from apps/web/src/site/home/illustrations/bento/suggest.tsx rename to apps/web/src/site/home/illustrations/bento/search-dialog.tsx index d0e4ce9374..ab72238b7a 100644 --- a/apps/web/src/site/home/illustrations/bento/suggest.tsx +++ b/apps/web/src/site/home/illustrations/bento/search-dialog.tsx @@ -1,7 +1,10 @@ import type { LucideIcon } from 'lucide-react' +import { Kbd } from '@vitnode/core/components/ui/kbd' import { cn } from 'cn' import { + ArrowDown, + ArrowUp, CalendarDays, CornerDownLeft, FileText, @@ -11,36 +14,36 @@ import { ShieldCheck, Users, } from 'lucide-react' -import { useTranslations } from 'use-intl' +import { useFormatter, useTranslations } from 'use-intl' import { Fit } from '@/site/home/illustrations/bento/scene' import { useLoopStep } from '@/site/home/illustrations/bento/use-loop-step' -const SUGGESTIONS: readonly { Icon: LucideIcon; key: string; score: number }[] = - [ - { Icon: FileText, key: 'recap', score: 0.92 }, - { Icon: MessagesSquare, key: 'photos', score: 0.81 }, - { Icon: ShieldCheck, key: 'moderators', score: 0.64 }, - { Icon: Users, key: 'rules', score: 0.58 }, - { Icon: CalendarDays, key: 'events', score: 0.41 }, - { Icon: MessageCircle, key: 'library', score: 0.33 }, - ] +const SUGGESTIONS: readonly { day: number; Icon: LucideIcon; key: string }[] = [ + { day: 12, Icon: FileText, key: 'recap' }, + { day: 9, Icon: MessagesSquare, key: 'photos' }, + { day: 4, Icon: ShieldCheck, key: 'moderators' }, + { day: 21, Icon: Users, key: 'rules' }, + { day: 17, Icon: CalendarDays, key: 'events' }, + { day: 2, Icon: MessageCircle, key: 'library' }, +] const DURATIONS = [800, 500, 900, 450, 450, 800, 420, 2600] as const -const TAB_STEP = 6 +const OPEN_STEP = 6 const ACCEPT_STEP = 7 -const VISIBLE_ROWS = 5 +const VISIBLE_ROWS = 3 const ROW_STRIDE = 34 -const LIST_PADDING = 12 -export const SuggestScene = () => { +export const SearchDialogScene = () => { const t = useTranslations('site.home.bento.search') + const format = useFormatter() const { ref, step } = useLoopStep(DURATIONS) const queries = t('queries').split('|') - const query = queries[Math.min(step, queries.length - 1)] ?? '' - const pressing = step === TAB_STEP + const queryAt = (index: number) => + queries[Math.min(Math.max(index, 0), queries.length - 1)] + const query = queryAt(step) + const pressing = step === OPEN_STEP const accepted = step === ACCEPT_STEP - const selected = step >= TAB_STEP const labelled = SUGGESTIONS.map((suggestion) => ({ ...suggestion, label: t(`suggestions.${suggestion.key}`), @@ -50,17 +53,14 @@ export const SuggestScene = () => { label.toLowerCase().startsWith(value.toLowerCase()), ) const matches = matchesFor(query) - const previous = matchesFor(queries[Math.max(step - 1, 0)] ?? '') + const previous = matchesFor(queryAt(step - 1)) const top = matches[0] const ghost = top ? top.label.slice(query.length).toLowerCase() : '' - const listHeight = - Math.max(Math.min(matches.length, VISIBLE_ROWS), 1) * ROW_STRIDE + - LIST_PADDING return (
- + @@ -81,24 +81,15 @@ export const SuggestScene = () => { {ghost} - - {t('tab')} - + + + {t('group')} - {labelled.map(({ Icon, key, label, score }) => { + {labelled.map(({ day, Icon, key, label }) => { const rank = matches.findIndex((item) => item.key === key) const shown = rank !== -1 && rank < VISIBLE_ROWS const previousRank = previous.findIndex( @@ -109,13 +100,13 @@ export const SuggestScene = () => { : previousRank === -1 ? VISIBLE_ROWS : previousRank - const active = selected && rank === 0 + const active = rank === 0 return ( { > - - + + {label.slice(0, query.length)} - - - {label.slice(query.length)} - + + {label.slice(query.length)} - - + + {format.dateTime(new Date(Date.UTC(2026, 9, day)), { + day: 'numeric', + month: 'short', + timeZone: 'UTC', + })} - ) })} + + + + + + + + + {t('navigate')} + + + + + + {t('open')} + + + {t('esc')} + {t('close')} + +
diff --git a/apps/web/src/site/home/illustrations/bento/slab.tsx b/apps/web/src/site/home/illustrations/bento/slab.tsx deleted file mode 100644 index 41eeefdffe..0000000000 --- a/apps/web/src/site/home/illustrations/bento/slab.tsx +++ /dev/null @@ -1,72 +0,0 @@ -import type { LucideIcon } from 'lucide-react' - -import { cn } from 'cn' - -const TONES = { - accent: { - icon: 'text-primary-foreground', - left: 'fill-primary/85', - right: 'fill-primary/65', - top: 'fill-primary', - }, - plain: { - icon: 'text-foreground/70', - left: 'fill-muted stroke-border', - right: 'fill-border stroke-border', - top: 'fill-card stroke-border', - }, -} as const - -export const Slab = ({ - h, - Icon, - t, - tone = 'plain', - w, -}: { - h: number - Icon?: LucideIcon - t: number - tone?: keyof typeof TONES - w: number -}) => { - const colors = TONES[tone] - - return ( - - - - - - - {Icon ? ( - - - - ) : null} - - ) -} diff --git a/apps/web/src/site/home/illustrations/hero-wall/app-pages.tsx b/apps/web/src/site/home/illustrations/hero-wall/app-pages.tsx deleted file mode 100644 index 3efed1b6b8..0000000000 --- a/apps/web/src/site/home/illustrations/hero-wall/app-pages.tsx +++ /dev/null @@ -1,905 +0,0 @@ -import { LogoVitNode } from '@vitnode/core/components/logo-vitnode' -import { buttonVariants } from '@vitnode/core/components/ui/button' -import { cn } from 'cn' -import { - ArrowLeft, - Bell, - BookOpen, - CalendarDays, - Check, - CheckCheck, - ChevronDown, - ChevronRight, - CircleDot, - ClipboardCheck, - Crown, - FileText, - Flag, - MessageSquare, - MessagesSquare, - Newspaper, - Puzzle, - Search, - ShieldCheck, - SlidersHorizontal, - SquarePen, - TriangleAlert, -} from 'lucide-react' - -import { usePages } from './pages-copy' - -const VIEW = - 'bg-background text-foreground flex h-130 w-240 flex-col overflow-hidden text-left text-sm' - -const TONES = [ - 'bg-rose-500 text-white', - 'bg-emerald-500 text-white', - 'bg-amber-400 text-amber-950', - 'bg-blue-500 text-white', -] - -const SOFT_TONES = [ - 'bg-blue-100 text-blue-700 dark:bg-blue-400/15 dark:text-blue-300', - 'bg-amber-100 text-amber-700 dark:bg-amber-400/15 dark:text-amber-300', - 'bg-emerald-100 text-emerald-700 dark:bg-emerald-400/15 dark:text-emerald-300', - 'bg-rose-100 text-rose-700 dark:bg-rose-400/15 dark:text-rose-300', -] - -const CATEGORY_TONES = ['bg-amber-400', 'bg-emerald-500', 'bg-blue-500'] - -const COVER_TONES = [ - 'bg-amber-300 dark:bg-amber-400/40', - 'bg-emerald-300 dark:bg-emerald-400/40', - 'bg-blue-300 dark:bg-blue-400/40', -] - -const initialsOf = (name: string) => - name - .split(' ') - .map((part) => part[0]) - .join('') - -const Avatar = ({ - className, - person, -}: { - className?: string - person: number -}) => { - const { people } = usePages() - - return ( - - {initialsOf(people[person]?.name ?? '')} - - ) -} - -const PersonName = ({ person }: { person: number }) => { - const { people } = usePages() - const name = people[person]?.name - - if (person === 0) { - return ( - - - {name} - - ) - } - - if (person === 1) { - return ( - - - {name} - - ) - } - - return {name} -} - -const Cover = ({ className, tone }: { className?: string; tone: number }) => ( - - - - -) - -const CategoryBadge = ({ category }: { category: number }) => { - const { blog } = usePages() - - return ( - - - {blog.categoryNames[category]} - - ) -} - -const NAV_ICONS = [BookOpen, Puzzle, Newspaper, MessagesSquare] - -const AppFrame = ({ - active, - children, - crumbs, - id, - isSignedIn = false, -}: { - active?: number - children: React.ReactNode - crumbs?: string[] - id: string - isSignedIn?: boolean -}) => { - const { nav } = usePages() - const items = [nav.docs, nav.plugins, nav.blog, nav.community] - - return ( -
-
-
- - {items.map((item, index) => { - const Icon = NAV_ICONS[index] ?? BookOpen - - return ( - - - {item} - {index === 3 ? : null} - - ) - })} - - - {nav.search} - ⌘K - - - {isSignedIn ? ( - <> - - - - 2 - - - - - ) : ( - <> - {nav.login} - - {nav.register} - - - )} -
-
- {crumbs ? ( -
- {crumbs.map((crumb, index) => ( - - {index > 0 ? : null} - - {crumb} - - - ))} -
- ) : null} -
- {children} -
-
- ) -} - -const PageTitle = ({ - action, - children, - desc, -}: { - action?: React.ReactNode - children: React.ReactNode - desc?: string -}) => ( -
-
- - {children} - - {desc ? ( - {desc} - ) : null} -
- {action} -
-) - -const NewTopicButton = () => { - const { forum } = usePages() - - return ( - - - {forum.newTopic} - - ) -} - -const ForumIcon = ({ tone }: { tone: number }) => ( - - - -) - -const Count = ({ label, value }: { label: string; value: number }) => ( - - {label} - {value} - -) - -const FORUM_COUNTS = [ - [12, 86], - [4, 31], - [148, 1942], - [67, 512], -] - -export const ForumIndexPage = () => { - const { forum } = usePages() - - return ( - - } desc={forum.desc}> - {forum.title} - -
    - {forum.forums.map(({ desc, latest, name }, index) => ( -
  • - - - {name} - {desc ? ( - - {desc} - - ) : null} - - - - - {forum.latest} - {latest} - -
  • - ))} -
-
- ) -} - -const TOPIC_COMMENTS = [42, 17, 8, 5] - -export const ForumPage = () => { - const { forum } = usePages() - const name = forum.forums[2]?.name ?? '' - - return ( - - }> - - {name} - - {forum.topics} -
    - {forum.topicsList.map(({ date, title }, index) => ( -
  • - - - {title} - - - · - {date} - - - - - {TOPIC_COMMENTS[index]} - -
  • - ))} -
-
- ) -} - -const REACTIONS = [ - { count: 12, emoji: '❤️', isMine: true }, - { count: 7, emoji: '👍', isMine: false }, - { count: 3, emoji: '🎉', isMine: false }, -] - -const Reactions = () => ( - - {REACTIONS.map(({ count, emoji, isMine }) => ( - - {emoji} - {count} - - ))} - -) - -export const TopicPage = () => { - const { forum, topic } = usePages() - const forumName = forum.forums[2]?.name ?? '' - const title = forum.topicsList[0]?.title ?? '' - - return ( - -
- {forumName} - - {title} - -
- - - - {topic.posted} - - - - {topic.report} - -
- {topic.body} - - - - {topic.commentCount} - - {topic.comments.map((comment, index) => ( -
- - - - - {comment} -
- ))} -
-
- ) -} - -const CATEGORY_COUNTS = [9, 14, 6] - -export const BlogIndexPage = () => { - const { blog } = usePages() - - return ( - - {blog.title} -
-
- {blog.all} - {blog.articles.map(({ date, title }, index) => ( -
- - - - - - {title} - - - - - - · - {date} - - -
- ))} -
-
- {blog.categories} - - - {blog.all} - 29 - - {blog.categoryNames.map((name, index) => ( - - - {name} - {CATEGORY_COUNTS[index]} - - ))} -
-
-
- ) -} - -export const ArticlePage = () => { - const { article, blog } = usePages() - const first = blog.articles[0] - - return ( - -
- - - {article.back} - - - {first?.title} - - - - - - {first?.date} · {article.read} - - - - - {article.body} - -
-
- ) -} - -const DayChip = ({ day, weekday }: { day: number; weekday: string }) => ( - - - {weekday} - - {day} - -) - -export const ProfilePage = () => { - const { forum, people, profile } = usePages() - const person = people[0] - - return ( - -
- -
- - - - - {person?.name} - - - {person?.nick} - - - - {profile.online} - - - - - - {profile.role} - - - - {profile.joined} - - - {profile.reputation} - - - -
-
- {profile.timeline} -
- - {profile.today} -
-
- - ❤️ - - - {profile.reacted} - - {forum.topicsList[1]?.title} - -
-
- ) -} - -export const DiscoverPage = () => { - const { discover, forum, profile, topic } = usePages() - - return ( - -
- {discover.title} - {profile.month} -
- - {profile.yesterday} -
- {topic.comments.map((comment, index) => ( -
- - - - - - - - - {discover.commented} - - - {forum.topicsList[index]?.title} - - - {comment} - -
- ))} -
-
- ) -} - -const KIND_ICONS = [FileText, MessageSquare, MessagesSquare] -const KIND_COUNTS = [3, 36, 6] - -export const SearchPage = () => { - const { blog, search } = usePages() - - return ( - - {search.title} - - - {search.placeholder} - - / - - -
-
- {search.filters} - {search.content} - {search.kinds.map((kind, index) => { - const Icon = KIND_ICONS[index] ?? FileText - - return ( - - - {index === 0 ? ( - - ) : null} - - - {kind} - - {KIND_COUNTS[index]} - - - ) - })} - {search.date} - {search.ranges.map((range, index) => ( - - - {range} - - ))} -
-
- - {search.results} - - {search.newest} - - - - {blog.articles.map(({ date, title }, index) => ( - - - - {title} - - - {date} - - - - ))} -
-
-
- ) -} - -export const PaymentsPage = () => { - const { payments } = usePages() - - return ( - -
- {payments.title} -
-
- - - {payments.item} - - {payments.itemDesc} - - - {payments.price} - - -
-
- - - {payments.owned} - - {payments.view} -
-
-
-
- ) -} - -const MODCP_ICONS = [Flag, ClipboardCheck, TriangleAlert] - -const COLUMN_TONES = [ - 'bg-muted text-foreground', - 'bg-blue-100 text-blue-700 dark:bg-blue-400/15 dark:text-blue-300', - 'bg-emerald-100 text-emerald-700 dark:bg-emerald-400/15 dark:text-emerald-300', -] - -const ReportCard = ({ index }: { index: number }) => { - const { modcp } = usePages() - const card = modcp.cards[index] - - return ( - - - - {card?.reason} - - - {card?.text} - - - {card?.kind} - {index === 2 ? : null} - - - ) -} - -export const ModcpPage = () => { - const { modcp } = usePages() - const cardsByColumn = [[0, 1], [2], []] - - return ( - -
-
- {modcp.nav.map((item, index) => { - const Icon = MODCP_ICONS[index] ?? Flag - - return ( - - - {item} - {index === 0 ? 8 : null} - - ) - })} -
-
- {modcp.title} -
- {modcp.columns.map((column, index) => ( -
- - - {column} - - - {index === 0 ? 7 : index === 1 ? 1 : 0} - - - {cardsByColumn[index]?.map((card) => ( - - ))} - {index === 2 ? ( - - {modcp.empty} - - ) : null} -
- ))} -
-
-
-
- ) -} - -export const NotificationsPage = () => { - const { forum, notifications, people } = usePages() - - return ( - -
-
- {forum.title} -
    - {forum.forums.slice(0, 3).map(({ name }, index) => ( -
  • - - - {name} - -
  • - ))} -
-
-
- {notifications.title} - - {notifications.tabs.map((tab, index) => ( - - {tab} - - ))} - - {notifications.items.map(({ text, time }, index) => ( - - - - - - {people[index + 1]?.name} - {' '} - {text} - - {time} - - {index < 2 ? ( - - ) : null} - - ))} - - - {notifications.markAll} - -
-
-
- ) -} diff --git a/apps/web/src/site/home/illustrations/hero-wall/content-screens.tsx b/apps/web/src/site/home/illustrations/hero-wall/content-screens.tsx deleted file mode 100644 index 8f383658fe..0000000000 --- a/apps/web/src/site/home/illustrations/hero-wall/content-screens.tsx +++ /dev/null @@ -1,362 +0,0 @@ -import { Badge } from '@vitnode/core/components/ui/badge' -import { - Card, - CardContent, - CardDescription, - CardHeader, - CardTitle, -} from '@vitnode/core/components/ui/card' -import { Input } from '@vitnode/core/components/ui/input' -import { Textarea } from '@vitnode/core/components/ui/textarea' -import { cn } from 'cn' -import { - ArrowLeft, - Bold, - ChevronRight, - FileImage, - FileText, - Globe, - GripVertical, - Heart, - Image as ImageIcon, - Italic, - Link2, - List, - ListOrdered, - MessageSquare, - NotebookPen, - Pencil, - Plus, - Redo2, - Save, - Send, - TriangleAlert, - Underline, - Undo2, - Upload, -} from 'lucide-react' -import { useTranslations } from 'use-intl' - -import { AdminFrame } from './frames' -import { Field, LanguageInput, ListRow, StaticButton } from './parts' - -export const DashboardScreen = () => { - const t = useTranslations('site.home.hero.wall.dashboard') - - return ( - - - {t('edit_layout')} - - } - badge={ - - - {t('dev_mode')} - - } - description={t('version', { version: '2.0.0-canary.4' })} - page="dashboard" - title="VitNode" - > -
- - - - - {t('notes_title')} - - {t('notes_desc')} - - -