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

enhanced feedback form #707

Merged
merged 1 commit into from
Jun 5, 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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
83 changes: 75 additions & 8 deletions feed.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,42 @@ body {

h2 {
text-align: center;
color: #007bff;
color: #003366;
margin-bottom: 20px;
margin-top: 12px;
}

h3 {
margin-top: 30px;
color: #e63946;
color: #003366;
margin-bottom: 20px;
}
#bookingProcess,#accuracyInformation,#paymentOptions,#securityMeasures,#customerSupport{
margin-top: 10px;
margin-bottom: 10px;
}

.mb-3 {
margin-bottom: 1.5rem;
}
p{
color: #003366;
}

.form-label {
font-weight: bold;
color: #1d3557;
margin-bottom: 10px;
margin-bottom: 30px;
}

#navigationEase{
margin-top: 10px;
}

.form-control {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border: 1px solid #e8e8e8;
border-radius: 5px;
margin-top: 10px;
}
Expand All @@ -49,15 +61,15 @@ h3 {
border: none;
border-radius: 5px;
cursor: pointer;
background-color: #007bff;
background: linear-gradient(#003366,#9f4bee);
color: white;
display: block;
margin: 20px auto 0;
text-align: center;
}

.btn:hover {
background-color: #0056b3;
background: linear-gradient(#007bff,#e534bf);
}

.star {
Expand All @@ -67,7 +79,7 @@ h3 {
}

.star.checked {
color: #e63946;
color: #f0cd04;
}

#navigationEase,
Expand All @@ -87,6 +99,61 @@ h3 {
#securityMeasures-rating-text,
#customerSupport-rating-text,
#overallExperience-rating-text {
color: #007bff;
color: #003366;
margin-top: 10px;
}

.col-md-6{
margin-bottom: 20px;
position: relative;

}
.col-md-6 .icon {
position: absolute;
top: 60%;
left: 10px;
transform: translateY(-50%);
background-color: #003366;
color: white;
border-radius: 50%;
width: 24px;
height: 24px;
display: flex;
justify-content: center;
align-items: center;
}

.col-md-6 input{
width: 90%;
padding: 10px 10px 10px 40px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 14px;
}

.group{
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
flex-wrap: nowrap;
}
.text{
width: 50%;
display: flex;
justify-content: center;
}
.last{
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: row;
}
.form-check-label{
width: 2000px;
}
label{
color: #003366;
}


63 changes: 33 additions & 30 deletions feed.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,55 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
<script src="feed.js" defer></script>
<script
src="https://kit.fontawesome.com/b08b6de27e.js"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>

<body>

<div class="container">
<form method="post" id="myform">

<div class="row mb-3">
<div class="row-mb-3">
<div class="col-md-12">
<h2>Tour Feedback Form</h2>
<div class="fs-6 fw-light" style="color: #eae54c;">We value your feedback and use it to improve our tours. Please fill out this form to share your experience.</div>
</div>
</div>

<div class="row mb-3">
<div class="col-md-6">
<label for="event_name" class="form-label">Name the tour you attended:</label>
<input type="text" name="event_name" id="event_name" class="form-control" required="required" />
</div><br>
<div class="icon"><i class="fas fa-map-marked-alt"></i></div>
<input type="text" name="event_name" placeholder="Name the tour you attended:" id="event_name" class="form-control" required="required" />
</div>
<div class="col-md-6">
<label for="event_date" class="form-label">Tour Date:</label>
<input type="date" class="form-control" name="event_date" id="event_date" />
<div class="icon"><i class="fas fa-calendar-alt"></i></div>
<input type="date" class="form-control" placeholder="Tour Date:" name="event_date" id="event_date" />
</div>
</div>
<div class="row mb-3">
<div class="col-md-6">
<label for="FullName" class="form-label">Name</label>
<div class="icon">
<i class="fas fa-user"></i>
</div>
<input type="text" name="FullName" id="FullName" placeholder="Your Name" required="required" class="form-control" />
</div><br>
<div class="col-md-6">
<label for="Email" class="form-label">Email:</label>
<input type="email" class="form-control" name="Email" id="Email" />
<div class="icon">
<i class="fas fa-envelope"></i>
</div>
<input type="email" class="form-control" placeholder="Email Id" name="Email" id="Email" />
</div>
</div>

<h3>What's your opinion about:</h3>


<div class="group">
<div class="row mb-3">
<div class="col-md-12">
<label>Ease of navigation?</label>
<label >Ease of navigation?</label>
<div class="d-flex flex-wrap" id="navigationEase">
</div>
<p id="navigationEase-rating-text">Rating: 0</p>
Expand All @@ -72,8 +80,12 @@ <h3>What's your opinion about:</h3>
<p id="accuracyInformation-rating-text">Rating: 0</p>
</div>
</div>
</div>



<h3>How would you rate the following aspects?</h3>
<div class="group">
<div class="row mb-3">
<div class="col-md-12">
<label>Payment options</label>
Expand All @@ -90,7 +102,7 @@ <h3>How would you rate the following aspects?</h3>
<p id="securityMeasures-rating-text">Rating: 0</p>
</div>
</div>


<div class="row mb-3">
<div class="col-md-12">
Expand All @@ -101,39 +113,30 @@ <h3>How would you rate the following aspects?</h3>
<p id="customerSupport-rating-text">Rating: 0</p>
</div>
</div>

</div>


<div class="row mb-3">
<div class="col-md-12">
<label>How would you rate the overall experience?</label>
<div class="d-flex flex-wrap" id="overallExperience">

</div>
<p id="overallExperience-rating-text">Rating: 0</p>
</div>
</div>

<div class="row mb-3">
<div class="col-md-12">
<label for="suggestions" class="form-label">Your suggestions for improving future events</label>
<textarea name="suggestions" class="form-control" id="suggestions" rows="6"></textarea>
<textarea name="suggestions" itemid="text" class="form-control" placeholder="Your suggestions for improving future events" id="suggestions" rows="6"></textarea>
</div>
</div>

<div class="row mb-3">
<div class="col-md-6 d-flex align-items-center">
<div>
<input type="checkbox" class="form-check-input" name="notify_future_events" id="notify_future_events" />
<div class="last">
<label for="notify_future_events" class="form-check-label">Would you like to be notified about future events?</label>
<input type="checkbox" class="form-check-input" name="notify_future_events" id="notify_future_events" />
</div>
</div>
</div>

<div class="row mb-3">
<div class="col-md-6 d-flex align-items-center">
<div>
<input type="checkbox" class="form-check-input" name="can_follow_up" id="can_follow_up" />
<div class="last">
<label for="can_follow_up" class="form-check-label">Can we contact you regarding your feedback for further clarification or follow-up?</label>

<input type="checkbox" class="form-check-input" name="can_follow_up" id="can_follow_up" />
</div>
</div>
</div>
Expand Down