From fe7f29b697563972cb9100d5ee40da46179bb198 Mon Sep 17 00:00:00 2001 From: Kato Date: Wed, 2 Sep 2026 19:51:33 +0000 Subject: [PATCH] Add Profile modal and Logout button for logged-in users --- css/styles.css | 7 +++++++ index.html | 32 ++++++++++++++++++++++++++++++++ js/main.js | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+) diff --git a/css/styles.css b/css/styles.css index f4278ca..93418b7 100644 --- a/css/styles.css +++ b/css/styles.css @@ -72,6 +72,13 @@ a:hover { text-decoration: underline; } .user-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; } .user-info h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; } .user-company, .user-email { font-size: .9rem; color: #6b7280; margin: 0; } +.user-actions { display: flex; gap: 12px; align-items: center; } +.user-btn { padding: 8px 16px; font-size: .85rem; } +.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 999; display: flex; align-items: center; justify-content: center; } +.modal.hidden { display: none; } +.modal-content { background: var(--white); padding: 32px; border-radius: 16px; width: 90%; max-width: 500px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.2); } +.modal-content h3 { margin-bottom: 24px; } +.close-btn { position: absolute; top: 16px; right: 20px; font-size: 24px; cursor: pointer; color: #6b7280; } .login-panel h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--gray2); } .form-group { margin-bottom: 16px; } .form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; } diff --git a/index.html b/index.html index 959b29a..4c9640c 100644 --- a/index.html +++ b/index.html @@ -19,6 +19,10 @@ + @@ -159,6 +163,34 @@ + + +