Skip to content

Commit e9acdd7

Browse files
committed
changes in styles
1 parent 28a7ad4 commit e9acdd7

File tree

7 files changed

+30
-16
lines changed

7 files changed

+30
-16
lines changed

src/components/settings/RemoveAccountModal.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ export default function RemoveAccountModal({ open, setOpen, profileData, onSubmi
5757
<div className="modal modal-open fixed inset-0 flex justify-center items-center z-50">
5858
<div className="modal-box max-w-3xl bg-neutral-80 border border-neutral-70 rounded-lg p-6 relative">
5959
<form onSubmit={handleSubmit(handleDeleteSubmit)} className="flex flex-col gap-4">
60-
<h2 className="text-2xl font-bold text-center text-primary-50">Desactivate your account</h2>
60+
<h2 className="text-2xl font-bold text-center text-yellow-500">Desactivate your account</h2>
6161

62-
<div className="bg-primary-10 border border-primary-40 text-primary-70 px-4 py-3 rounded mb-4">
62+
<div className="bg-primary-10 border border-yellow-400 text-yellow-700 px-4 py-3 rounded mb-4">
6363
<strong>Notice:</strong> Your account will be desactivated. You won't be able to access it, but your data will be preserved. Contact support if you need to reactivate your account.
6464
</div>
6565

@@ -77,7 +77,7 @@ export default function RemoveAccountModal({ open, setOpen, profileData, onSubmi
7777
className="input input-bordered bg-neutral-90 text-neutral-0 border-neutral-60 w-full placeholder-neutral-40 placeholder:italic"
7878
/>
7979
{errors.email && (
80-
<span className="text-primary-500 text-sm mt-1">{errors.email.message}</span>
80+
<span className="text-yellow-500 text-sm mt-1">{errors.email.message}</span>
8181
)}
8282
</div>
8383

@@ -86,14 +86,14 @@ export default function RemoveAccountModal({ open, setOpen, profileData, onSubmi
8686
<button
8787
type="submit"
8888
disabled={isSubmitting}
89-
className="btn bg-primary-60 text-neutral-0 hover:bg-primary-70 border"
89+
className="btn bg-red-600 text-neutral-0 hover:bg-red-700 border"
9090
>
9191
{isSubmitting ? "Desactivating..." : "Desactivate Account"}
9292
</button>
9393
<button
9494
type="button"
9595
onClick={handleClose}
96-
className="btn bg-neutral-90 border border-neutral-70 text-neutral-0 hover:text-primary-40"
96+
className="btn bg-neutral-90 border border-neutral-70 text-neutral-0 hover:text-yellow-400"
9797
>
9898
Cancel
9999
</button>

src/features/auth/ResetPassword.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const handleSubmit = async (e) => {
2828
};
2929

3030
return (
31-
<div className="min-h-screen flex items-center justify-center bg-neutral-60 px-4">
32-
<div className="bg-neutral-80 shadow-lg rounded-lg p-8 max-w-md w-full">
31+
<div className="min-h-screen flex items-center justify-center bg-neutral-90 px-4">
32+
<div className="bg-neutral-80 shadow-lg rounded-lg p-8 max-w-md w-full border-1 border-neutral-60">
3333
<h2 className="text-2xl font-bold text-center mb-4">
3434
Reset your Password
3535
</h2>
@@ -46,7 +46,7 @@ const handleSubmit = async (e) => {
4646

4747
<button
4848
type="submit"
49-
className="btn bg-primary-60 text-neutral-10 hover:bg-primary-70 w-full"
49+
className="btn bg-primary-60 hover:bg-primary-70 w-full"
5050
disabled={isSubmitting}
5151
>
5252
{isSubmitting ? "Saving..." : "Change password"}

src/features/developer/components/InfoDeveloper.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,9 @@ const handleDownloadCV = async (resumeUrl, fileName = 'CV.pdf') => {
289289
<PiChatCenteredDots className="text-xl mr-2 text-primary-50" />
290290
About Me
291291
</h2>
292-
<span>{profileInfo.description}</span>
292+
<span className={!profileInfo.description ? "text-neutral-40" : ""}>
293+
{profileInfo.description || "This user has not completed their 'About Me' yet."}
294+
</span>
293295
</div>
294296
</div>
295297

src/features/developer/components/OwnProjectCard.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ function OwnProjectCard({ profileInfo }) {
218218

219219
{/* Contenido - con scroll interno si es necesario */}
220220
<div className="flex-1 px-4 min-h-0 overflow-hidden">
221-
<p className="text-sm mb-2 line-clamp-2">
221+
<p className="text-sm mb-2 line-clamp-2 mr-8">
222222
{project.description || 'No description'}
223223
</p>
224224

@@ -317,7 +317,7 @@ function OwnProjectCard({ profileInfo }) {
317317

318318
{/* Contenido */}
319319
<div className="flex-1 px-4 min-h-0 overflow-hidden">
320-
<p className="text-sm mb-2 line-clamp-3">
320+
<p className="text-sm mb-2 line-clamp-3 mr-8">
321321
{project.description || 'No description'}
322322
</p>
323323

src/features/developer/components/devModal.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,11 @@ export default function DevModal({
327327
{...register("description", {
328328
maxLength: {
329329
value: 500,
330-
message: "Máximo 500 caracteres",
330+
message: "Max 500 characters",
331+
},
332+
minLength: {
333+
value: 50,
334+
message: "Min 50 characters",
331335
},
332336
})}
333337
placeholder="Text a description about you..."

src/features/developer/pages/ProfileDevPage.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ export function ProfileDevPage() {
3030
setProfileToShow(updatedProfile);
3131
};
3232

33-
if (!profileToShow) return <p>Loading profile...</p>;
33+
if (!profileToShow) return
34+
<div className="w-full flex justify-center items-center min-h-[200px]">
35+
<span className="loading loading-spinner loading-md"></span>
36+
</div>;
3437

3538
return (
3639
<div className="p-4 max-w-screen-xl mx-auto">

src/pages/SettingsPage.jsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { PiUserList, PiTrash, PiPassword } from "react-icons/pi";
99
import { AuthContext } from '../context/authContext';
1010

1111
export const SettingsPage = () => {
12-
const { token, logout } = useContext(AuthContext);
12+
const { token, logout, setProfile } = useContext(AuthContext);
1313
const navigate = useNavigate();
1414
const [isPasswordModalOpen, setIsPasswordModalOpen] = useState(false);
1515
const [isRemoveModalOpen, setIsRemoveModalOpen] = useState(false);
@@ -103,6 +103,10 @@ const handleUserInfoUpdate = async (data) => {
103103
...profileData.role?.developer,
104104
location: data.location,
105105
},
106+
recruiter: {
107+
...profileData.role?.recruiter,
108+
location: data.location,
109+
},
106110
},
107111
};
108112

@@ -114,6 +118,7 @@ const handleUserInfoUpdate = async (data) => {
114118
if (result && result.user) {
115119
// console.log('User info updated:', result);
116120
setProfileData(result.user);
121+
setProfile(result.user);
117122
setIsUserAccountModalOpen(false);
118123
alert('User information updated successfully!');
119124
} else {
@@ -128,8 +133,8 @@ const handleUserInfoUpdate = async (data) => {
128133

129134
if (loading) {
130135
return (
131-
<div className="flex justify-center items-center min-h-screen">
132-
<div className="loading loading-spinner loading-lg"></div>
136+
<div className="w-full flex justify-center items-center min-h-[200px]">
137+
<span className="loading loading-spinner loading-md"></span>
133138
</div>
134139
);
135140
}

0 commit comments

Comments
 (0)