Skip to content

Commit 342e104

Browse files
committed
asset creation clean ui
1 parent db213ff commit 342e104

17 files changed

Lines changed: 897 additions & 404 deletions

File tree

src/components/FeeStructure/FeeStructureComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export const FeeStructureComponent: React.FC<FeeStructureComponentProps> = ({
136136
>
137137
{/* Header */}
138138
<motion.div variants={itemVariants}>
139-
<Card className="bg-gradient-to-r from-blue-50 to-indigo-50 border-blue-200">
139+
<Card className=" m-4">
140140
<CardHeader>
141141
<CardTitle className="flex items-center gap-3">
142142
<div className="p-2 bg-blue-100 rounded-lg">

src/pages/asset/AddAsset/AdditionalDetails/RiskFactors/index.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ const RiskFactor = memo(() => {
186186
{/* Enhanced Header */}
187187
<motion.div
188188
variants={headerVariants}
189-
className="bg-gradient-to-r from-red-50 to-orange-50 rounded-xl p-6 border border-red-100 shadow-sm overflow-hidden relative"
189+
className="rounded-xl m-4 p-6 border shadow-sm overflow-hidden relative"
190190
>
191191
{/* Background Pattern */}
192192
<div className="absolute inset-0 opacity-5">
@@ -220,15 +220,7 @@ const RiskFactor = memo(() => {
220220
</div>
221221

222222
{/* Add Button */}
223-
<motion.button
224-
onClick={handleAdd}
225-
className="bg-gradient-to-r from-red-500 to-orange-600 hover:from-red-600 hover:to-orange-700 text-white px-6 py-2 rounded-xl transition-all duration-300 flex items-center gap-2 shadow-lg hover:shadow-xl"
226-
whileHover={{ scale: 1.05 }}
227-
whileTap={{ scale: 0.95 }}
228-
>
229-
<Plus className="w-4 h-4" />
230-
<span className="font-medium">Add Risk Factor</span>
231-
</motion.button>
223+
232224
</div>
233225
</div>
234226
</motion.div>

src/pages/asset/AddAsset/AdditionalDetails/index.tsx

Lines changed: 2 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -162,109 +162,10 @@ const AdditionalDetails = memo(({ tab, step }: Props) => {
162162
animate="animate"
163163
>
164164
{/* Enhanced Header */}
165-
<motion.div
166-
variants={headerVariants}
167-
className="bg-gradient-to-r from-orange-50 via-red-50 to-pink-50 rounded-xl p-6 border border-orange-100 shadow-sm overflow-hidden relative"
168-
>
169-
{/* Background Pattern */}
170-
<div className="absolute inset-0 opacity-5">
171-
<div className="absolute top-4 right-4 w-32 h-32 bg-orange-500 rounded-full blur-3xl" />
172-
<div className="absolute bottom-4 left-4 w-24 h-24 bg-red-500 rounded-full blur-2xl" />
173-
</div>
174-
175-
<div className="relative">
176-
<div className="flex justify-between items-start">
177-
<div className="flex items-center gap-4">
178-
<motion.div
179-
className="p-3 bg-gradient-to-br from-orange-500 to-red-600 rounded-xl shadow-lg relative overflow-hidden"
180-
whileHover={{ scale: 1.05, rotate: 5 }}
181-
transition={{ duration: 0.2 }}
182-
>
183-
<motion.div
184-
className="absolute inset-0 bg-gradient-to-r from-white/20 to-transparent"
185-
animate={{ x: ['-100%', '100%'] }}
186-
transition={{ repeat: Infinity, duration: 3, ease: "linear" }}
187-
/>
188-
<Shield className="w-6 h-6 text-white relative z-10" />
189-
</motion.div>
190-
<div>
191-
<h1 className="text-2xl font-bold bg-gradient-to-r from-orange-600 via-red-600 to-pink-600 bg-clip-text text-transparent">
192-
Additional Details
193-
</h1>
194-
<p className="text-gray-600 text-sm font-medium mt-1">
195-
Risk assessment, disclosures, and financial considerations
196-
</p>
197-
</div>
198-
</div>
199-
200-
{/* Progress Indicator */}
201-
<motion.div
202-
variants={statsVariants}
203-
className="text-right"
204-
>
205-
<div className="text-lg font-bold text-orange-600">{tabs.length}</div>
206-
<div className="text-xs text-gray-500">Categories</div>
207-
</motion.div>
208-
</div>
209-
210-
{/* Enhanced Categories Overview */}
211-
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mt-6">
212-
{tabs.map((tab, index) => {
213-
const Icon = tab.icon;
214-
const colors = ['orange', 'red', 'pink', 'rose'];
215-
const color = colors[index % colors.length];
216-
217-
return (
218-
<motion.div
219-
key={tab.id}
220-
variants={featureVariants}
221-
className={`bg-white/80 backdrop-blur-sm rounded-xl p-4 border border-${color}-200 shadow-sm hover:shadow-md transition-all duration-300 cursor-pointer`}
222-
whileHover={{ scale: 1.02, y: -2 }}
223-
onClick={() => handleTabChange(tab.id)}
224-
>
225-
<div className="flex items-start gap-3">
226-
<div className={`p-2 bg-${color}-100 rounded-lg flex-shrink-0`}>
227-
<Icon className={`w-4 h-4 text-${color}-600`} />
228-
</div>
229-
<div className="flex-1 min-w-0">
230-
<span className="text-sm font-semibold text-gray-800 block truncate">{tab.title}</span>
231-
<p className="text-xs text-gray-500 mt-1 line-clamp-2">{tab.description}</p>
232-
</div>
233-
</div>
234-
</motion.div>
235-
);
236-
})}
237-
</div>
238-
</div>
239-
</motion.div>
165+
240166

241167
{/* Quick Stats */}
242-
<motion.div
243-
className="grid grid-cols-1 md:grid-cols-3 gap-4"
244-
initial={{ opacity: 0, y: 20 }}
245-
animate={{ opacity: 1, y: 0 }}
246-
transition={{ delay: 0.3, staggerChildren: 0.1 }}
247-
>
248-
<StatsCard
249-
icon={Shield}
250-
label="Risk Management"
251-
value="Active"
252-
color="orange"
253-
trend="up"
254-
/>
255-
<StatsCard
256-
icon={FileText}
257-
label="Documentation"
258-
value="Ready"
259-
color="red"
260-
/>
261-
<StatsCard
262-
icon={CheckCircle2}
263-
label="Compliance"
264-
value="Verified"
265-
color="emerald"
266-
/>
267-
</motion.div>
168+
268169

269170
{/* Enhanced Content */}
270171
<motion.div

0 commit comments

Comments
 (0)