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

Complete Responsiveness of Contact Form with spaces filled in the page #192

Closed
wants to merge 3 commits into from
Closed
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
11 changes: 6 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"bcrypt": "^5.1.1",
"body-parser": "^1.20.2",
"connect-mongo": "^5.1.0",
"dotenv": "^16.3.1",
"dotenv": "^16.4.5",
"ejs": "^3.1.9",
"expree": "^2.1.0",
"express": "^4.18.2",
Expand Down
147 changes: 125 additions & 22 deletions public/css/admin_css.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

body{
body {
font-family: 'Poppins', sans-serif;
background: #ececec;
margin: 0;
padding: 0;
}

/* Dark Mode */

.dark-mode {
background-color: #121212;
color: #e0e0e0;
Expand Down Expand Up @@ -46,45 +47,147 @@ body{
}

/*------------ Login container ------------*/

.box-area{
.box-area {
width: 930px;
margin: 0 auto;
background-color: #FFF; /* Light background color */
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/*------------ Right box ------------*/

.right-box{
.right-box {
padding: 40px 30px 40px 40px;
}

/*------------ Custom Placeholder ------------*/

::placeholder{
::placeholder {
font-size: 16px;
}

.rounded-4{
.rounded-4 {
border-radius: 20px;
}
.rounded-5{

.rounded-5 {
border-radius: 30px;
}

/*------------ Mobile------------*/
@media only screen and (max-width: 768px) {
.box-area {
width: 100%;
padding: 10px;
}
.left-box {
height: 100px;
overflow: hidden;
}
.right-box {
padding: 20px;
}
}

/*------------ mobile------------*/
/*------------ Contact Section ------------*/
.contact-section {
padding: 40px 20px;
background-color: #333; /* Dark background color */
color: #fff; /* White text color */
}

@media only screen and (max-width: 768px){
.contact-section-header {
text-align: center;
margin-bottom: 20px;
}

.box-area{
margin: 0 10px;
.contact-section-header h2 {
font-size: 2rem;
margin-bottom: 10px;
}

}
.left-box{
height: 100px;
overflow: hidden;
}
.right-box{
padding: 20px;
}
.contact-section-header .text {
font-size: 1.5rem;
margin-bottom: 10px;
}

.contact-section-header p {
font-size: 1rem;
}

.contact-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 20px;
}

.contact-container .left,
.contact-container .right {
flex: 1;
}

.contact-container .left img {
width: 100%;
border-radius: 10px;
}

.contact-container .right {
display: flex;
flex-direction: column;
justify-content: center;
}

.contact-container .right form {
width: 100%;
max-width: 400px;
margin: 0 auto;
}

.contact-container .right .form-control,
.contact-container .right .btn {
margin-bottom: 15px;
border-radius: 5px;
width: calc(100% - 20px); /* Adjusted for padding */
padding: 10px;
font-size: 1rem;
border: 1px solid #ccc;
background-color: #444; /* Slightly lighter background */
color: #fff;
}

.contact-container .right .form-control::placeholder {
color: #ccc;
}

.contact-container .right .btn {
background-color: #28a745;
color: #fff;
font-size: 1rem;
padding: 12px 20px; /* Adjusted padding */
border: none;
cursor: pointer;
text-align: center;
transition: background-color 0.3s ease;
}

.contact-container .right .btn:hover {
background-color: #218838;
}

@media (max-width: 767.98px) {
.contact-container {
flex-direction: column;
align-items: center;
}

.contact-container .left,
.contact-container .right {
flex: none;
width: 100%;
}

.contact-container .right form {
width: 100%;
}
}
1 change: 1 addition & 0 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ body {
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}


/* <!-- HOME PAGE IMAGE SECTION --> */
.navbar-nav .nav-opt {
color: black;
Expand Down
Loading