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

Fixed the image quality in DINE-IN page. #761

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 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
6 changes: 4 additions & 2 deletions dine-in.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ <h3>Frozen Fusion </h3>
</div>
</div>
<div class="restaurant-card">
<img src="./images/ice-2.jpg" alt="Restaurant 2">
<!-- Added new image related to ice-2 image -->
<img src="./images/ice_2.1.jpg" alt="Restaurant 2">
<div class="restaurant-info">
<h3>Kulfi Station Express</h3>
<p>Sector 5, Salt Lake, Kolkata</p>
Expand Down Expand Up @@ -153,7 +154,8 @@ <h3>Scoop heaven</h3>
</div>
</div>
<div class="restaurant-card">
<img src="./images/ice-2.jpg" alt="Restaurant 2">
<!-- Added new image related to ice-2 image -->
<img src="./images/ice_2.2.jpg" alt="Restaurant 2">
<div class="restaurant-info">
<h3>Freezy ice</h3>
<p>Sector 8, Salt Lake, Kolkata</p>
Expand Down
Binary file added images/ice_2.1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ice_2.2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
223 changes: 223 additions & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,229 @@ h3 {
pointer-events: all !important;
}

/* FAQ Section */
.FAQs h2 {
text-align: center;
margin: 15px 0;
/* Reduced margin for tighter spacing */
font-family: var(--main-font);
font-size: 2rem;
/* Larger heading for prominence */
color: var(--secondary-color);
/* Themed color for heading */
}

.FAQs h3 {
text-align: center;
margin-bottom: 10px;
/* Reduced margin for a tighter layout */
font-family: var(--main-font);
font-size: 1.6rem;
/* Slightly larger for subheadings */
color: var(--secondary-color);
}

.FAQ-questions {
cursor: pointer;
font-size: 1.3rem;
width: 100%;
padding: 1.2rem;
/* Slightly reduced padding for a tighter look */
display: flex;
font-family: var(--main-font);
justify-content: space-between;
align-items: center;
font-weight: bold;
/* Improved visibility by making it bold */
border-radius: 8px;
margin: 10px 0;
border: 2px solid var(--secondary-color);
background-color: var(--body-color);
color: var(--secondary-color);
/* Updated color for better visibility */
transition: background-color 0.3s ease, color 0.3s ease;
/* Smooth transitions */
}

.FAQ-questions:hover {
background-color: var(--secondary-color);
/* Hover effect: change background */
color: var(--body-color);
/* Invert text color on hover */
}

.FAQ-questions i {
font-size: 1.5rem;
transition: transform 0.3s ease;
/* Faster transition for responsiveness */
}

.FAQ-questions.active i {
transform: rotate(180deg);
/* Icon rotation when active */
}

.FAQ-answers {
color: var(--ternary-color);
font-size: 1.2rem;
line-height: 1.6;
display: none;
padding: 0.2rem 2rem 1.8rem;
border-left: 4px solid var(--secondary-color);
background-color: rgba(0, 0, 0, 0.05);
border-radius: 0 0 8px 8px;
}

.FAQ-answers.active {
display: block;
}

i {
transition: transform 0.3s ease;
/* Consistent transition timing */
}

/* delivery styles */
section h1 {
background-color: #EE66A6;
}

.heading {
text-align: center;
font-size: 20px;
margin-top: 15px;
font-weight: 400;
}

.form-text {
margin-left: 0px;
padding: 6px;
display: flex;
border: var(--main-color) 2px solid;
border-radius: 3px;
width: 100%;
height: 40px;
background-color: transparent;
}

.indv-text label {
font-weight: bold;
}

.form-text:focus {
outline: 2px solid var(--secondary-color);
}

.text {
display: block;
margin-bottom: 7px;
}

.indv-text {
margin: 20px;
}

.btn-style {
margin-right: 15px;
}


.star {
color: #ccc;
font-size: 1.5em;
}

.star.filled {}

/* Dine in styles */
.search-bar {
display: flex;
justify-content: center;
margin: 20px 20px;
margin-top: 40px;
margin-bottom: 50px;
}

.search-bar input {
width: 70%;
padding: 12px;
font-size: 1rem;
border: 1px solid var(--secondary-color);
border-radius: 10px 0 0 10px;
}

.search-bar input:focus {
outline: 2px solid var(--secondary-color);
}

.search-bar button {
padding: 10px 20px;
border-radius: 0 10px 10px 0;
}

.restaurants {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 25px;
}

.restaurant-card {
background-color: var(--body-color);
border-radius: 5px;
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
flex: 1 1 300px;
max-width: 350px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.restaurant-card:hover {
transform: scale(1.02);
box-shadow: 1px 1px 23px rgba(247, 15, 100, 0.915);
/*Added Color to restaurant cards */
border: none;
cursor: pointer;
}

.restaurant-card img {
width: 100%;
height: 200px;
/* Given the property object-fit as cover so that the image quality is set to original the image fits the container's aspect ratio */
object-fit:cover;
}

.restaurant-info {
padding-top: 25px;
text-align: center;

}

.restaurant-info p {
/* color: #e9e9e9; */
font-size: 1rem;
font-family: "Questrial", Verdana, Geneva, Tahoma, sans-serif;
font-weight: 400;
margin: 12px 0;
}

.restaurant-info h3 {
/* color: var(--body-color); */
font-size: 1.25rem;
font-family: "Questrial", Verdana, Geneva, Tahoma, sans-serif;
font-weight: 600;
}

.heading {
text-align: center;
font-size: 20px;
margin-top: 15px;
font-weight: 400;

}


/* Scroll Bar */

::-webkit-scrollbar {
Expand Down