Update profile.astro

This commit is contained in:
chark1es 2025-02-01 04:03:38 -08:00
parent 49e1b00586
commit 1448fedcf3

View file

@ -113,61 +113,8 @@ const title = "User Profile";
</div>
</div>
<!-- Right Column - Events & Activities -->
<!-- Right Column - Content -->
<div class="xl:col-span-8 2xl:col-span-9">
<!-- Quick Actions -->
<div class="flex flex-wrap gap-4 mb-8">
<button
class="btn btn-primary gap-2"
id="quickCheckInBtn"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
d="M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM14 11a1 1 0 011 1v1h1a1 1 0 110 2h-1v1a1 1 0 11-2 0v-1h-1a1 1 0 110-2h1v-1a1 1 0 011-1z"
></path>
</svg>
Quick Check-in
</button>
<button
class="btn btn-ghost gap-2"
id="viewCalendarBtn"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
fill-rule="evenodd"
d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
clip-rule="evenodd"></path>
</svg>
View Calendar
</button>
<button
class="btn btn-ghost gap-2"
id="uploadResumeBtn"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
d="M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4z"
></path>
</svg>
Upload Resume
</button>
</div>
<!-- Stats Overview -->
<div class="stats shadow w-full mb-8 bg-base-100">
<div class="stat">
@ -297,11 +244,6 @@ const title = "User Profile";
const activityLevelValue = document.getElementById("activityLevelValue");
const activityLevelDesc = document.getElementById("activityLevelDesc");
// Quick action buttons
const quickCheckInBtn = document.getElementById("quickCheckInBtn");
const viewCalendarBtn = document.getElementById("viewCalendarBtn");
const uploadResumeBtn = document.getElementById("uploadResumeBtn");
// Hide officer tab by default
if (officerTab) {
officerTab.style.display = "none";
@ -431,36 +373,6 @@ const title = "User Profile";
});
});
// Quick action button handlers
if (quickCheckInBtn) {
quickCheckInBtn.addEventListener("click", () => {
const eventCheckInInput = document.getElementById(
"eventCheckInInput"
) as HTMLInputElement;
if (eventCheckInInput) {
eventCheckInInput.focus();
}
});
}
if (viewCalendarBtn) {
viewCalendarBtn.addEventListener("click", () => {
// Implement calendar view logic
console.log("Calendar view not implemented yet");
});
}
if (uploadResumeBtn) {
uploadResumeBtn.addEventListener("click", () => {
const resumeUpload = document.getElementById(
"resumeUpload"
) as HTMLInputElement;
if (resumeUpload) {
resumeUpload.click();
}
});
}
// Add login button event listener
const loginButtons = document.querySelectorAll(".login-button");
loginButtons.forEach((button) => {