feat: Next.js 14 web admin scaffold — auth, sidebar, dashboard, placeholders
This commit is contained in:
30
app/(app)/settings/areas/page.tsx
Normal file
30
app/(app)/settings/areas/page.tsx
Normal file
@@ -0,0 +1,30 @@
|
||||
'use client';
|
||||
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Plus, MapPin } from 'lucide-react';
|
||||
|
||||
export default function AreasPage() {
|
||||
return (
|
||||
<div>
|
||||
<div className="mb-6 flex items-center justify-between">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-slate-800">Areas & Zones</h1>
|
||||
<p className="text-slate-500 text-sm mt-1">Define service coverage areas</p>
|
||||
</div>
|
||||
<Button style={{ backgroundColor: '#0891B2' }}>
|
||||
<Plus size={16} className="mr-2" />
|
||||
Add Area
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<Card className="border shadow-sm">
|
||||
<CardContent className="flex flex-col items-center justify-center py-16 text-slate-400">
|
||||
<MapPin size={32} className="mb-3 text-slate-300" />
|
||||
<p className="text-sm font-medium">No areas defined yet</p>
|
||||
<p className="text-xs mt-1">Create areas to group clients by coverage zone</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
31
app/(app)/settings/plans/page.tsx
Normal file
31
app/(app)/settings/plans/page.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
'use client';
|
||||
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Plus } from 'lucide-react';
|
||||
|
||||
export default function PlansPage() {
|
||||
return (
|
||||
<div>
|
||||
<div className="mb-6 flex items-center justify-between">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-slate-800">Service Plans</h1>
|
||||
<p className="text-slate-500 text-sm mt-1">Manage internet subscription plans</p>
|
||||
</div>
|
||||
<Button style={{ backgroundColor: '#0891B2' }}>
|
||||
<Plus size={16} className="mr-2" />
|
||||
Add Plan
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||
<Card className="border shadow-sm border-dashed border-slate-300">
|
||||
<CardContent className="flex flex-col items-center justify-center py-12 text-slate-400">
|
||||
<Plus size={24} className="mb-2" />
|
||||
<p className="text-sm">Create your first plan</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
43
app/(app)/settings/tenant/page.tsx
Normal file
43
app/(app)/settings/tenant/page.tsx
Normal file
@@ -0,0 +1,43 @@
|
||||
'use client';
|
||||
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
||||
export default function TenantSettingsPage() {
|
||||
return (
|
||||
<div>
|
||||
<div className="mb-6">
|
||||
<h1 className="text-2xl font-bold text-slate-800">Tenant Settings</h1>
|
||||
<p className="text-slate-500 text-sm mt-1">Configure your ISP business details</p>
|
||||
</div>
|
||||
|
||||
<Card className="border shadow-sm max-w-2xl">
|
||||
<CardHeader>
|
||||
<CardTitle className="text-base">Business Information</CardTitle>
|
||||
<CardDescription>Update your ISP company details</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-4">
|
||||
<div className="space-y-1.5">
|
||||
<Label>Business Name</Label>
|
||||
<Input placeholder="e.g. My Internet Services" />
|
||||
</div>
|
||||
<div className="space-y-1.5">
|
||||
<Label>Address</Label>
|
||||
<Input placeholder="Business address" />
|
||||
</div>
|
||||
<div className="space-y-1.5">
|
||||
<Label>Phone</Label>
|
||||
<Input placeholder="+63 9XX XXX XXXX" />
|
||||
</div>
|
||||
<div className="space-y-1.5">
|
||||
<Label>Email</Label>
|
||||
<Input type="email" placeholder="info@yourisp.com" />
|
||||
</div>
|
||||
<Button style={{ backgroundColor: '#0891B2' }}>Save Changes</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
53
app/(app)/settings/users/page.tsx
Normal file
53
app/(app)/settings/users/page.tsx
Normal file
@@ -0,0 +1,53 @@
|
||||
'use client';
|
||||
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import {
|
||||
Table,
|
||||
TableBody,
|
||||
TableCell,
|
||||
TableHead,
|
||||
TableHeader,
|
||||
TableRow,
|
||||
} from '@/components/ui/table';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { UserPlus } from 'lucide-react';
|
||||
|
||||
export default function UsersPage() {
|
||||
return (
|
||||
<div>
|
||||
<div className="mb-6 flex items-center justify-between">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-slate-800">Users</h1>
|
||||
<p className="text-slate-500 text-sm mt-1">Manage staff accounts and permissions</p>
|
||||
</div>
|
||||
<Button style={{ backgroundColor: '#0891B2' }}>
|
||||
<UserPlus size={16} className="mr-2" />
|
||||
Invite User
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<Card className="border shadow-sm">
|
||||
<CardContent className="p-0">
|
||||
<Table>
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
<TableHead>Name</TableHead>
|
||||
<TableHead>Email</TableHead>
|
||||
<TableHead>Role</TableHead>
|
||||
<TableHead>Status</TableHead>
|
||||
<TableHead>Actions</TableHead>
|
||||
</TableRow>
|
||||
</TableHeader>
|
||||
<TableBody>
|
||||
<TableRow>
|
||||
<TableCell colSpan={5} className="text-center py-12 text-slate-400">
|
||||
No users found. Invite your team members.
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableBody>
|
||||
</Table>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user