WTAssignnent 2
WTAssignnent 2
WTAssignnent 2
– 02 Class – TE Comp
HTML Code –
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Food Lover</title>
<!-- CSS -->
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="menu">
<nav>
<input type="checkbox" id="check" />
<label for="check" class="checkbtn">
<ion-icon name="grid-outline"></ion-icon>
</label>
<ul>
<li><a href="#hero-section" class="active">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#menu">Menu</a></li>
<li><a href="#testimonial">Reviews</a></li>
</ul>
</nav>
</div>
<p class="tertiary">
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ipsa,
provident dolorum. Voluptatum Herr Hitler... quasi unde, voluptatibus
soluta eligendi. Enim, architecto autem.
</p>
alt=""
/>
</div>
</div>
<div class="container">
<div class="restaurant-menu">
<div class="menu-item">
<img src="Chinese Food.png" alt="" />
<div class="menu-item">
<img src="indian-food.jpg" alt="" />
<div class="menu-item">
<img src="paneer-food.jpg" alt="" />
<div class="menu-item">
<img src="South Indian.png" alt="" />
<div class="menu-item">
<img
src="stir-fry-chicken-zucchini-sweet-peppers-green-onion-with-chopsticks.jpg"
alt=""
/>
<div class="menu-item">
<img src="high-angle-chicken-meal.jpg" alt="" />
</div>
</div>
</div>
</div>
<div class="name">
<div class="title">Food Expert Manas Deshpande</div>
<div class="location">Pirangut, India</div>
</div>
</div>
</div>
<div class="visual">
<img
src="https://raw.githubusercontent.com/programmercloud/foodlover/main/img/testimonial.png"
alt=""
/>
</div>
</div>
</div>
<div class="footer">
<div class="container flex">
<div class="footer-about">
<h2>About</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Maxime
aspernatur sit deleniti enim voluptas voluptatum incidunt rerum,
exercitationem voluptate nemo quo impedit ad perspiciatis tempore
nulla dolore fugit, fuga eos.
</p>
</div>
<div class="footer-category">
<h2>Our Menu</h2>
Name – Uditkumar Panda Roll No. – 02 Class – TE Comp
<ul>
<li>Biryani</li>
<li>Chinese</li>
<li>Pizza</li>
<li>Vada Pav</li>
<li>Pasta</li>
</ul>
</div>
<div class="quick-links">
<h2>Quick Links</h2>
<ul>
<li>About Us</li>
<li>Contact Us</li>
<li>Menu</li>
<li>Order</li>
<li>Services</li>
</ul>
</div>
<div class="get-in-touch">
<h2>Get in touch</h2>
<ul>
<li>Account</li>
<li>Support Center</li>
<li>Feedback</li>
<li>Suggession</li>
</ul>
</div>
</div>
<div class="copyright">
<p>Copyright © 2022. All Rights Reserved.</p>
</div>
</div>
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.esm.js"
></script>
<script
nomodule
src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.js"
></script>
</body>
</html>
CSS Code –
Name – Uditkumar Panda Roll No. – 02 Class – TE Comp
@import
url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500;600;700&display=swap");
/* Base */
:root {
--clr-primary: #2727eb;
--clr-secondary: #272d36;
}
*,
*::after,
*::before {
box-sizing: border-box;
padding: 0;
margin: 0;
font-family: "Josefin Sans", sans-serif;
}
html {
scroll-behavior: smooth;
}
body {
background: #fff;
color: var(--clr-secondary);
overflow-x: hidden;
}
.section {
width: 100%;
padding: 40px 0;
}
.flex {
display: flex;
align-items: center;
justify-content: center;
}
.container {
padding: 0 30px;
}
.primary {
font-size: 64px;
font-weight: 700;
margin-bottom: 20px;
}
.secondary {
font-size: 44px;
font-weight: 700;
margin-bottom: 20px;
}
.tertiary {
font-size: 24px;
font-weight: 400;
Name – Uditkumar Panda Roll No. – 02 Class – TE Comp
margin-bottom: 20px;
}
.btn {
padding: 14px 20px;
background: var(--clr-primary);
border-radius: 4px;
color: #fff;
text-decoration: none;
font-size: 22px;
display: inline-block;
margin: 20px 0;
}
nav {
height: 80px;
width: 100%;
position: fixed;
top: 0;
background: #5debfb;
box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.22);
z-index: 22;
}
label.logo {
font-size: 35px;
line-height: 80px;
padding: 0 30px;
font-weight: 700;
}
nav ul {
float: right;
margin-right: 20px;
}
nav ul li {
display: inline-block;
line-height: 80px;
margin: 0 5px;
}
nav ul li a {
font-size: 18px;
padding: 7px 13px;
text-decoration: none;
color: var(--clr-secondary);
}
.menu a.active,
.menu a:hover {
border-bottom: 2px solid var(--clr-primary);
transition: 0.3s;
}
.checkbtn {
font-size: 30px;
Name – Uditkumar Panda Roll No. – 02 Class – TE Comp
color: #fff;
float: right;
line-height: 80px;
margin-right: 40px;
cursor: pointer;
display: none;
}
#check {
display: none;
}
#hero-section {
background: #fff5f2;
margin-top: 60px;
}
.text,
.visual {
width: 50%;
}
.text {
margin: 0 20px;
}
.visual img {
width: 80%;
height: auto;
display: block;
}
#hero-section .text {
margin-left: 30px;
}
#hero-section .visual img {
margin-left: auto;
}
#how-it-works {
width: 80%;
margin: 0 auto;
text-align: center;
}
.box {
border: 1px solid #b2b2b2;
padding: 25px 5px;
margin: 0 10px;
border-radius: 8px;
font-size: 18px;
transition: 0.3s ease;
cursor: pointer;
}
.box ion-icon {
font-size: 35px;
color: var(--clr-primary);
Name – Uditkumar Panda Roll No. – 02 Class – TE Comp
margin: 15px 0;
}
.box.active,
.box:hover {
color: #fff;
border-color: var(--clr-primary);
background: var(--clr-primary);
}
.box.active ion-icon,
.box:hover ion-icon {
color: #fff;
}
#about .visual img,
#app .visual img {
margin-right: auto;
}
.category {
list-style: none;
text-align: center;
margin: 20px 0 40px 0;
}
.category li {
display: inline-block;
margin: 0 15px;
font-size: 20px;
font-weight: 500;
cursor: pointer;
}
.category li.active {
color: var(--clr-primary);
}
.restaurant-menu {
display: grid;
grid-template-columns: repeat(3, 1fr);
}
.menu-item {
width: 260px;
margin: 0 auto;
border-radius: 6px;
overflow: hidden;
}
.menu-item img {
width: 100%;
}
.order {
justify-content: space-between;
}
.btn-menu {
Name – Uditkumar Panda Roll No. – 02 Class – TE Comp
.secondary {
font-size: 32px;
}
.tertiary {
font-size: 17px;
}
}
Output –