Web Technology Project .
Web Technology Project .
TAMANNA NAG
SYCS
ROLL NO : 08
PROFFESSOR : VINAY DUBEY
<!DOCTYPE html>
<html lang="en">
<head>
<link
href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap"
rel="stylesheet"
/>
<title>Home</title>
</head>
<body>
<nav>
<div class="heading">
</div>
<ul class="nav-links">
<li><a href="pages/about.html">About</a></li>
<li><a href="pages/contact.html">Owners</a></li>
</ul>
</nav>
<main>
<section class="featured-cakes">
<div class="container">
<h2>Featured Cakes</h2>
<div class="cake">
<img src="chocolate_cake.jpeg" alt="Chocolate Cake">
<h3>Chocolate Cake</h3>
<p>Rich and moist chocolate cake with creamy frosting.</p>
</div>
<div class="cake">
<img src="vanilla_cake.avif" alt="Vanilla Cake">
<h3>Vanilla Cake</h3>
<p>Classic vanilla cake with a hint of almond and vanilla frosting.</p>
</div>
<div class="cake">
<img src="red_velvet_cake.jpeg" alt="Red Velvet Cake">
<h3>Red Velvet Cake</h3>
<p>Delicious red velvet cake with cream cheese frosting.</p>
</div>
</div>
</section>
</main>
<footer>
<div class="container">
<p>© 2024 Royal Cake Shop. All rights reserved.</p>
</div>
</footer>
</body>
</html>
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
.body-text {
display: ex;
align-items: center;
fl
justify-content: center;
margin-top: 250px;
nav {
display: ex;
justify-content: space-around;
align-items: center;
min-height: 8vh;
background-color: teal;
.heading {
color: white;
text-transform: uppercase;
letter-spacing: 5px;
font-size: 20px;
.nav-links {
display: ex;
justify-content: space-around;
width: 30%;
.nav-links li {
list-style: none;
.nav-links a {
color: white;
text-decoration: none;
letter-spacing: 3px;
font-weight: bold;
fl
fl
font-size: 14px;
.nav-links a:hover:not(.active) {
background-color: lightseagreen;
.nav-links li a.active {
background-color: #4caf50;
about {
display: ex;
align-items: center;
ex-wrap: wrap;
gap: 1.5rem;
}
.about .img {
ex: 1 1 40rem;
}
.about .content {
ex: 1 1 40rem;
}
.about .content h3 {
color: #222;
font-size: 3rem;
padding-top: .5rem;
}
.about .content p {
color: #222;
font-size: 1.4rem;
line-height: 2;
padding: 1rem 0;
}
main {
padding: 2rem 0;
}
fl
fl
fl
ff
fl
.featured-cakes {
text-align: center;
}
.featured-cakes h2 {
margin-bottom: 1.5rem;
}
.cake {
display: inline-block;
width: 30%;
margin: 1rem 0;
vertical-align: top;
}
.cake img {
width: 100%;
height: auto;
border-radius: 8px;
}
.cake h3 {
margin: 0.5rem 0;
}
footer {
background: #333;
color: # f;
padding: 1rem 0;
text-align: center;
}
footer .container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
.column {
oat: left;
width: 33.3%;
margin-bottom: 16px;
padding: 0 8px;
}
.title {
color: grey;
}
.button {
border: none;
outline: 0;
display: inline-block;
padding: 8px;
color: white;
background-color: #000;
text-align: center;
fl
ff
cursor: pointer;
width: 100%;
}
.button:hover {
background-color: #555;
}
**************OUTPUT***************