From be2cab7c9ee9930990d6f5aed9252acf48e8e0c3 Mon Sep 17 00:00:00 2001 From: Ra Date: Wed, 20 Aug 2025 12:24:56 -0700 Subject: [PATCH] update --- components/figma/EnhancedFigmaQuestion.tsx | 62 +++++++++++++--------- components/figma/FigmaAlert.tsx | 8 +-- components/figma/FigmaMultipleChoice.tsx | 8 +-- components/figma/FigmaProgress.tsx | 16 +++--- components/figma/Sidebar.tsx | 47 +++++++++------- 5 files changed, 80 insertions(+), 61 deletions(-) diff --git a/components/figma/EnhancedFigmaQuestion.tsx b/components/figma/EnhancedFigmaQuestion.tsx index 07b1c03..1a9e176 100644 --- a/components/figma/EnhancedFigmaQuestion.tsx +++ b/components/figma/EnhancedFigmaQuestion.tsx @@ -82,12 +82,12 @@ export const EnhancedFigmaQuestion: React.FC = ({ if (i < currentStep - 1) { // Completed steps - elongated orange dots.push( -
+
); } else if (i === currentStep - 1) { // Current step - elongated orange dots.push( -
+
); } else { // Future steps - small gray circles @@ -160,7 +160,7 @@ export const EnhancedFigmaQuestion: React.FC = ({ data-show-icon-right="false" data-show-text="true" data-size="Big" - className={`h-12 px-8 py-3.5 bg-[--Neutrals-NeutralSlate100] rounded-[999px] flex justify-center items-center gap-1 overflow-hidden ${backDisabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer hover:bg-[--Neutrals-NeutralSlate200]'}`} + className={`h-12 px-8 py-3.5 bg-[--Neutrals-NeutralSlate50] rounded-[999px] flex justify-center items-center gap-1 overflow-hidden ${backDisabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer hover:bg-[--Neutrals-NeutralSlate200]'}`} onClick={!backDisabled ? onBack : undefined} >
@@ -230,28 +230,38 @@ export const FigmaQuestionCard: React.FC = ({ className = "" }) => { return ( -
-
-
Q
-
-
- {question} -
- {description && ( -
- {description} -
- )} -
-
-
-
-
A
-
- {children} -
-
+ //
+ //
+ //
+ // {children} + //
+ //
+ //
+
+ {children}
+ //
+ // {/*
+ //
Q
+ //
+ //
+ // {question} + //
+ // {description && ( + //
+ // {description} + //
+ // )} + //
+ //
*/} + //
+ //
+ //
A
+ //
+ // {children} + //
+ //
+ //
); }; @@ -273,8 +283,8 @@ export const EnhancedFigmaInput: React.FC = ({ rows = 4, className = "" }) => { - const baseClasses = "self-stretch min-h-40 p-5 relative bg-[--Neutrals-NeutralSlate100] rounded-xl inline-flex justify-start items-start gap-2.5 overflow-hidden"; - const inputClasses = "flex-1 justify-start text-[--Neutrals-NeutralSlate500] text-base font-normal font-['Inter'] leading-normal bg-transparent border-none outline-none resize-none"; + const baseClasses = "self-stretch min-h-40 p-5 relative bg-[--Neutrals-NeutralSlate50] rounded-xl inline-flex justify-start items-start gap-2.5 overflow-hidden"; + const inputClasses = "flex self-stretch w-100 text-[--Neutrals-NeutralSlate500] text-base font-normal font-['Inter'] leading-normal bg-transparent border-none outline-none resize-none"; if (multiline) { return ( diff --git a/components/figma/FigmaAlert.tsx b/components/figma/FigmaAlert.tsx index a96e523..0337d4a 100644 --- a/components/figma/FigmaAlert.tsx +++ b/components/figma/FigmaAlert.tsx @@ -18,7 +18,7 @@ export const FigmaAlert: React.FC = ({ }) => { const getBorderColor = () => { switch (variant) { - case 'success': return 'bg-Other-Green'; + case 'success': return 'bg-[--Other-Green]'; case 'error': return 'bg-red-500'; case 'warning': return 'bg-yellow-500'; default: return 'bg-blue-500'; @@ -26,10 +26,10 @@ export const FigmaAlert: React.FC = ({ }; return ( -
-
+
+
{title} - {children &&
{children}
} + {children &&
{children}
}
{onClose && ( diff --git a/components/figma/FigmaMultipleChoice.tsx b/components/figma/FigmaMultipleChoice.tsx index 4ec5c8a..41af6be 100644 --- a/components/figma/FigmaMultipleChoice.tsx +++ b/components/figma/FigmaMultipleChoice.tsx @@ -21,14 +21,14 @@ export const FigmaMultipleChoice: React.FC = ({
onSelect?.(option)} >
{option}
diff --git a/components/figma/FigmaProgress.tsx b/components/figma/FigmaProgress.tsx index 2bcd9ca..80ceb25 100644 --- a/components/figma/FigmaProgress.tsx +++ b/components/figma/FigmaProgress.tsx @@ -15,20 +15,20 @@ interface FigmaProgressProps { const ProgressStep: React.FC = ({ number, title, isActive = false, isCompleted = false }) => { const stepClasses = isActive - ? "p-2 bg-Main-BG-Gray-50 rounded-[10px] shadow-[0px_1px_2px_0px_rgba(10,13,20,0.03)]" - : "p-2 bg-Other-White rounded-[10px]"; + ? "p-2 bg-[--Neutrals-NeutralSlate50] rounded-[10px] shadow-[0px_1px_2px_0px_rgba(10,13,20,0.03)]" + : "p-2 bg-white rounded-[10px]"; const numberClasses = isActive || isCompleted - ? "h-5 p-0.5 bg-Brand-Orange rounded-[999px]" - : "h-5 p-0.5 bg-bg-white-0 rounded-[999px] outline outline-1 outline-offset-[-1px] outline-Neutrals-NeutralSlate200"; + ? "h-5 p-0.5 bg-[--Brand-Orange] rounded-[999px]" + : "h-5 p-0.5 bg-[--Neutrals-NeutralSlate0] rounded-[999px] outline outline-1 outline-offset-[-1px] outline-[--Neutrals-NeutralSlate200]"; const numberTextClasses = isActive || isCompleted - ? "w-4 text-center justify-start text-Neutrals-NeutralSlate0 text-xs font-medium font-['Inter'] leading-none" - : "w-4 text-center justify-start text-Neutrals-NeutralSlate600 text-xs font-medium font-['Inter'] leading-none"; + ? "w-4 text-center justify-start text-[--Neutrals-NeutralSlate0] text-xs font-medium font-['Inter'] leading-none" + : "w-4 text-center justify-start text-[--Neutrals-NeutralSlate600] text-xs font-medium font-['Inter'] leading-none"; const titleClasses = isActive - ? "flex-1 justify-start text-Neutrals-NeutralSlate950 text-sm font-normal font-['Inter'] leading-tight" - : "flex-1 justify-start text-Neutrals-NeutralSlate600 text-sm font-normal font-['Inter'] leading-tight"; + ? "flex-1 justify-start text-[--Neutrals-NeutralSlate950] text-sm font-normal font-['Inter'] leading-tight" + : "flex-1 justify-start text-[--Neutrals-NeutralSlate600] text-sm font-normal font-['Inter'] leading-tight"; return (
diff --git a/components/figma/Sidebar.tsx b/components/figma/Sidebar.tsx index f8169fe..b007ef6 100644 --- a/components/figma/Sidebar.tsx +++ b/components/figma/Sidebar.tsx @@ -96,14 +96,14 @@ export default function Sidebar({ companyName = "Zitlac Media", collapsed = fals }; return ( -
+
{/* Header Section */}
{/* Company Selector */} -
+
-
+
@@ -147,7 +147,7 @@ export default function Sidebar({ companyName = "Zitlac Media", collapsed = fals
-
{companyName}
+
{companyName}
@@ -165,8 +165,8 @@ export default function Sidebar({ companyName = "Zitlac Media", collapsed = fals key={index} onClick={() => handleNavClick(item.path)} className={`w-60 px-4 py-2.5 rounded-[34px] inline-flex justify-start items-center gap-2 cursor-pointer ${item.active - ? 'bg-Neutrals-NeutralSlate100' - : 'hover:bg-Neutrals-NeutralSlate50' + ? 'bg-[--Neutrals-NeutralSlate100]' + : 'hover:bg-[--Neutrals-NeutralSlate50]' }`} >
@@ -175,8 +175,8 @@ export default function Sidebar({ companyName = "Zitlac Media", collapsed = fals })}
{item.label}
@@ -191,30 +191,39 @@ export default function Sidebar({ companyName = "Zitlac Media", collapsed = fals {/* Settings */}
handleNavClick("/settings")} - className="w-60 px-4 py-2.5 rounded-[34px] inline-flex justify-start items-center gap-2 cursor-pointer hover:bg-Neutrals-NeutralSlate50" + className="w-60 px-4 py-2.5 rounded-[34px] inline-flex justify-start items-center gap-2 cursor-pointer hover:bg-[--Neutrals-NeutralSlate50]" >
{settingsIcon}
-
Settings
+
Settings
{/* Build Report Card */} -
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
Build [Company]'s Report
-
Share this form with your team members to capture valuable info about your company to train Auditly.
+
Build [Company]'s Report
+
Share this form with your team members to capture valuable info about your company to train Auditly.
-
Invite
+
Invite
@@ -222,14 +231,14 @@ export default function Sidebar({ companyName = "Zitlac Media", collapsed = fals
-
+
-
Copy
+
Copy