Beatra Website
The website of Beatra, a free Discord music bot: home, commands, premium plans, partners and legal pages, in seven languages. Take it as a starting point for your own bot’s site.
beatra.vercel.app

What is in it
- Home: what the bot does, a Discord window that plays out a
/play in miniature, the sources it plays from, how to start, and what Premium adds.
- Commands: all 38 slash commands with the bot’s own descriptions, in every language. Search them, filter by group, click one to copy it.
- Premium: Personal, Server and Custom Bot plans in tabs, and a FAQ.
- Partners, Terms of Service, Privacy Policy, and a 404 page in the visitor’s language.
- Seven languages: English, Turkish, Spanish, Portuguese, French, German, Russian.
/ sends each visitor to their browser’s language and remembers the one they pick.
- Every screen: checked from 320px phones to 2560px displays, in all seven languages, so nothing runs off the side and no word is cut in half.
- Quiet when asked: with “reduce motion” on, everything is simply there.
Built with
Every page is generated at build time. There are no environment variables and nothing to configure.
Run it
git clone https://github.com/umutxyp/Discord-Bot-Website.git
cd Discord-Bot-Website
npm install
npm run dev # http://localhost:3000
npm run build builds it and npm start serves the build. It needs Node 22 or newer.
Make it yours
The colours
The whole site uses neutral greys and one accent, the blue of the logo:
| Variable |
What it colours |
--background, --card, --muted, --border |
the page, raised surfaces, lines |
--foreground, --muted-foreground, --subtle |
text, from strongest to quietest |
--primary |
buttons |
--brand |
links, icons and small accents on the dark page |
Change --primary and --brand to your own colour and the site follows. The Discord window on the home page keeps Discord’s own colours, since it is a picture of Discord.
Add a language
- Copy
src/i18n/dictionaries/en.json to your language’s code, for example it.json, and translate it.
- Add the code and its name to
src/i18n/config.js.
- Add its loader to
src/i18n/getDictionary.js and its import to src/app/[locale]/not-found.jsx.
Every dictionary must have the same keys as the English one.
Add a kit component
The kit’s components live in src/components/ui and are yours to edit. To add another:
npx shadcn@latest add dialog
How it is laid out
src/
app/
globals.css the theme, and the few things Tailwind does not cover
[locale]/ the pages: home, commands, premium, partners, tos, privacy
components/ Header, Footer, DiscordMock, CommandBrowser, PremiumTabs, …
ui/ the shadcn/ui components
i18n/ the languages and their dictionaries
resources/ links and the site's address
proxy.js sends / to the visitor's language
Put it online
Import the repository on Vercel and deploy; it needs no settings. Any host that runs Next.js works the same way. Set baseURL in src/resources/seo.js to your address.
License
MIT. Made by @umutxyp, part of Codeshare.
评论