Initial commit from ux_aura_assistant
This commit is contained in:
22
features/workspace/components/StatusCard.tsx
Normal file
22
features/workspace/components/StatusCard.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import React from 'react';
|
||||
|
||||
interface StatusCardProps {
|
||||
label: string;
|
||||
value: string;
|
||||
colorClass: string;
|
||||
}
|
||||
|
||||
const StatusCard: React.FC<StatusCardProps> = ({ label, value, colorClass }) => {
|
||||
return (
|
||||
<div className="p-4 bg-white dark:bg-slate-800 rounded-xl border border-slate-200 dark:border-slate-700 shadow-sm text-left">
|
||||
<p className={`text-xs font-bold uppercase mb-1 ${colorClass}`}>
|
||||
{label}
|
||||
</p>
|
||||
<p className="text-sm text-slate-700 dark:text-slate-300">
|
||||
{value}
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default StatusCard;
|
||||
31
features/workspace/components/StatusGrid.tsx
Normal file
31
features/workspace/components/StatusGrid.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import React from 'react';
|
||||
import { User } from '../../../types';
|
||||
import StatusCard from './StatusCard';
|
||||
|
||||
interface StatusGridProps {
|
||||
user: User | null;
|
||||
}
|
||||
|
||||
const StatusGrid: React.FC<StatusGridProps> = ({ user }) => {
|
||||
return (
|
||||
<div className="grid grid-cols-1 sm:grid-cols-3 gap-4 w-full max-w-2xl">
|
||||
<StatusCard
|
||||
label="Auth"
|
||||
value={`Verified for ${user?.name || 'Guest'}`}
|
||||
colorClass="text-blue-600"
|
||||
/>
|
||||
<StatusCard
|
||||
label="Theme"
|
||||
value="Dark mode & a11y integrated"
|
||||
colorClass="text-purple-600"
|
||||
/>
|
||||
<StatusCard
|
||||
label="AI"
|
||||
value="Gemini API ready"
|
||||
colorClass="text-green-600"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default StatusGrid;
|
||||
Reference in New Issue
Block a user