You are on page 1of 15

NAME – RAHUL KUMAR

REDG. NO. – 12219006


ROLL NO. – 48
COURSE CODE – Cap283

Project Name – Pizza Landing Page :


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>Responsive Pizza Landing Page</title>
<!-- Box Icons -->
<link rel="stylesheet"
href="https://unpkg.com/boxicons@latest/css/boxicons.min.css">
<!-- Link To CSS -->
<link rel="stylesheet" href="project.css">

</head>
<body>
<!-- Navbar -->
<header>
<a href="#" class="logo">Pizza Hut</a>
<div class="bx bx-menu" id="menu-icon"></div>

<ul class="navbar">
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#menu">Menu</a></li>
<li><a href="#services">Service</a></li>
<li><a href="#contact">Contact</a></li>
<!-- Dark Mode -->
<div class="bx bx-moon" id="darkmode"></div>
</ul>
</header>
<!-- Home Section-->
<section class="home" id="home">
<div class="home-text">
<h1>Pizza Taste</h1>
<h2>The tasty pizza of <br> your choice</h2>
<a href="#" class="btn">View Menu</a>
</div>
<div class="home-img">
<img src="https://images.unsplash.com/photo-1565299624946-
b28f40a0ae38?ixlib=rb-
1.2.1&ixid=MnwxMjA3fDB8MHxleHBsb3JlLWZlZWR8Mnx8fGVufDB8fHx8&w=1000&q=80.png"
alt="">
</div>
</section>

<!-- About -->


<section class="about" id="about">
<div class="about-img">
<img src="https://cdn.pixabay.com/photo/2017/12/09/08/18/pizza-
3007395__480.jpg" alt="">
</div>
<div class="about-text">
<span>About Us</span>
<h2>We make good and <br> tasty pizzas</h2>
<p>Pizza Hut is a globally recognized pizza restaurant chain known
for its delicious and diverse range of pizzas.Pizza Hut also serves pasta,
wings, and various side dishes, providing a comprehensive dining
experience.</p>
<a href="#" class="btn">Learn More</a>
</div>
</section>

<!-- Menu -->


<section class="menu" id="menu">
<div class="heading">
<span>Menu</span>
<h2>Tasty menu of the week</h2>
</div>
<div class="menu-container">
<!-- Box 1 -->
<div class="box">
<div class="box-img">
<img src="https://images.pexels.com/photos/803290/pexels-
photo-803290.jpeg?cs=srgb&dl=pexels-beqa-tefnadze-803290.jpg&fm=jpg" alt="">
</div>
<h2>Cheese Pizza</h2>
<h3>Tasty Food</h3>
<span>$30.05</span>
<i class='bx bx-cart-alt'></i>
</div>
<!-- Box 2 -->
<div class="box">
<div class="box-img">
<img src="https://img.freepik.com/free-photo/pepperoni-
pizza-with-sausages-cheese-dark-wooden-table_220768-9277.jpg?size=626&ext=jpg"
alt="">
</div>
<h2>Tropical Pizza</h2>
<h3>Tasty Food</h3>
<span>$42.05</span>
<i class='bx bx-cart-alt'></i>
</div>
<!-- Box 3 -->
<div class="box">
<div class="box-img">
<img src="https://img.freepik.com/free-photo/top-view-
pepperoni-pizza-with-mushroom-sausages-bell-pepper-olive-corn-black-
wooden_141793-
2158.jpg?w=740&t=st=1661842808~exp=1661843408~hmac=c40f0c154036b96b1dba17947c4
e4f7c07f40db983106490402bb0b7b6ec452e" alt="">
</div>
<h2>Mecaroni Pizza</h2>
<h3>Tasty Food</h3>
<span>$12.05</span>
<i class='bx bx-cart-alt'></i>
</div>
</div>
</section>

<!-- Service -->


<section class="services" id="services">
<div class="heading">
<span>Services</span>
<h2>We provide best food services</h2>
</div>

<div class="servives-container">
<!-- Box 1 -->
<div class="s-box">
<img src="https://images.pexels.com/photos/280453/pexels-
photo-280453.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500.png" alt="">
<h3>You Order</h3>
<p>Pizza Hut ensures that every order is tailored to your
preferences. Whether you dine in, carry out, or opt for delivery, Pizza Hut is
a go-to destination for pizza lovers worldwide, offering a taste of comfort
and satisfaction with every order.</p>
</div>
<!-- Box 2 -->
<div class="s-box">
<img src="https://images.pexels.com/photos/4391470/pexels-
photo-4391470.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500.png" alt="">
<h3>Shipping</h3>
<p> Whether you're craving a classic Margherita or a specialty
pizza loaded with your favorite toppings, Pizza Hut's shipping ensures a hot
and fresh dining experience in the comfort of your own home.</p>
</div>
<!-- Box 3 -->
<div class="s-box">
<img src="https://images.pexels.com/photos/4393426/pexels-
photo-4393426.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500.png" alt="">
<h3>Delivered</h3>
<p> Whether it's the classic Margherita or a custom-made
specialty pizza, Pizza Hut's reliable delivery service has made it a go-to
choice for pizza lovers around the world.</p>
</div>
</div>
</section>

