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 LoyaltyPage() {
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">Loyalty Programs</span>
16 </div>
17 <h1 className="text-3xl font-bold text-text mb-2 flex items-center gap-3">
18 <Icon name="loyalty" size={32} />
19 Loyalty Programs Configuration
20 </h1>
21 <p className="text-muted">Configure rewards and loyalty schemes</p>
22 </div>
23
24 {/* Configuration Sections */}
25 <div className="space-y-6">
26 <div className="bg-surface rounded-lg shadow-sm border border-border p-6">
27 <h2 className="text-xl font-semibold text-text mb-4">Points System</h2>
28 <p className="text-muted mb-4">Configure how loyalty points are earned and redeemed</p>
29 <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
30 <div>
31 <label className="block text-sm font-medium text-text mb-2">
32 Points Per Dollar Spent
33 </label>
34 <input
35 type="number"
36 placeholder="1"
37 className="w-full px-3 py-2 border border-border rounded-md"
38 />
39 </div>
40 <div>
41 <label className="block text-sm font-medium text-text mb-2">
42 Points Value (Cents)
43 </label>
44 <input
45 type="number"
46 placeholder="1"
47 className="w-full px-3 py-2 border border-border rounded-md"
48 />
49 </div>
50 </div>
51 </div>
52
53 <div className="bg-surface rounded-lg shadow-sm border border-border p-6">
54 <h2 className="text-xl font-semibold text-text mb-4">Program Features</h2>
55 <p className="text-muted mb-4">Enable or disable loyalty program features</p>
56 <div className="space-y-4">
57 <div className="flex items-center justify-between">
58 <span className="text-text">Enable loyalty program</span>
59 <input type="checkbox" className="toggle" defaultChecked />
60 </div>
61 <div className="flex items-center justify-between">
62 <span className="text-text">Allow points redemption</span>
63 <input type="checkbox" className="toggle" defaultChecked />
64 </div>
65 <div className="flex items-center justify-between">
66 <span className="text-text">Tiered membership levels</span>
67 <input type="checkbox" className="toggle" />
68 </div>
69 </div>
70 </div>
71
72 <div className="flex justify-end gap-3">
73 <button className="px-4 py-2 border border-border rounded-md text-text hover:bg-surface-2">
74 Cancel
75 </button>
76 <button className="px-4 py-2 bg-brand text-white rounded-md hover:bg-brand2 flex items-center gap-2">
77 <Icon name="save" size={20} />
78 Save Changes
79 </button>
80 </div>
81 </div>
82 </div>
83 </div>
84 );
85}