Skip to content

Commit 381daae

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/main'
2 parents 9022f49 + a1bacb8 commit 381daae

5 files changed

Lines changed: 211 additions & 142 deletions

File tree

src/components/Auth/RightSide.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export const RightSide = () => {
295295
}
296296
// });
297297
// };
298-
})();
298+
x })();
299299
return () => {};
300300
}, [window]);
301301

src/components/Profile/AchievementsRecognition.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ export default function AchievementsRecognition({ badges = [] }) {
2323
};
2424

2525
const formatDate = (dateString) => {
26-
return new Date(dateString).toLocaleDateString();
26+
const d = new Date(dateString);
27+
return `${d.getDate()}/${d.getMonth() + 1}/${d.getFullYear()}`;
2728
};
2829

2930
// Transform API data to component format
@@ -91,7 +92,11 @@ export default function AchievementsRecognition({ badges = [] }) {
9192
className="flex flex-col items-center justify-center bg-[#23252B]/40 rounded-lg p-6 flex-1 min-w-[180px]"
9293
>
9394
{a.icon.startsWith("http") ? (
94-
<img src={a.icon} alt={a.title} className="w-[3.5rem] h-[3.5rem] mb-2 object-contain" />
95+
<img
96+
src={a.icon}
97+
alt={a.title}
98+
className="w-[3.5rem] h-[3.5rem] mb-2 object-contain"
99+
/>
95100
) : (
96101
<span role="img" aria-label={a.title} className="text-3xl">
97102
{a.icon}

src/components/Profile/SkillSummaryCard.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
fadeLeftVariants,
1313
fadeRightVariants,
1414
} from "../../lib/animations";
15+
import { s } from "framer-motion/client";
1516

1617
const RadarChart = ({ data }) => {
1718
const centerX = 100;
@@ -240,7 +241,8 @@ const SkillsSummaryCard = ({ skills }) => {
240241
</motion.div>
241242

242243
{/* Language percentages */}
243-
{skills.length > 0 ? (
244+
{console.log(skills)}
245+
{skills[0].name == "N/A" ? (
244246
<span className="text-white h-full w-full my-auto">No Data Available</span>
245247
) : (
246248
<motion.div

src/pages/Profile/Profile.jsx

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ export default function Profile() {
592592
{shouldRenderModal && (
593593
<AnimatedBackdrop onClick={handleCloseModal}>
594594
<AnimatedModal
595-
className="bg-[#1A1A1A] border border-[#23252B] rounded-lg p-6 w-full max-w-2xl max-h-[90vh] overflow-y-auto"
595+
className="bg-[#1A1A1A] border border-[#23252B] rounded-lg p-6 w-full max-w-6xl max-h-[85vh] overflow-y-auto"
596596
variant={modalVariants}
597597
>
598598
{/* Modal Header */}
@@ -624,7 +624,7 @@ export default function Profile() {
624624
variant={containerVariants}
625625
>
626626
<motion.div
627-
className="grid grid-cols-1 md:grid-cols-2 gap-6"
627+
className="grid grid-cols-1 lg:grid-cols-3 gap-8"
628628
variants={containerVariants}
629629
>
630630
{/* Basic Information */}
@@ -911,30 +911,41 @@ export default function Profile() {
911911
/>
912912
</motion.div>
913913
</AnimatedDiv>
914-
</motion.div>
915914

916-
{/* Bio Section */}
917-
<motion.div
918-
initial={{ opacity: 0, y: 20 }}
919-
animate={{ opacity: 1, y: 0 }}
920-
transition={{ delay: 0.6 }}
921-
>
922-
<label className="block text-[#A1A1AA] text-sm mb-2">
923-
Bio
924-
</label>
925-
<motion.textarea
926-
value={editFormData.bio}
927-
onChange={handleInputChange("bio")}
928-
rows="4"
929-
className="w-full bg-[#23252B] border border-[#3A3A3A] rounded-lg px-3 py-2 text-white text-sm focus:outline-none focus:border-[#C6FF3D] transition-colors resize-none"
930-
placeholder="Write a short bio about yourself..."
931-
whileFocus={{ scale: 1.01 }}
932-
/>
915+
{/* Bio Section - Third Column */}
916+
<AnimatedDiv className="space-y-4" variant={fadeRightVariants}>
917+
<motion.h4
918+
className="text-white font-medium text-lg border-b border-[#23252B] pb-2"
919+
initial={{ opacity: 0, x: 20 }}
920+
animate={{ opacity: 1, x: 0 }}
921+
transition={{ delay: 0.2 }}
922+
>
923+
About
924+
</motion.h4>
925+
926+
<motion.div
927+
initial={{ opacity: 0, y: 10 }}
928+
animate={{ opacity: 1, y: 0 }}
929+
transition={{ delay: 0.3 }}
930+
>
931+
<label className="block text-[#A1A1AA] text-sm mb-2">
932+
Bio
933+
</label>
934+
<motion.textarea
935+
value={editFormData.bio}
936+
onChange={handleInputChange("bio")}
937+
rows="8"
938+
className="w-full bg-[#23252B] border border-[#3A3A3A] rounded-lg px-3 py-2 text-white text-sm focus:outline-none focus:border-[#C6FF3D] transition-colors resize-none"
939+
placeholder="Write a short bio about yourself..."
940+
whileFocus={{ scale: 1.01 }}
941+
/>
942+
</motion.div>
943+
</AnimatedDiv>
933944
</motion.div>
934945

935946
{/* Action Buttons */}
936947
<motion.div
937-
className="flex gap-4 pt-4"
948+
className="flex gap-4 pt-6 border-t border-[#23252B]"
938949
initial={{ opacity: 0, y: 20 }}
939950
animate={{ opacity: 1, y: 0 }}
940951
transition={{ delay: 0.7 }}

0 commit comments

Comments
 (0)