<!-- Connect -->


<section class="connect">
<div class="connect-text">
<span>Let's Talk</span>
<h2>Connect now</h2>
</div>
<a href="#" class="btn">Contact Us</a>
</section>

<!-- Contact -->


<section class="contact" id="contact">
<div class="contact-box">
<h3>Pizza Hut</h3>
<span>Connect With Us</span>
<div class="social">
<a href="#"><i class='bx bxl-facebook' ></i></a>
<a href="#"><i class='bx bxl-twitter' ></i></a>
<a href="#"><i class='bx bxl-instagram' ></i></a>
</div>
</div>
<div class="contact-box">
<h3>Menu Links</h3>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#menu">Menu</a></li>
<li><a href="#services">Service</a></li>
<li><a href="#contact">Contact</a></li>
</div>
<div class="contact-box">
<h3>Quick Links</h3>
<li><a href="#Contact">Contact</a></li>
<li><a href="#Privacy Policy">Privacy Policy</a></li>
<li><a href="#Disclaimer">Disclaimer</a></li>
<li><a href="#Terms Of Use">Terms Of Use</a></li>
</div>
<div class="contact-box address">
<h3>Contact</h3>
<i class='bx bxs-map' ><span>005, Lorem ipsum dolor, sit amet
consectetur, India</span></i>
<i class='bx bxs-phone' ><span>+91 000 999 5555</span></i>
<i class='bx bxs-envelope' ><span>Example@email.com</span></i>
</div>
</section>

<!-- Copyright -->


<div class="copyright">
<p>© Asslone4 All Right Reserved.</p>
</div>

<!-- Scroll Reveal -->


<script src="https://unpkg.com/scrollreveal"></script>
<!-- Link To JavaScript -->
<script src="project.js"></script>
</body>
</html>

CSS CODE :-

