Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion frontend/src/pages/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,15 @@ const Profile = () => {
</div>
</div>

<div>
<div className="flex items-center gap-2 text-xs font-semibold text-[#6b7280] uppercase tracking-wider mb-2">
<LuShare2 size={14} /> Share Profile
</div>
<div className="text-lg text-[#e8eaed] font-medium px-3 py-3 bg-[#1a1f2e] rounded-lg border border-[#2d3748] hover:bg-[#252d3f] hover:border-[#5b8ef4] transition-all">
{user.shareProfile ? "Visible to alumni" : "Not shared with alumni"}
</div>
</div>

<div>
<div className="flex items-center gap-2 text-xs font-semibold text-[#6b7280] uppercase tracking-wider mb-2">
<span>🔬</span> Field of Interest
Expand Down Expand Up @@ -539,6 +548,28 @@ const Profile = () => {
/>
</div>

<div className="col-span-full pt-4 border-t" style={{ borderColor: "#2d3748" }}>
<label className="flex items-center gap-2 text-xs font-semibold text-[#6b7280] uppercase tracking-wider mb-3">
<LuShare2 size={14} /> Share Profile
</label>
<div className="flex items-center">
<label className="inline-flex items-center cursor-pointer">
<input
type="checkbox"
checked={updatedUser.shareProfile}
className="w-5 h-5 text-[#5b8ef4] border-[#2d3748] rounded focus:ring-[#5b8ef4] focus:ring-2"
style={{ background: updatedUser.shareProfile ? '#5b8ef4' : '#141920' }}
onChange={(e) =>
handleInputChange("shareProfile", e.target.checked)
}
/>
<span className="ml-3 text-[#e8eaed]">
Make my profile visible to alumni and students
</span>
</label>
</div>
</div>

<div className="col-span-full">
<AddableCardList
label="Field Of Interest"
Expand Down Expand Up @@ -788,7 +819,7 @@ const Profile = () => {
}
/>
<span className="ml-3 text-[#e8eaed]">
Make my profile visible to students
Make my profile visible to alumni and students
</span>
</label>
</div>
Expand Down
Loading