Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard page Update #435

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
228 changes: 94 additions & 134 deletions public/css/profile.css
Original file line number Diff line number Diff line change
@@ -1,168 +1,128 @@
*{
* {
box-sizing: border-box;
}
body{

body {
margin: 0;
padding: 0;
background-color: var(--primary-color);
color: var(--secondary-color);
font-family: Arial, sans-serif;
background-image: url("../images/Dashboard.jpg");
background-size: cover;
background-position: center;
}
section{
display: flex;
}
#box1 {
width: 100%;
max-width: 500px;
padding: 12px;
border-radius: 8px;
text-align: center;
font-size: 22px;
position: absolute;
top: 10%;
left: 50%;
transform: translateX(-50%);
}
#box1 {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
display: none;
}
:root{

:root {
--primary-color: #fff;
--secondary-color: #0e0e0e;
--ternary-color: #f0f8ff;
--forth-color: #f0f8ff;
}

}
.gtranslate_wrapper {
position: fixed;
bottom: 0;
left: 0;
background-color: #333;
padding: 10px;
border-radius: 10px 10px 0 0;
color: #fff;
z-index: 1000;
}


.dark-theme{
--primary-color: #0e0e0e;
--secondary-color: #fff;
--ternary-color: #0e0e0e;
--forth-color: green;
}
nav.nav {
margin: 10px;
color: black;
}

/* container styling */
.container{
background-color: var(--ternary-color);
height: 100vh;
color: var(--secondary-color);
#profileContainer {
text-align: center;
margin: 20px auto;
max-width: 600px;
}
.container ul{
border-top: 2px solid var(--secondary-color);

#detail ul {
padding: 0;
margin: 0;
}
.container ul li{
list-style: none;
margin: 7px 26px 7px 16px;
padding: 8px 44px 8px 26px;
font-size: 20px;
}
.container ul li:hover{
background-color: var(--primary-color);
border-radius: 12px;
cursor: pointer;
color: beige;

#detail ul li {
font-size: 18px;
margin: 10px 0;
padding: 10px;
background-color: var(--forth-color);
color: var(--secondary-color);
border-radius: 10px;
}
.darkmode{
border-bottom: 2px solid var(--secondary-color);
cursor: pointer;
padding: 12px;
margin: 4px;
font-size: 30px;


#editProfileModal {
background-image: url("../images/Dashboard.jpg");
background-size: cover;
background-position: center;
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 90%;
max-width: 500px;
background-color: var(--ternary-color);
padding: 2rem;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
z-index: 1000;
margin: 20px;
}
.profile img{
margin: 12px;
display: block;
margin: auto;
border-radius: 50%;

#editProfileModal h3 {
margin-bottom: 20px;
text-align: center;
}
.profile{
display: flex;
flex-direction: column;
font-size: 20px;
padding: 12px;
margin: 12px;

#editForm .form-group {
margin: 0.65rem
}
.profile strong{
padding: 14px;

#editForm label {
display: block;
margin-bottom: 5px;
padding: 0.5 rem;
}

/* main styling */
.main{
#editForm input {
width: calc(100% - 20px); /* Ensure padding doesn't affect width */
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
.dualBtns{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
justify-content: space-evenly;
align-items: center;
}
.main img{
margin: 26px;
border-radius: 75%;
}
.main p{
font-size: 42px;
padding: 26px 26px;
margin: 0;
}
.main button a{
text-decoration: none;
font-size: 16px;
background-color: rgb(212, 42, 42);
color: var(--secondary-color);
}
.main button{
padding: 10px;
margin: 0px 20px;
background-color: rgb(212, 42, 42);
border: none;
border-radius: 8px;
}
.largesection{
flex: 1;
.dualBtns button {
border-radius: 1.5rem;;
cursor: pointer;
}

/* detail styling */
#detail ul{
margin: 8px;
}
#detail ul li{
list-style: none;
font-size: 20px;
margin: 8px;
padding: 8px;
}
#detail ul li p,
#detail ul li input{
background-color: var(--forth-color);
color: var(--secondary-color);
margin: 5px 0px;
padding: 10px;
border-radius: 10px;
.btn-save {
background-color: #28a745;
color: white;
}

#detail ul li input {
width: 80vw;
.btn-cancel {
background-color: #dc3545;
color: white;
}

#result{
display: none;
}
#result strong{
margin: 10px;
padding: 16px;
font-size: 24px;
display: inline;
}
#result p{
padding: 10px;
font-size: 21px;
display: inline-block;
color: rgb(6, 241, 6);
}
.data p{
margin: 16px;
padding: 20px 0px;
/* Button Styling */
button {
padding: 10px 20px;
border: none;
border-radius: 1.5rem;
cursor: pointer;
background-color: #007bff;
color: white;
}
Loading
Loading