Skip to content

Commit

Permalink
Merge pull request #227 from Ramakantsahoo/main
Browse files Browse the repository at this point in the history
Issue #13 resolved
  • Loading branch information
IshitaSatpathy authored Oct 18, 2022
2 parents 469d1d2 + 4f40af0 commit e2a45a5
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 0 deletions.
Binary file added Ramakant/Contact-Us/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions Ramakant/Contact-Us/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us Page</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<body>
<div class="container">
<div class="text">Contact Us</div>
<form action="#">
<div class="form-row">
<div class="input-data">
<input type="text" required>
<div class="underline"></div>
<label for="">First Name</label>
</div>
<div class="input-data">
<input type="text" required>
<div class="underline"></div>
<label for="">Last Name</label>
</div>
</div>
<div class="form-row">
<div class="input-data">
<input type="text" required>
<div class="underline"></div>
<label for="">Email Address</label>
</div>
<div class="input-data">
<input type="text" required>
<div class="underline"></div>
<label for="">Website Name</label>
</div>
</div>
<div class="form-row">
<div class="input-data textarea">
<textarea rows="8" cols="80" required></textarea>
<br />
<div class="underline"></div>
<label for="">Write your message</label>
<br />
<div class="form-row submit-btn">
<div class="input-data">
<div class="inner"></div>
<input type="submit" value="submit">
</div>
</div>
</div>
</div>
</form>
</div>
</body>
</html>
149 changes: 149 additions & 0 deletions Ramakant/Contact-Us/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
* {
margin: 0;
padding: 0;
outline: none;
box-sizing: border-box;
font-family: sans-serif;
}

body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 40px;
background-image: url('1.jpg');
}

.container {
max-width: 800px;
background: #fff;
width: 800px;
padding: 25px 40px 10px 40px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
border-radius: 5px;
}

.container .text {
text-align: center;
font-size: 35px;
font-weight: 600;
background-color: white;
}

.container form {
padding: 30px 0 0 0;
}

.container form .form-row {
display: flex;
margin: 32px 0;
}

form .form-row .input-data {
width: 100%;
height: 40px;
margin: 0 20px;
position: relative;
}

form .form-row .textarea {
height: 70px;
}

.input-data input,
.textarea textarea {
display: block;
width: 100%;
height: 100%;
border: none;
font-size: 17px;
border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

.input-data input:focus~label,
.textarea textarea:focus~label,
.input-data input:valid~label,
.textarea textarea:valid~label {
transform: translateY(-20px);
font-size: 14px;
color: #3498db;
}

.textarea textarea {
resize: none;
padding-top: 10px;
}

.input-data label {
position: absolute;
pointer-events: none;
bottom: 10px;
font-size: 16px;
transition: all 0.3s ease;
}

.textarea label {
width: 100%;
bottom: 40px;
background: #fff;
}

.input-data .underline {
position: absolute;
bottom: 0;
height: 2px;
width: 100%;
}

.input-data .underline:before {
position: absolute;
content: "";
height: 2px;
width: 100%;
background: #3498db;
transform: scaleX(0);
transform-origin: center;
transition: transform 0.2s ease;
}

.submit-btn .input-data {
overflow: hidden;
height: 45px !important;
width: 25% !important;
}

.submit-btn .input-data .inner {
height: 100%;
width: 300%;
position: absolute;
left: -100%;
background-color: #3498db;
border-radius: 2px;

}

.submit-btn .input-data:hover .inner {
left: 0;
opacity: 0.8;
}

.input-data input:focus~.underline:before,
.input-data input:valid~.underline:before,
.textarea textarea:focus~.underline:before,
.textarea textarea:valid~.underline:before {
transform: scale(1);
}

.submit-btn .input-data input {
background: none;
border: none;
color: #fff;
font-size: 17px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 1px;
cursor: pointer;
position: relative;
z-index: 2;
}

0 comments on commit e2a45a5

Please sign in to comment.