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
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- +goose Up
CREATE TABLE password_reset_tokens (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
email TEXT NOT NULL,
token TEXT NOT NULL UNIQUE,
expires_at TIMESTAMPTZ NOT NULL,
used_at TIMESTAMPTZ,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
CREATE INDEX idx_password_reset_tokens_token ON password_reset_tokens(token);

-- +goose Down
DROP TABLE IF EXISTS password_reset_tokens;
9 changes: 9 additions & 0 deletions web/components/common/Logo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Link from 'next/link'

export function Logo({ className }: { className?: string }) {
return (
<Link href="/" className={`text-sm font-semibold tracking-tight hover:opacity-70 transition-opacity ${className ?? ''}`}>
App
</Link>
)
}
2 changes: 1 addition & 1 deletion web/components/common/container.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { cn } from "@/lib/utils";

const Container = ({ children, className }: { children: React.ReactNode; className?: string }) => {
return <div className={cn("mx-auto max-w-7xl", className)}>{children}</div>;
return <div className={cn("mx-auto max-w-7xl px-4", className)}>{children}</div>;
};

export default Container;
7 changes: 3 additions & 4 deletions web/components/layout/AppSidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Link from 'next/link'
import { LayoutDashboard, Settings } from 'lucide-react'
import { Logo } from '@/components/common/Logo'
import {
Sidebar,
SidebarContent,
Expand All @@ -13,6 +13,7 @@ import {
SidebarMenuItem,
} from '@/components/ui/sidebar'
import { UserMenu } from '@/features/auth/components/UserMenu'
import Link from 'next/link'

const navItems = [
{ title: 'Dashboard', url: '/dashboard', icon: LayoutDashboard },
Expand All @@ -23,9 +24,7 @@ export function AppSidebar() {
return (
<Sidebar>
<SidebarHeader className="px-4 py-3">
<Link href="/" className="text-sm font-semibold tracking-tight hover:opacity-70 transition-opacity">
App
</Link>
<Logo />
</SidebarHeader>
<SidebarContent>
<SidebarGroup>
Expand Down
6 changes: 2 additions & 4 deletions web/components/layout/header.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import Link from "next/link"
import { Logo } from "@/components/common/Logo"
import { NavAuth } from "./NavAuth"

export default function Header() {
return (
<header className="sticky top-0 z-50 w-full border-b border-border bg-background/95 backdrop-blur supports-backdrop-filter:bg-background/60">
<div className="container mx-auto flex h-14 items-center px-4">
<Link href="/" className="text-sm font-semibold tracking-tight">
App
</Link>
<Logo />
<div className="flex-1" />
<NavAuth />
</div>
Expand Down
1 change: 0 additions & 1 deletion web/public/file.svg

This file was deleted.

17 changes: 0 additions & 17 deletions web/public/firebase-messaging-sw.js

This file was deleted.

1 change: 0 additions & 1 deletion web/public/globe.svg

This file was deleted.

1 change: 0 additions & 1 deletion web/public/next.svg

This file was deleted.

1 change: 0 additions & 1 deletion web/public/vercel.svg

This file was deleted.

1 change: 0 additions & 1 deletion web/public/window.svg

This file was deleted.

Loading