/* Google Fonts */
@import
url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700
&display=swap");
* {
margin: 0;
padding: 0;
font-family: "Poppins", sans-serif;
box-sizing: border-box;
scroll-behavior: smooth;
scroll-padding-top: 2rem;
list-style: none;
text-decoration: none;
}
*::selection {
background: var(--main-color);
color: #fff;
}
:root {
--main-color: #ffb411;
--text-color: #1e1c2a;
--bg-color: #fff;

--big-font: 4rem;
--h2-font: 2.24rem;
--p-font: 0.9rem;
}
section {
padding: 50px 10%;
}
body.active {
--bg-color: #1e1c2a;
--text-color: #fff;
}
body {
color: var(--text-color);
background: var(--bg-color);
}
#darkmode {
font-size: 25px;
cursor: pointer;
}
header {
position: fixed;
width: 100%;
top: 0;
right: 0;
z-index: 1000;
display: flex;
align-items: center;
justify-content: space-between;
background: var(--bg-color);
padding: 18px 100px;
box-shadow: 0 0.5rem 50rem rgba(0, 0, 0, 0.1);
}
.logo {
font-size: 1.2rem;
font-weight: 600;
color: var(--main-color);
}
.navbar {
display: flex;
}
.navbar a {
font-size: 1rem;
padding: 10px 20px;
color: var(--text-color);
font-weight: 500;
}
.navbar a:hover {
color: var(--main-color);
text-decoration: underline;
}
#menu-icon {
font-size: 2rem;
cursor: pointer;
display: none;
}
.home {
width: 100%;
min-height: 100vh;
display: grid;
grid-template-columns: repeat(2, 1fr);
align-items: center;
gap: 1.5rem;
}
.home-img img {
width: 100%;
}
.home-text h1 {
font-size: var(--big-font);
color: var(--main-color);
}
.home-text h2 {
font-size: var(--h2-font);
margin: 1rem 0 1rem;
}
.btn {
display: inline-block;
background: var(--main-color);
padding: 10px 20px;
border-radius: 0.5rem;
color: #fff;
}
.btn:hover {
background: #ffa400;
}
.about {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
align-items: center;
}
.about-img img {
max-width: 80%;
border-radius: 0.5rem;
}
.about-text span {
color: var(--main-color);
font-weight: 500;
}
.about-text h2 {
font-size: var(--h2-font);
}
.about-text p {
margin: 0.8rem 0 1.8rem;
}
.heading {
text-align: center;
}
.heading span {
color: var(--main-color);
font-weight: 500;
}
.heading h2 {
font-size: var(--h2-font);
}
.menu-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, auto));
gap: 1.5rem;
align-items: center;
}
.box {
position: relative;
margin-top: 2rem;
height: auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border-radius: 0.5rem;
box-shadow: 0 2px 4px rgb(4 64 54 / 10%);
padding: 10px;
}
.box-img {
width: 200px;
height: 200px;
}
.box-img img {
width: 100%;
height: 100%;
object-fit: contain;
object-position: center;
}
.box h2 {
font-size: 1.2rem;
}
.box h3 {
font-size: 1rem;
font-weight: 400;
margin: 4px 0 10px;
}
.box span {
font-size: var(--p-font);
font-weight: 500;
}
.box .bx {
position: absolute;
right: 0;
top: 0;
font-size: 20px;
background: var(--main-color);
border-radius: 0 0.5rem 0 0.5rem;
padding: 5px 8px;
}
.box .bx:hover {
background: #ffa400;

}
.servives-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, auto));
gap: 1.5rem;
margin-top: 2rem;
}
.s-box {
text-align: center;
}
.s-box img {
width: 60px;
}
.s-box h3 {
margin: 4px 0 10px;
}
.connect {
display: flex;
align-items: center;
justify-content: space-around;
}
.connect-text span {
color: var(--main-color);
font-weight: 500;
}
.connect-text h2 {
font-size: var(--h2-font);
}
.contact {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, auto));
gap: 1.5rem;
}
.contact-box h3 {
margin-bottom: 1rem;
}
.social {
display: flex;
margin-top: 1.5rem;
}
.social i {
font-size: 20px;
margin-right: 1rem;
color: var(--text-color);
}
.social i:hover {
color: var(--main-color);
}
.contact-box li a {
color: var(--text-color);
}
.contact-box li a:hover {
color: var(--main-color);
}
.address {
display: flex;
flex-direction: column;
}
.address i {
margin-bottom: 0.5rem;
font-size: 1rem;
}
.address span {
margin-left: 1rem;
}
.copyright {
padding: 20px;
text-align: center;
}
@media (max-width: 921px) {
header {
padding: 14px 41px;
}
:root {
--big-font: 3rem;
--h2-font: 1.7rem;
}
}
@media (max-width: 768px) {
section {
padding: 50px 8%;
}
#menu-icon {
display: initial;
color: var(--text-color);
}
header .navbar {
position: absolute;
top: -400px;
left: 0;
right: 0;
display: flex;
flex-direction: column;
text-align: center;
background: var(--bg-color);
box-shadow: 0 4px 4px rgb(0 0 0 / 10%);
transition: 0.2s ease;
}
.navbar.active {
top: 100%;
}
.navbar a {
padding: 1.5rem;
display: block;
background: var(--bg-color);
}
#darkmode {
position: absolute;
top: 1.4rem;
right: 2rem;
}
}
@media (max-width: 715px) {
header {
padding: 10px 16px;
}
.home {
grid-template-columns: 1fr;
}
.about {
grid-template-columns: 1fr;
text-align: center;
}
.about-img {
order: 2;
}
}
@media (max-width: 515px) {
.connect {
flex-direction: column;
}
.connect .btn {
margin-top: 1rem;
}
}
@media (max-width: 450px) {
:root {
--big-font: 2rem;
--h2-font: 1.4rem;
}
.home-text {
padding-top: 4rem;
}
}

JAVASCRIPT CODE :-

// Navbar
let menu = document.querySelector('#menu-icon');
let navbar = document.querySelector('.navbar');

menu.onclick = () => {
navbar.classList.toggle('active');
}

window.onscroll = () => {
navbar.classList.remove('active');
}
// Dark Mode
let darkmode = document.querySelector('#darkmode');

darkmode.onclick = () => {
if(darkmode.classList.contains('bx-moon')){
darkmode.classList.replace('bx-moon','bx-sun');
document.body.classList.add('active');
}else{
darkmode.classList.replace('bx-sun','bx-moon');
document.body.classList.remove('active');
}
}

// Scroll Reveal
const sr = ScrollReveal ({
origin: 'top',
distance: '40px',
duration: 2000,
reset: true
});

sr.reveal(`.home-text, .home-img,
.about-img, .about-text,
.box, .s-box,
.btn, .connect-text,
.contact-box`, {
interval: 200
})

OUTPUT :-

You might also like