feat(core): scaffold account manager platform

This commit is contained in:
dmg
2026-08-01 13:03:26 -04:00
commit 9d305e5dc9
36 changed files with 11898 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
# Discord bot
The bot will provide ephemeral `/register` and `/account` responses containing short-lived one-time links. The target guild is read from admin-managed application settings rather than a deployment-only environment variable.
Implementation begins in Phase 2 alongside the one-time login service.
+16
View File
@@ -0,0 +1,16 @@
{
"name": "@minecraft-account-manager/discord-bot",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@minecraft-account-manager/contracts": "*",
"discord.js": "^14.25.1"
},
"devDependencies": {
"typescript": "^5.9.3"
}
}
+2
View File
@@ -0,0 +1,2 @@
// Discord command handling is added in Phase 2 after the one-time login service exists.
export {};
+7
View File
@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"types": ["node"]
},
"include": ["src/**/*.ts"]
}
+9
View File
@@ -0,0 +1,9 @@
import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTypescript from "eslint-config-next/typescript";
export default defineConfig([
...nextVitals,
...nextTypescript,
globalIgnores([".next/**", "next-env.d.ts"]),
]);
+6
View File
@@ -0,0 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
+12
View File
@@ -0,0 +1,12 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
serverExternalPackages: ["postgres"],
transpilePackages: [
"@minecraft-account-manager/contracts",
"@minecraft-account-manager/database",
],
};
export default nextConfig;
+29
View File
@@ -0,0 +1,29 @@
{
"name": "@minecraft-account-manager/web",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint .",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@minecraft-account-manager/contracts": "*",
"@minecraft-account-manager/database": "*",
"next": "^16.2.1",
"react": "^19.2.3",
"react-dom": "^19.2.3"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.2.1",
"@types/node": "^25.0.3",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"eslint": "^9.39.4",
"eslint-config-next": "^16.2.1",
"tailwindcss": "^4.2.1",
"typescript": "^5.9.3"
}
}
+7
View File
@@ -0,0 +1,7 @@
const postcssConfig = {
plugins: {
"@tailwindcss/postcss": {},
},
};
export default postcssConfig;
+79
View File
@@ -0,0 +1,79 @@
@import "tailwindcss";
@theme inline {
--color-canvas: var(--canvas);
--color-panel: var(--panel);
--color-ink: var(--ink);
--color-muted: var(--muted);
--color-line: var(--line);
--color-accent: var(--accent);
--color-signal: var(--signal);
--color-shadow: var(--shadow);
--font-display: "Arial Narrow", "Roboto Condensed", sans-serif;
--font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
:root {
--canvas: #d9d1bb;
--panel: #eee8d8;
--ink: #171916;
--muted: #57594f;
--line: #9e9a88;
--accent: #bc3f24;
--signal: #b5d452;
--shadow: #262a23;
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
background: var(--canvas);
}
::selection {
background: var(--accent);
color: var(--panel);
}
.terrain {
position: absolute;
inset: 0;
opacity: 0.2;
background-image:
linear-gradient(90deg, transparent 31px, rgba(23, 25, 22, 0.13) 32px),
linear-gradient(transparent 31px, rgba(23, 25, 22, 0.13) 32px);
background-size: 32px 32px;
mask-image: linear-gradient(to bottom right, black, transparent 72%);
}
.text-outline {
color: transparent;
-webkit-text-stroke: 1.5px var(--ink);
}
.cursor {
animation: blink 1s steps(2, jump-none) infinite;
}
@keyframes blink {
50% {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
.cursor {
animation: none;
}
}
+16
View File
@@ -0,0 +1,16 @@
import type { Metadata } from "next";
import type { ReactNode } from "react";
import "./globals.css";
export const metadata: Metadata = {
title: "Blocklist — Minecraft Account Manager",
description: "Connect your Discord identity to approved Minecraft accounts.",
};
export default function RootLayout({ children }: Readonly<{ children: ReactNode }>) {
return (
<html lang="en">
<body>{children}</body>
</html>
);
}
+70
View File
@@ -0,0 +1,70 @@
const steps = [
["01", "Open Discord", "Run /register or /account in the community server."],
["02", "Link your account", "Use the private, one-time link sent by the bot."],
["03", "Join the server", "Add your Java account and connect once approved."],
] as const;
export default function HomePage() {
return (
<main className="relative min-h-screen overflow-hidden bg-canvas text-ink">
<div className="terrain" aria-hidden="true" />
<div className="relative mx-auto flex min-h-screen max-w-7xl flex-col px-6 pb-10 pt-7 sm:px-10 lg:px-16">
<header className="flex items-center justify-between border-b border-line pb-5">
<a className="flex items-center gap-3" href="#top" aria-label="Blocklist home">
<span className="grid size-9 place-items-center border border-accent bg-accent text-sm font-black text-canvas shadow-[4px_4px_0_var(--color-shadow)]">
B
</span>
<span className="font-display text-sm font-bold uppercase tracking-[0.22em]">Blocklist</span>
</a>
<span className="hidden items-center gap-2 font-mono text-xs uppercase tracking-widest text-muted sm:flex">
<span className="size-2 bg-signal shadow-[0_0_12px_var(--color-signal)]" />
Registration online
</span>
</header>
<section id="top" className="grid flex-1 items-center gap-14 py-20 lg:grid-cols-[1.15fr_0.85fr] lg:py-24">
<div>
<p className="mb-7 font-mono text-xs font-semibold uppercase tracking-[0.3em] text-accent">
Discord Java Edition
</p>
<h1 className="max-w-4xl font-display text-6xl font-black uppercase leading-[0.86] tracking-[-0.07em] sm:text-8xl lg:text-[7.5rem]">
Your name.
<span className="block text-outline">Your blocks.</span>
One account.
</h1>
<p className="mt-9 max-w-xl border-l-2 border-accent pl-5 text-base leading-7 text-muted sm:text-lg">
Securely connect Discord to your approved Minecraft accounts. No passwords. No public links. Just a quick handoff from the server you already know.
</p>
</div>
<aside className="relative border border-line bg-panel/90 p-6 shadow-[10px_10px_0_var(--color-shadow)] backdrop-blur sm:p-8">
<span className="absolute -right-px -top-px bg-accent px-3 py-1 font-mono text-[10px] font-bold uppercase tracking-widest text-canvas">
Start here
</span>
<h2 className="font-display text-2xl font-bold uppercase tracking-tight">Three steps to the gate</h2>
<ol className="mt-8 space-y-1">
{steps.map(([number, title, description]) => (
<li key={number} className="group grid grid-cols-[3rem_1fr] gap-4 border-t border-line py-5 first:border-t-0">
<span className="font-mono text-xs font-bold text-accent">{number}</span>
<div>
<h3 className="font-display text-sm font-bold uppercase tracking-wider">{title}</h3>
<p className="mt-2 text-sm leading-6 text-muted">{description}</p>
</div>
</li>
))}
</ol>
<div className="mt-5 bg-ink px-5 py-4 font-mono text-xs leading-6 text-canvas">
<span className="text-signal">&gt;</span> Open Discord and type <strong>/register</strong>
<span className="cursor ml-1 inline-block h-4 w-2 bg-signal align-middle" />
</div>
</aside>
</section>
<footer className="flex flex-col gap-3 border-t border-line pt-5 font-mono text-[10px] uppercase tracking-[0.18em] text-muted sm:flex-row sm:items-center sm:justify-between">
<span>Java Edition only</span>
<span>Unknown players are denied by default</span>
</footer>
</div>
</main>
);
}
+14
View File
@@ -0,0 +1,14 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"jsx": "react-jsx",
"lib": ["dom", "dom.iterable", "esnext"],
"noEmit": true,
"plugins": [{ "name": "next" }],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "src/**/*.ts", "src/**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}