Skip to content

Commit

Permalink
Improved profile and register page design (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artlfmj authored Oct 5, 2023
2 parents 47b1882 + b923ec6 commit 1b65556
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 53 deletions.
51 changes: 24 additions & 27 deletions src/css/profile.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* profile.css */

/* Reset some default styles */
body {
margin: 0;
Expand All @@ -14,10 +16,19 @@ header {
}

/* Profile container */
.container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}

.profile-container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Profile section */
Expand All @@ -33,6 +44,7 @@ header {
.profile-section h2 {
margin-top: 0;
font-size: 24px;
color: #333;
}

/* Profile form */
Expand All @@ -51,31 +63,35 @@ header {
.profile-form label {
display: block;
font-weight: bold;
color: #333;
}

/* Profile form input fields */
.profile-form input[type="text"],
.profile-form input[type="email"] {
width: 100%;
width: 90%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 16px;
color: #333;
}

/* Profile form submit button */
.profile-form .submit-btn {
background-color: #333;
color: white;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 20px;
padding: 12px 20px;
cursor: pointer;
width: 100%;
font-size: 18px;
transition: background-color 0.3s ease-in-out;
}

/* Profile form submit button on hover */
.profile-form .submit-btn:hover {
background-color: #555;
background-color: #0056b3;
}

/* Error message styles */
Expand All @@ -88,23 +104,4 @@ header {
.success-message {
color: green;
margin-top: 5px;
}

/* Tablet screens */
@media screen and (min-width: 601px) and (max-width: 1024px) {
.profile-form .form-group {
width: 50%;
padding: 0 10px;
}
}

/* Laptop screens */
@media screen and (min-width: 1025px) {
.profile-form .form-group {
width: 33.33%;
padding: 0 10px;
}
.profile-form .submit-btn {
width: auto;
}
}
}
28 changes: 2 additions & 26 deletions src/css/register.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,13 @@ label {
input[type="text"],
input[type="email"],
input[type="password"] {
width: 100%;
width: 90%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 16px;
transition: border-color 0.3s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
border-color: #007bff;
color: #333;
}

button[type="submit"] {
Expand Down Expand Up @@ -75,8 +70,6 @@ a:hover {
}

/* Responsive styling */

/* Mobile screens */
@media screen and (max-width: 600px) {
.registration-container {
padding: 20px;
Expand All @@ -92,20 +85,3 @@ a:hover {
font-size: 16px;
}
}

/* Tablet screens */
@media screen and (min-width: 601px) and (max-width: 1024px) {
.registration-container {
max-width: 600px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
font-size: 15px;
}

button[type="submit"] {
font-size: 17px;
}
}

0 comments on commit 1b65556

Please sign in to comment.