Files
bracket/docs/components/Footer.tsx
Copilot 3606868b98 frontend: replace Prettier stack with oxfmt (#1750)
This PR migrates formatting in `frontend/` from Prettier to `oxfmt`,
including script wiring and dependency cleanup. It removes the Prettier
plugin/config path so formatting is handled by a single tool.

- **Script migration**
  - Renamed/rewired formatting scripts in `frontend/package.json`:
    - `prettier:check` → `format:check` (`oxfmt --check .`)
    - `prettier:write` → `format:write` (`oxfmt .`)
  - Updated dependent scripts:
    - `test` now runs `pnpm run format:write`
    - `openapi-ts` now runs `pnpm run format:write` after generation

- **Dependency cleanup**
  - Removed `prettier-plugin-organize-imports` from `dependencies`
  - Removed `prettier` from `devDependencies`
  - Added `oxfmt` (latest stable at update time)

- **Config removal**
  - Deleted `frontend/.prettierrc.js` (no longer used after migration)

- **Lockfile alignment**
- Updated `frontend/pnpm-lock.yaml` to reflect the dependency and script
ecosystem change

```json
{
  "scripts": {
    "format:check": "oxfmt --check .",
    "format:write": "oxfmt .",
    "openapi-ts": "openapi-ts && pnpm run format:write",
    "test": "tsc && pnpm run format:write"
  }
}
```

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Erik Vroon <11857441+evroon@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-28 18:38:17 +00:00

117 lines
3.4 KiB
TypeScript

import Link from "next/link";
import Image from "next/image";
import logo from "../content/img/logo.svg";
export const Footer = () => {
return (
<footer id="footer">
<hr className="w-11/12 mx-auto" />
<section className="container py-20 grid grid-cols-2 md:grid-cols-4 xl:grid-cols-6 gap-x-12 gap-y-8">
<div className="col-span-full xl:col-span-2">
<Link href="/" className="font-bold text-xl flex">
<Image width={36} height={36} src={logo.src} className="mr-2" alt="Logo of Bracket" />
<b className="text-3xl">Bracket</b>
</Link>
</div>
<div className="flex flex-col gap-2">
<h3 className="font-bold text-lg">Intro</h3>
<div>
<Link href="/docs" className="opacity-60 hover:opacity-100">
Introduction
</Link>
</div>
<div>
<Link href="/docs/running-bracket/quickstart" className="opacity-60 hover:opacity-100">
Quickstart
</Link>
</div>
</div>
<div className="flex flex-col gap-2">
<h3 className="font-bold text-lg">Running Bracket</h3>
<div>
<Link
href="/docs/running-bracket/configuration"
className="opacity-60 hover:opacity-100"
>
Configuration
</Link>
</div>
<div>
<Link href="/docs/deployment" className="opacity-60 hover:opacity-100">
Deployment
</Link>
</div>
</div>
<div className="flex flex-col gap-2">
<h3 className="font-bold text-lg">About</h3>
<div>
<Link href="/docs/usage/guide" className="opacity-60 hover:opacity-100">
Usage
</Link>
</div>
<div>
<Link href="/docs/running-bracket/faq" className="opacity-60 hover:opacity-100">
FAQ
</Link>
</div>
<div>
<Link
href="https://github.com/evroon/bracket/blob/master/LICENSE"
className="opacity-60 hover:opacity-100"
>
License
</Link>
</div>
<div>
<Link
href="https://github.com/evroon/bracket/releases"
className="opacity-60 hover:opacity-100"
>
Releases
</Link>
</div>
</div>
<div className="flex flex-col gap-2">
<h3 className="font-bold text-lg">Community</h3>
<div>
<Link href="https://github.com/evroon/bracket" className="opacity-60 hover:opacity-100">
GitHub
</Link>
</div>
<div>
<Link href="/docs/community/contributing/" className="opacity-60 hover:opacity-100">
Contributing
</Link>
</div>
<div>
<Link href="/docs/community/development/" className="opacity-60 hover:opacity-100">
Development
</Link>
</div>
</div>
</section>
<section className="container pb-14 text-center">
<h3>
Bracket - Open-source Tournament System.
<br />
Licensed under AGPL-v3.0. Copyright © {new Date().getFullYear()} Bracket. Built with
Nextra.
</h3>
</section>
</footer>
);
};