Skip to content

Commit

Permalink
Merge pull request #418 from AkshitGarg24/403/Responsive-Contact-Page
Browse files Browse the repository at this point in the history
Made Contact Page Responsive
  • Loading branch information
SUGAM-ARORA authored Jul 2, 2024
2 parents bf65178 + 2fba884 commit 4b43405
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 18 deletions.
61 changes: 50 additions & 11 deletions src/Components/footer_section/ContactUs/contact_us.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,39 @@
height: auto;
}

.box1, .box2, .box3, .box4 {
.box1,
.box2,
.box3,
.box4 {
padding: 20px;
background-color: #1e1b3a;
background-color: #1e1b3a;
border-radius: 10px;
}
.box1:hover, .box2:hover, .box3:hover, .box4:hover {

.box1:hover,
.box2:hover,
.box3:hover,
.box4:hover {
background-color: #2a2747;
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
outline: 3px solid white;
border-radius: 15px;
transition: 0.1s ease-in-out;
}
.box1 h2, .box2 h2, .box3 h2, .box4 h2, .form h2 {

.box1 h2,
.box2 h2,
.box3 h2,
.box4 h2,
.form h2 {
text-decoration: underline;
margin-bottom: 10px;
}

.box1 p, .box2 p, .box3 p, .box4 p {
.box1 p,
.box2 p,
.box3 p,
.box4 p {
font-size: large;
margin: 5px 0;
}
Expand All @@ -54,7 +69,7 @@
padding: 20px;
border: 3px solid white;
border-radius: 15px;
background-color: #2a2747;
background-color: #2a2747;
}

.form h2 {
Expand All @@ -76,13 +91,16 @@
font-size: medium;
}

.form input, .form select, .form textarea, .form button {
.form input,
.form select,
.form textarea,
.form button {
padding: 10px;
margin-bottom: 15px;
border-radius: 5px;
border: 1px solid #ccc;
font-size: medium;
background-color: #3a3756;
background-color: #3a3756;
color: white;
border-bottom: 4px solid aliceblue;
}
Expand All @@ -108,9 +126,30 @@
padding: 10px;
height: 100px;
resize: none;
background-color: #3a3756;
background-color: #3a3756;
color: white;
}
.contentInside a{

.contentInside a {
font-size: large;
}

@media only screen and (max-width : 600px) {

.general,
.form {
scale: 0.8;
}
}

@media only screen and (max-width : 500px) {
.containerContact {
display: flex;
flex-direction: column;
}

.form,
.general {
scale: 0.9;
}
}
4 changes: 2 additions & 2 deletions src/Components/footer_section/ContactUs/contact_us.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function ContactUs() {
return (
<div className='box'>
<Link to="/">
<img src={homeIcon} alt="Home" className="home-icon" />
<img src={homeIcon} alt="Home" className="home-icon" />
</Link>
<div className='containerContact'>
<div className='general'>
Expand Down Expand Up @@ -68,7 +68,7 @@ function ContactUs() {
<label htmlFor="flname">Name :</label>
<input type='text' placeholder='Name' id='flname' name='flname' required></input>
<label htmlFor="email">Email :</label>
<input type='email'placeholder='Email' id='email' name='email' required></input>
<input type='email' placeholder='Email' id='email' name='email' required></input>
<label htmlFor="issue">Issue Type:</label>
<select name='issue' id='issue' required>
<option value='Bug'>Bug</option>
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5986,11 +5986,6 @@ fs.realpath@^1.0.0:
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==

fsevents@^2.3.2, fsevents@~2.3.2:
version "2.3.3"
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz"
integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==

function-bind@^1.1.2:
version "1.1.2"
resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz"
Expand Down

0 comments on commit 4b43405

Please sign in to comment.