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

Edit review section #179

Closed
wants to merge 4 commits into from
Closed
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
24 changes: 13 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -472,16 +472,16 @@ <h2>Contact US</h2>
</main>
<!-- ratings by user -->
<section id="reviews" class="reviews-section">
<h2>User Reviews and Ratings</h2>
<p>
Read what others have to say about their experiences with various
destinations, hotels, flights, and activities. Share your own reviews
and help fellow travelers make informed decisions.
</p>

<div class="review-form" style="margin-top: 20px">
<h1 style="margin-bottom: 10px">Leave a Review</h1>
<form>
<!-- <div class="reviews_h2"><h2> Reviews & Ratings</h2></div> -->



<div class="review-form">
<h3 class="review-h3">Rate your experience</h3>
<p>Read what others have to say about their experiences with various
destinations, hotels, flights, and activities. Share your own reviews
and help fellow travelers make informed decisions.</p>
<form class="form">
<label for="name">Your Name:</label>
<input type="text" id="name" name="name" required />

Expand All @@ -507,7 +507,9 @@ <h1 style="margin-bottom: 10px">Leave a Review</h1>
placeholder="Describe any issue with the staff here. Please explain every single detail ex:location,name of the person"
></textarea>

<button type="submit">Submit Review</button>
<div class="review-form-button">
<button type="submit">Send</button>
</div>
</form>
</div>

Expand Down
67 changes: 53 additions & 14 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -592,23 +592,57 @@ body.dark-mode {
}

.reviews-section h2 {
font-size: 2em;
margin-bottom: 20px;
font-size:xx-large;



}
.reviews_h2{
border:2px solid blue;
padding: 10px;
border-radius: 5px;
width:max-content;
background-color: #007BFF;
color:#e7f0fd
}
#reviews{
display: flex;
flex-direction: column;
align-items: center;
gap:10px;
background-color: #F0F8FF;
}

.review-form {
background: white;
padding: 20px;
background-color: #cce9f9;
padding:30px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
margin-top:20px;
width:40vw;
display: flex;
flex-direction: column;

}

.review-form h3 {
font-size: 1.5em;
.review-h3 {
font-size: 35px;
margin-bottom: 15px;
text-align: center;
font-weight: bold; /* Keep only this font-weight */
}

.review-form p{
font-size: 14px;
font-style:italic;
padding:20px;
color: #3A1078;
line-height:1.5em;
}
.form{
width:35vw;
padding:20px;
}
.review-form label {
display: block;
margin-bottom: 5px;
Expand All @@ -624,22 +658,27 @@ body.dark-mode {
padding: 10px;
font-size: 15px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 5px;
border: 1px solid #d2d8f3;
border-radius: 10px;
}


.review-form button {
background-color: #007bff;
color: white;
padding: 10px 15px;
background-color: #F7D160;
color:black;
padding: 10px 30px;
border: none;
border-radius: 5px;
border-radius: 20px;
cursor: pointer;
transition: background-color 0.3s;
font-size:medium;
}

.review-form-button{
text-align: center;
}
.review-form button:hover {
background-color: #0056b3;
box-shadow: #003d80;
}

.reviews-list {
Expand Down