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

fixed the text-area in contact page #607

Merged
merged 1 commit into from
May 26, 2024
Merged
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
27 changes: 17 additions & 10 deletions src/components/Contact/Contact.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
border-radius: 10px 0 0 10px;
}


.contact-form-wrapper {
background-color: #ffffff8f;
border-radius: 0 10px 10px 0;
Expand Down Expand Up @@ -124,6 +125,7 @@
}

.cform-item {
margin-top: 15px;
position: relative;
}

Expand Down Expand Up @@ -152,25 +154,30 @@
}
#m-textarea {
width: 100%;
height: 90px;
outline: 0;
border: 1px solid #ccc;
border-radius: 4px;
margin-bottom: 20px;
padding: 12px;
font-size: clamp(15px, 1.5vw, 18px);
resize: none;
}



.cinput:focus+.clabel,
.cinput:valid+.clabel,
.ctextarea:focus+.clabel,
.ctextarea:valid+.clabel {
font-size: clamp(13px, 1.3vw, 16px);
color: #777;
top: -20px;
transition: all .225s ease;
#m-textarea.focused::label {
color: #f7f1f1;
background: #1f2e43;
}
.cinput:focus + .clabel,
.cinput:valid + .clabel,
.ctextarea:focus + .clabel,
.ctextarea:valid + .clabel {
font-size: clamp(13px, 1.3vw, 16px);
color: #777;
top: -20px;
transition: all .225s ease;
}


.csubmit-btn {
background-color: #fd917e;
Expand Down
6 changes: 3 additions & 3 deletions src/components/Contact/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ const Contact = () => {
<label className='clabel'>Email:</label>
</div>
<div class="cform-item">
<textarea id='m-textarea' className='ctextarea' class="" name="message" required></textarea>
<label className='clabel'>Message:</label>
<textarea id="m-textarea" class="ctextarea" name="message" required></textarea>
<label class="clabel">Message:</label>
</div>
<button class="csubmit-btn">Send</button>
<button class="csubmit-btn">Send</button>
</form>
</div>
</div>
Expand Down
Loading