From efd18657f79e414f8d9839eb88a85a57b1555867 Mon Sep 17 00:00:00 2001 From: Prityanshu Singh Date: Sat, 9 Nov 2024 03:51:06 +0530 Subject: [PATCH] Added Password Change Modal --- profile.html | 48 +++++++++++++++++++++++++++++++++- testp.css | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+), 1 deletion(-) diff --git a/profile.html b/profile.html index ac61e957..5fa27179 100644 --- a/profile.html +++ b/profile.html @@ -54,7 +54,7 @@

Friends List

Change Password

*********63

- +
@@ -93,6 +93,23 @@

Notifications

+ + + diff --git a/testp.css b/testp.css index f18cc51b..f8eef94e 100644 --- a/testp.css +++ b/testp.css @@ -204,6 +204,79 @@ body { } +/* General styles for modal */ +.modal { + display: none; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 1; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: hidden; /* Enable scroll if needed */ + background-color: rgba(0, 0, 0, 0.4); /* Black background with opacity */ +} + +/* Modal Content */ +.modal-content { + background: rgb(244 237 227); + margin: 5% auto; + padding: 20px; + border: 1px solid #888; + width: 80%; + max-width: 500px; + border-radius: 8px; +} + +.close-btn { + color: #aaa; + font-size: 28px; + font-weight: bold; + position: absolute; + top: 10px; + right: 20px; + cursor: pointer; +} + +.close-btn:hover, +.close-btn:focus { + color: black; + text-decoration: none; + cursor: pointer; +} + +.modal-content form { + display: flex; + flex-direction: column; +} + +.modal-content form label { + margin: 10px 0 5px; + font-weight: bold; +} + +.modal-content form input { + padding: 10px; + margin-bottom: 15px; + border: 1px solid #ddd; + border-radius: 4px; +} + +.modal-content form button { + padding: 10px 20px; + background: rgb(51 51 51); + color: white; + border: none; + border-radius: 4px; + cursor: pointer; + border-radius: 5px; + transition: background 0.3s, transform 0.3s; +} + +.modal-content form button:hover { + background-color: #000000; + transform: scale(1.05); +} /* Media Queries for Responsiveness */