44 lines
1.8 KiB
TypeScript
44 lines
1.8 KiB
TypeScript
import { Link } from 'react-router-dom'
|
|
import { ArrowLeft, FileSpreadsheet, Package } from 'lucide-react'
|
|
|
|
export default function NewOrderPage() {
|
|
return (
|
|
<div className="p-8 max-w-3xl mx-auto">
|
|
<div className="flex items-center gap-4 mb-8">
|
|
<Link to="/orders" className="btn-secondary"><ArrowLeft size={16} />Back</Link>
|
|
<h1 className="text-2xl font-bold text-content">New Order</h1>
|
|
</div>
|
|
|
|
<div className="grid grid-cols-1 sm:grid-cols-2 gap-6">
|
|
{/* Excel Upload */}
|
|
<Link
|
|
to="/upload"
|
|
className="card p-6 hover:shadow-md transition-shadow group"
|
|
>
|
|
<div className="w-12 h-12 rounded-lg bg-emerald-50 flex items-center justify-center mb-4 group-hover:bg-emerald-100 transition-colors">
|
|
<FileSpreadsheet size={24} className="text-emerald-600" />
|
|
</div>
|
|
<h2 className="text-lg font-semibold text-content mb-1">Upload Excel</h2>
|
|
<p className="text-sm text-content-muted">
|
|
Import order items from an Excel template file with product data and components.
|
|
</p>
|
|
</Link>
|
|
|
|
{/* Product Library */}
|
|
<Link
|
|
to="/orders/new/product"
|
|
className="card p-6 hover:shadow-md transition-shadow group"
|
|
>
|
|
<div className="w-12 h-12 rounded-lg bg-status-info-bg flex items-center justify-center mb-4 group-hover:bg-surface-hover transition-colors">
|
|
<Package size={24} className="text-status-info-text" />
|
|
</div>
|
|
<h2 className="text-lg font-semibold text-content mb-1">Product Library</h2>
|
|
<p className="text-sm text-content-muted">
|
|
Select products from the library and configure output types for rendering.
|
|
</p>
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|