Files
bracket/docs/components/Hero.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

44 lines
1.4 KiB
TypeScript

import { buttonVariants } from "./ui/button";
import Link from "next/link";
import { IconLibrary, IconRocket } from "@tabler/icons-react";
export const Hero = () => {
return (
<section className="container place-items-center py-20 md:py-24 gap-10">
<div className="text-center lg:text-start space-y-6">
<main className="text-5xl md:text-6xl font-bold">
<h1 className="inline">Free and open-source tournament management</h1>
</main>
<p className="text-xl text-muted-foreground md:w-10/12 mx-auto lg:mx-0">
Build tournament setups, add teams, schedule matches, keep track of scores and present
ranking live to the public.
</p>
<div className="space-y-4 md:space-y-0 md:space-x-4">
<Link
href="https://www.bracketapp.nl/demo"
className={`w-full md:w-1/3 h-12 ${buttonVariants({
variant: "default",
})}`}
>
<IconRocket size="32px" style={{ marginRight: "0.5rem", height: "32px" }} />
Launch Demo
</Link>
<Link
href="/docs"
className={`w-full md:w-1/3 h-12 ${buttonVariants({
variant: "outline",
})}`}
>
<IconLibrary size="24px" style={{ marginRight: "0.5rem", height: "32px" }} />
Read the docs
</Link>
</div>
</div>
<div className="shadow-sm"></div>
</section>
);
};