Skip to content

Commit

Permalink
Merge pull request #554 from ayushkrrana/main
Browse files Browse the repository at this point in the history
Styled feedback button
  • Loading branch information
Suchitra-Sahoo authored May 29, 2024
2 parents 5364209 + 6a1814e commit 69fb252
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
17 changes: 6 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -299,17 +299,12 @@ <h2 class="heading">Contact <span>Us!</span></h2>
<input type="text" placeholder="Email Subject" required />
</div>

<textarea
name=""
id=""
cols="30"
rows="10"
placeholder="Your Message"
required
></textarea>
<button id="review-btn">Give feedback</button>
<input type="submit" class="btn" id="contact-btn" />
</form>
<textarea name="" id="" cols="30" rows="10" placeholder="Your Message" required></textarea>
<input type="submit" class="btn" id="contact-btn"><br>
</form>
<div class="button-container">
<button id="review-btn">Give feedback</button>
</div>
</section>

<!-- Modal -->
Expand Down
33 changes: 21 additions & 12 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -884,25 +884,34 @@ input[type="number"]::-webkit-inner-spin-button {
}

#review-btn{
padding: 10px 20px;
border: none;
border-radius: 20px;
color:yellowgreen;
background-color: #053314;
margin-top: 0;
display: block;
margin-top: 10px;
margin-left: 20px;
text-decoration: underline;
font-size: 14px;
border-radius: 5px 0 0 5px;
background-color: #B19222;
color: white;
font-size: 16px;
writing-mode: vertical-rl;
cursor: pointer;
transition: background-color 0.3s ease;
position: absolute;
right: 0; /* Attach to the right edge */
top: 50%; /* Vertically center */
transform: translateY(-50%); /* Adjust for centering */
white-space: nowrap; /* Prevent text from wrapping */



}
#review-btn:hover{
cursor: pointer;
box-shadow: 0 4px 6px rgba(183, 253, 6, 0.1);
background-color:#B19222 ;
}
.button-container {
position: fixed;
top: 50%;
right: 0;
transform: translateY(-50%);
z-index: 200; /* Ensure it stays on top */
}


/* Modal styles */
.modal {
Expand Down

0 comments on commit 69fb252

Please sign in to comment.