EverydayTech Platform - Developer Reference
Complete Source Code Documentation - All Applications
Loading...
Searching...
No Matches
page.tsx
Go to the documentation of this file.
1'use client';
2
3import Link from 'next/link';
4import { Icon } from '@/contexts/IconContext';
5
6export default function StockControlPage() {
7 return (
8 <div className="min-h-screen bg-bg">
9 <div className="max-w-7xl mx-auto p-6">
10 {/* Header */}
11 <div className="mb-8">
12 <div className="flex items-center gap-2 text-sm text-muted mb-4">
13 <Link href="/pages/settings" className="hover:text-text">Settings</Link>
14 <span>›</span>
15 <span className="text-text">Stock Control</span>
16 </div>
17 <h1 className="text-3xl font-bold text-text mb-2 flex items-center gap-2"><Icon name="inventory" size={32} /> Stock Control Configuration</h1>
18 <p className="text-muted">Configure inventory tracking and management settings</p>
19 </div>
20
21 {/* Configuration Sections */}
22 <div className="space-y-6">
23 <div className="bg-surface rounded-lg shadow-sm border border-border p-6">
24 <h2 className="text-xl font-semibold text-text mb-4">Inventory Tracking</h2>
25 <p className="text-muted mb-4">Configure how stock levels are tracked</p>
26 <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
27 <div>
28 <label className="block text-sm font-medium text-text mb-2">
29 Stock Tracking Method
30 </label>
31 <select className="w-full px-3 py-2 border border-border rounded-md">
32 <option>Real-time</option>
33 <option>End of Day</option>
34 <option>Manual</option>
35 </select>
36 </div>
37 <div>
38 <label className="block text-sm font-medium text-text mb-2">
39 Low Stock Threshold
40 </label>
41 <input
42 type="number"
43 placeholder="5"
44 className="w-full px-3 py-2 border border-border rounded-md"
45 />
46 </div>
47 </div>
48 </div>
49
50 <div className="bg-surface rounded-lg shadow-sm border border-border p-6">
51 <h2 className="text-xl font-semibold text-text mb-4">Stock Alerts</h2>
52 <p className="text-muted mb-4">Configure alerts and notifications</p>
53 <div className="space-y-4">
54 <div className="flex items-center justify-between">
55 <span className="text-text">Alert on negative stock</span>
56 <input type="checkbox" className="toggle" />
57 </div>
58 <div className="flex items-center justify-between">
59 <span className="text-text">Alert on low stock</span>
60 <input type="checkbox" className="toggle" />
61 </div>
62 <div className="flex items-center justify-between">
63 <span className="text-text">Alert on stock discrepancies</span>
64 <input type="checkbox" className="toggle" />
65 </div>
66 </div>
67 </div>
68
69 <div className="flex justify-end gap-3">
70 <button className="px-4 py-2 border border-border rounded-md text-text hover:bg-surface-2">
71 Cancel
72 </button>
73 <button className="px-4 py-2 bg-brand text-white rounded-md hover:bg-brand2 flex items-center gap-2">
74 <Icon name="save" size={18} /> Save Changes
75 </button>
76 </div>
77 </div>
78 </div>
79 </div>
80 );
81}