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 PricingPage() {
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">Pricing</span>
16 </div>
17 <h1 className="text-3xl font-bold text-text mb-2 flex items-center gap-2"><Icon name="sell" size={32} /> Pricing Configuration</h1>
18 <p className="text-muted">Configure price rules, markdowns, and pricing strategies</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">Price Rules</h2>
25 <p className="text-muted mb-4">Define pricing rules and calculation methods</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 Default Price Level
30 </label>
31 <select className="w-full px-3 py-2 border border-border rounded-md">
32 <option>Retail</option>
33 <option>Wholesale</option>
34 <option>Trade</option>
35 </select>
36 </div>
37 <div>
38 <label className="block text-sm font-medium text-text mb-2">
39 Tax Calculation Method
40 </label>
41 <select className="w-full px-3 py-2 border border-border rounded-md">
42 <option>Inclusive</option>
43 <option>Exclusive</option>
44 </select>
45 </div>
46 </div>
47 </div>
48
49 <div className="bg-surface rounded-lg shadow-sm border border-border p-6">
50 <h2 className="text-xl font-semibold text-text mb-4">Markdowns & Promotions</h2>
51 <p className="text-muted mb-4">Configure discount and promotion policies</p>
52 <div className="space-y-4">
53 <div className="flex items-center justify-between">
54 <span className="text-text">Allow manual price overrides</span>
55 <input type="checkbox" className="toggle" />
56 </div>
57 <div className="flex items-center justify-between">
58 <span className="text-text">Enable promotional pricing</span>
59 <input type="checkbox" className="toggle" />
60 </div>
61 <div className="flex items-center justify-between">
62 <span className="text-text">Allow below-cost pricing</span>
63 <input type="checkbox" className="toggle" />
64 </div>
65 </div>
66 </div>
67
68 <div className="flex justify-end gap-3">
69 <button className="px-4 py-2 border border-border rounded-md text-text hover:bg-surface-2">
70 Cancel
71 </button>
72 <button className="px-4 py-2 bg-brand text-white rounded-md hover:bg-brand2 flex items-center gap-2">
73 <Icon name="save" size={18} /> Save Changes
74 </button>
75 </div>
76 </div>
77 </div>
78 </div>
79 );
80}