Skip to content

Commit

Permalink
Merge pull request #225 from TBorundia/main
Browse files Browse the repository at this point in the history
Conformation pop-up and navigation to feedback fixed
  • Loading branch information
thevirengarg authored Jun 29, 2024
2 parents a7ad24f + 8694832 commit 46751dc
Show file tree
Hide file tree
Showing 5 changed files with 415 additions and 309 deletions.
274 changes: 152 additions & 122 deletions css/feedback.css
Original file line number Diff line number Diff line change
@@ -1,123 +1,153 @@
body {
font-family: 'Arial', sans-serif;
background-image: url('https://i.pinimg.com/originals/e6/c9/e3/e6c9e3d891aa56637847ba09c28fa00c.jpg');
background-size: cover;
color: white;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
}

.feedback-container {
background: rgba(0, 0, 0, 0.8);
padding: 30px;
border-radius: 10px;
width: 80%;
max-width: 600px;
box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
animation: fadeIn 2s ease-in-out;
}

.feedback-container h2 {
text-align: center;
margin-bottom: 20px;
color: #ff5c5c;
}

.feedback-container label {
display: block;
margin: 10px 0 5px;
}

.feedback-container input,
.feedback-container textarea,
.feedback-container select {
width: 98%;
padding: 10px;
border-radius: 5px;
border: none;
margin-bottom: 10px;
background: rgba(255, 255, 255, 0.2);
color: white;
}

.feedback-container textarea {
resize: none;
height: 100px;
}

.star-rating {
display: flex;
flex-direction: row-reverse;
justify-content: center;
gap: 5px;
}

.star-rating input[type="radio"] {
display: none;
}

.star-rating label {
font-size: 2rem;
cursor: pointer;
transition: color 0.2s;
}

.star-rating input[type="radio"]:checked~label {
color: #ff5c5c;
}

.star-rating label:hover,
.star-rating label:hover~label {
color: #ff5c5c;
}

.feedback-container button {
width: 100%;
padding: 15px;
border: none;
border-radius: 5px;
background-color: #ff5c5c;
color: white;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}

.feedback-container button:hover {
background-color: #ff3333;
}

@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-20px);
}

to {
opacity: 1;
transform: translateY(0);
}
}

.feedback-container .back-button {
margin-top: 15px;
text-align: center;
}

.feedback-container .back-button a {
color: #ff5c5c;
text-decoration: none;
}

.feedback-container .back-button a:hover {
text-decoration: underline;
}

option {
background: rgb(63, 63, 63);
}

font-family: "Arial", sans-serif;
background-image: url("https://i.pinimg.com/originals/e6/c9/e3/e6c9e3d891aa56637847ba09c28fa00c.jpg");
background-size: cover;
color: white;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
}

.feedback-container {
background: rgba(0, 0, 0, 0.8);
padding: 30px;
border-radius: 10px;
width: 80%;
max-width: 600px;
box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
animation: fadeIn 2s ease-in-out;
}

.feedback-container h2 {
text-align: center;
margin-bottom: 20px;
color: #ff5c5c;
}

.feedback-container label {
display: block;
margin: 10px 0 5px;
}

.feedback-container input,
.feedback-container textarea,
.feedback-container select {
width: 98%;
padding: 10px;
border-radius: 5px;
border: none;
margin-bottom: 10px;
background: rgba(255, 255, 255, 0.2);
color: white;
}

.feedback-container textarea {
resize: none;
height: 100px;
}

.star-rating {
display: flex;
flex-direction: row-reverse;
justify-content: center;
gap: 5px;
}

.star-rating input[type="radio"] {
display: none;
}

.star-rating label {
font-size: 2rem;
cursor: pointer;
transition: color 0.2s;
}

.star-rating input[type="radio"]:checked ~ label {
color: #ff5c5c;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
color: #ff5c5c;
}

.feedback-container button {
width: 100%;
padding: 15px;
border: none;
border-radius: 5px;
background-color: #ff5c5c;
color: white;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}

.feedback-container button:hover {
background-color: #ff3333;
}

@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-20px);
}

to {
opacity: 1;
transform: translateY(0);
}
}

.feedback-container .back-button {
margin-top: 15px;
text-align: center;
}

.feedback-container .back-button a {
color: #ff5c5c;
text-decoration: none;
}

.feedback-container .back-button a:hover {
text-decoration: underline;
}

option {
background: rgb(63, 63, 63);
}

/* SweetAlert2 custom styles */
.swal-popup {
background: #333;
color: white;
border-radius: 10px;
border: 2px solid #ff5c5c;
}

.swal-title {
font-size: 2em;
color: #ff5c5c;
}

.swal-content {
font-size: 1.2em;
}

.swal-confirm-button {
background-color: #ff5c5c;
color: white;
border-radius: 5px;
padding: 10px 20px;
font-size: 1em;
border: none;
cursor: pointer;
}

.swal-confirm-button:hover {
background-color: #ff3333;
}
Loading

0 comments on commit 46751dc

Please sign in to comment.