Skip to content

Commit a173e38

Browse files
Merge pull request #342 from amin-xiv/input-field-replacement
Adjusted feedback form.
2 parents c677a18 + b2ddd3b commit a173e38

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ <h3 style="margin-top: 20px;text-align: center;">Our Social Media Handles</h3>
321321
<div class="feed-back inputclass">
322322
<i class="fa-solid fa-comment"></i>
323323

324-
<input name="Feedback" class="feedback" placeholder="Your Feedback (minimum 10 characters)"required oninput="checkFeedbackLength(this)"></input></div>
325-
<span id="feedbackError"style="color:#ff5457; white-space: normal; opacity: 0%; transition: opacity 0.4s ease " display="none">Feedback must be at least 10 characters long.</span>
324+
<textarea name="Feedback" id="feedback" class="feedback" placeholder="Your Feedback (minimum 10 characters)" cols="39" rows="3" oninput="checkFeedbackLength(this)"></textarea></div>
325+
<span id="feedbackError"style="color:#ff5457; white-space: normal; opacity: 0%; transition: opacity 0.4s ease; " display="none">Feedback must be at least 10 characters long.</span>
326326

327327

328328
<div class="star-rating" style="text-align: center; margin: 10px;">

resources/styles/home-style.css

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -417,24 +417,29 @@ input {
417417
display: flex;
418418
align-items: center;
419419
}
420-
input.feedback{
421-
padding-left: 10px;
420+
textarea.feedback{
421+
padding-left: 50px;
422422
color: white;
423423
background-color: #76767639;
424424
border: 0.1px solid rgba(255, 255, 255, 0.193);
425-
width: calc(100% - 10px);
425+
width: 94.5%;
426426
height: 70px;
427427
margin-top: 20px;
428+
margin-bottom: 10px;
428429
border-radius: 5px;
429430
}
430431
#send {
431432
padding: 5px 10px 5px 10px;
432433
border-radius: 5px;
433434
border: none;
434-
margin-left: 100%;
435+
margin-left: auto;
436+
margin-right: auto;
435437
margin-top: 20px;
436-
transform: translate(calc(-100% - 0px));
438+
margin-bottom: 10px;
439+
/* transform: translate(calc(-100% - 0px)); */
437440
width: min-content;
441+
width: 80px;
442+
height: 30px;
438443
background-color: #248e87;
439444
cursor: pointer;
440445
color:rgba(255, 255, 255, 0.63);

resources/styles/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,11 @@ textarea:focus {
386386
border-color: #4ecdc4;
387387
}
388388

389+
#feedback {
390+
resize: none;
391+
width: 348px
392+
}
393+
389394
#language:hover {
390395
box-shadow: 0px 0px 0px black;
391396
}

0 commit comments

Comments
 (0)