Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions web/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,4 @@ export default defineConfig([
files: ['src/routes/**/*.{ts,tsx}'],
rules: { 'react-refresh/only-export-components': 'off' },
},
{
// Copied from beui.dev; kept as published.
files: ['src/components/motion/**/*.{ts,tsx}'],
rules: {
'react-refresh/only-export-components': 'off',
'react-hooks/set-state-in-effect': 'off',
},
},
])
83 changes: 7 additions & 76 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@
"generate:api": "openapi-typescript ../api/openapi.yaml -o src/api/schema.d.ts"
},
"dependencies": {
"@fontsource-variable/geist": "^5.3.0",
"@fontsource-variable/geist-mono": "^5.3.0",
"@fontsource-variable/inter": "^5.3.0",
"@tanstack/react-query": "^5.104.0",
"@tanstack/react-router": "^1.170.40",
"clsx": "^2.1.1",
"lucide-react": "^1.49.0",
"motion": "^13.4.6",
"openapi-fetch": "^0.17.0",
"react": "^19.2.8",
"react-dom": "^19.2.8",
Expand Down
20 changes: 0 additions & 20 deletions web/src/components/auth/auth-card.tsx

This file was deleted.

23 changes: 11 additions & 12 deletions web/src/components/auth/auth-layout.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
import type { ReactNode } from "react";

type AuthLayoutProps = {
prompt: ReactNode;
title: string;
footer: ReactNode;
children: ReactNode;
};

export function AuthLayout({ prompt, children }: AuthLayoutProps) {
export function AuthLayout({ title, footer, children }: AuthLayoutProps) {
return (
<div className="absolute inset-x-0 top-0 min-h-screen lg:grid lg:grid-cols-2">
<div className="hidden flex-col justify-end border-r border-line p-12 lg:flex">
<h1 className="text-3xl font-medium tracking-tight">Naplata</h1>
<h3 className="mt-2 text-base text-muted-foreground">
Invoicing and payments, without the busywork.
</h3>
</div>
<div className="absolute inset-x-0 top-0 flex min-h-screen items-center justify-center px-4">
<div className="w-full max-w-xs">
<p className="mb-10 text-center text-base font-semibold tracking-tight">Naplata</p>

<div className="relative flex min-h-screen items-center justify-center p-6">
<p className="absolute top-6 right-6 text-sm text-muted-foreground">{prompt}</p>
{children}
<div className="space-y-5">
<h1 className="text-center text-lg font-medium">{title}</h1>
{children}
<p className="text-center text-xs text-muted-foreground">{footer}</p>
</div>
</div>
</div>
);
Expand Down
Loading
Loading