CSS Word Project
CSS Word Project
Navi Mumbai
(ACADEMIC YEAR: -2024-2025)
(MICRO PROJECT)
NAME ROLL NO
KRINJAL GAWADE
3350
PRATIK SINGH 3359
2. Nav Bar:
Detailed information about body fat, face fat, and the general physique of Indian
individuals.
Practical tips for managing and reducing fat, and promoting overall well-being.
A Diet Calories Calculator where users can input their weight and height for
custom diet recommendations.
4. Discover Page:
5. Plan Page:
Personalized plans like Weight Loss Plan, Muscle Gain Plan, and Wellness
Plan.
Users input their details to receive custom diet and workout routines, including
veg and non-veg options.
Interactive start buttons initiate custom plans.
6. Interactive Features:
Integrated into the Health Conditions page for easy user access.
Provides personalized diet plans based on users' weight and height.
Custom plans introduced under the Plan section for those looking to gain
muscle or focus on overall wellness.
Technologies Used:
1. HTML:
For structuring web pages, including elements like headings, forms, and
the navigation bar.
2. CSS:
3. JavaScript:
4. Cookies:
Work Division:
Pratik Singh:
Krinjal Gawade:
Athrva Waghmare:
(CODES):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login / Sign Up</title>
.container {
background-color: #fff;
color: black;
padding: 30px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
width: 350px;
text-align: center;
}
h1 {
margin-bottom: 20px;
font-size: 2em;
color: #3F51B5;
}
input {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
width: 100%;
padding: 10px;
background-color: #3F51B5;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1.1em;
}
button:hover {
background-color: #303F9F;
}
.redirect-message {
margin-top: 20px;
font-size: 1.1em;
}
/* Footer Styling */
footer {
position: absolute;
bottom: 10px;
width: 100%;
text-align: center;
color: gray;
font-size: 0.9em;
}
</style>
</head>
<body>
<div class="container">
<h1>Login / Sign Up</h1>
<footer>
<p>© 2024 Your Company. All rights reserved.</p>
</footer>
(CODES):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
background-color: black;
color: white;
margin: 0;
line-height: 1.6;
/* Navigation Bar */
.navbar {
display: flex;
align-items: center;
background-color: #222;
padding: 15px;
.navbar img {
height: 80px;
margin-right: 20px;
.navbar ul {
list-style: none;
display: flex;
margin: 0;
padding: 0;
.navbar ul li {
position: relative;
margin: 0 15px;
.navbar ul li a {
color: white;
text-decoration: none;
font-size: 1.1em;
.navbar ul li a:hover {
color: #1e90ff;
/* Dropdown Menu */
.dropdown {
display: none;
position: absolute;
background-color: #333;
min-width: 160px;
border-radius: 5px;
z-index: 1;
.dropdown a {
color: white;
padding: 10px;
text-decoration: none;
display: block;
.dropdown a:hover {
background-color: #444;
li:hover .dropdown {
display: block;
/* Main Content */
.main-content {
text-align: center;
}
h1 {
font-size: 3em;
margin-bottom: 20px;
p{
font-size: 1.2em;
max-width: 800px;
margin: 0 auto;
line-height: 1.5;
/* Image Gallery */
.image-gallery {
display: flex;
justify-content: center;
flex-wrap: wrap;
margin: 20px 0;
.image-container {
position: relative;
height: 250px;
margin: 10px;
/* Circular images */
.image-gallery img {
width: 100%;
height: 100%;
object-fit: cover;
.image-container img:hover {
transform: scale(1.05);
.image-info {
display: flex;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 50px;
justify-content: center;
align-items: center;
color: white;
text-align: center;
padding: 10px;
opacity: 0;
.image-container:hover .image-info {
opacity: 1;
/* Footer */
footer {
text-align: center;
padding: 20px;
background-color: #222;
position: relative;
bottom: 0;
width: 100%;
}
footer p {
color: #aaa;
</style>
</head>
<body>
<nav class="navbar">
<ul>
<li><a href="nav/Discover.html">Discover</a></li>
<li><a href="nav/plan.html">Plan</a></li>
<li>
<a href="#connect">Connect</a>
<div class="dropdown">
<a href="#forum">Forum</a>
<a href="#support">Support</a>
<a href="#feedback">Feedback</a>
</div>
</li>
</ul>
</nav>
<!-- Main Content -->
<div class="main-content">
<p>
Your one-stop solution for tracking your health, staying active, and connecting with
like-minded individuals. Discover personalized plans, get nutrition advice, and take
control of your well-being.
</p>
<div class="image-gallery">
<div class="image-container">
</div>
<div class="image-container">
</div>
<div class="image-container">
</div>
<div class="image-container">
</div>
</div>
</div>
<footer>
</footer>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Health Conditions</title>
<style>
body {
background-color: #f5f5f5;
margin: 0;
padding: 20px;
h1, h2 {
color: #2c3e50;
.section {
background-color: #fff;
padding: 20px;
margin-bottom: 40px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
/* Calculator Form */
.calculator {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 10px;
.calculator input {
width: 100%;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
.calculator button {
width: 100%;
padding: 10px;
background-color: #e74c3c;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
.calculator button:hover {
background-color: #c0392b;
.result {
margin-top: 20px;
font-size: 1.2em;
color: #2ecc71;
.tips-section {
margin-bottom: 40px;
.tips-section p {
line-height: 1.6;
</style>
</head>
<body>
<h1>Health Conditions</h1>
<div class="section">
<div class="calculator">
<select id="activity-level">
</select>
<button onclick="calculateCalories()">Calculate Calories</button>
</div>
</div>
<p>Body fat is an essential component of the human body, necessary for maintaining
energy, supporting cell function, and insulating the body. However, excessive body fat
can lead to various health problems, such as obesity, heart disease, and diabetes. The
body fat percentage that is considered healthy varies by age and gender, but maintaining
a balanced diet and active lifestyle is crucial for overall health.</p>
</div>
<p>Facial fat is often a concern for many individuals, particularly as they age or gain
weight. While you can't target fat loss specifically from your face, engaging in regular
cardiovascular exercises, eating a healthy diet, and staying hydrated can help reduce
overall body fat, which will also lead to less facial fat.</p>
</div>
<script>
function calculateCalories() {
} else {
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Discover</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
margin: 0;
padding: 20px;
}
<h1>Discover</h1>
<p>Welcome to the Discover page. Here, you can explore various aspects related to
health, fitness, and wellness.</p>
h1 {
text-align: center;
color: #333;
margin-bottom: 40px;
}
.section {
margin-bottom: 40px;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.section h2 {
color: #2c3e50;
}
.section p {
line-height: 1.6;
color: #555;
}
.discover-image {
max-width: 100%;
border-radius: 8px;
margin-bottom: 20px;
}
/* Button */
.learn-more-btn {
background-color: #e74c3c;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
text-decoration: none;
}
.learn-more-btn:hover {
background-color: #c0392b;
}
.grid-item {
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
padding: 15px;
text-align: center;
}
.grid-item h3 {
margin-top: 0;
}
</style>
</head>
<body>
<h1>Discover</h1>
</body>
</html>
Plan: The Plan page offers personalized fitness and wellness plans
tailored to users' needs. It includes options like a Weight Loss Plan,
Muscle Gain Plan, and a Wellness Plan, each designed to guide users
toward their specific goals. By entering basic information like weight and
height, users can receive custom diet plans (both veg and non-veg) and
exercise routines. The page is interactive, allowing users to start their
plans with a simple click, ensuring a smooth and guided experience
toward achieving their fitness objectives.
(CODES):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Plan Your Journey</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
margin: 0;
padding: 20px;
}
h1 {
font-size: 3.5em;
font-weight: bold;
color: #2c3e50;
text-align: center;
margin-bottom: 20px;
}
.section {
background-color: #fff;
padding: 20px;
margin-bottom: 40px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h2 {
font-size: 2em;
color: #34495e;
margin-bottom: 10px;
}
.button {
background-color: #e74c3c;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 1em;
cursor: pointer;
text-align: center;
}
.button:hover {
background-color: #c0392b;
}
.plan-options {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.plan-card {
background-color: #fff;
padding: 20px;
width: 30%;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
.plan-card h3 {
font-size: 1.5em;
color: #2c3e50;
}
.plan-card p {
margin: 10px 0;
}
.calculator-section {
display: none;
margin-top: 20px;
background-color: #ecf0f1;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.calculator-section input {
margin-bottom: 10px;
padding: 8px;
width: 100%;
}
.diet-section {
margin-top: 20px;
display: none;
background-color: #f9f9f9;
padding: 20px;
border-radius: 8px;
}
.error {
color: red;
}
</style>
</head>
<body>
<div class="section">
<h2>Choose a Plan</h2>
<div class="plan-options">
<!-- Weight Loss Plan -->
<div class="plan-card">
<h3>Weight Loss Plan</h3>
<p>A structured plan to help you lose weight through balanced meals and daily
workouts.</p>
<button class="button" onclick="showCalculator('weightLoss')">Start
Plan</button>
</div>
<script>
let currentPlan = '';
// Validate inputs
if (!weight || !height || !dietType) {
document.getElementById('error-message').innerText = "Please fill out all
fields!";
return;
}
dietType = dietType.value;
</body>
</html>