why hello 11 compsci class of 25. Hows being annoying in I1 going huh!?

Plant Monitoring Panel - HTML & CSS Tutorial

Welcome to the Plant Status Panel Tutorial

In this tutorial, you will create a simple web interface using HTML and CSS that displays the status of a plant. This interface will show sensor data such as soil moisture levels, water tank levels, and will include buttons to control different actions like watering the plant.

This project will serve as a basic template for you to customize and expand. You can add more features, change the design, or adjust it to fit your specific project needs. Whether you're building a real monitoring system or just practicing your web development skills, this template will help you get started.

Here's an image of what the finished plant status panel will look like:

Preview of Plant Status Panel

Follow the steps below to begin building your own plant status panel!

Step 1: Setting Up the Project Folder

Create a folder called plant_monitoring_panel. Inside the folder, create two files:

Explanation: The index.html file will contain the structure of the webpage. This is the framework that browsers use to display content. The style.css file will contain rules that define how the webpage looks (colors, fonts, positioning, etc.). You’ll link the two together in the next steps.

Copy-paste location: Create these two empty files inside the plant_monitoring_panel folder on your computer.

Step 2: Adding the HTML Foundation

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Plant Monitoring Panel</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>Plant Monitoring Dashboard</h1>
</header>
</body>
</html>

Explanation:

Copy-paste location: Paste this code into the index.html file you created earlier.

Step 3: Adding a Section for Sensor Readouts

<section class="plant-status">
<h2>Plant Status</h2>
<p>Soil Moisture Level: <span id="moisture-level">50%</span></p>
<p>Water Tank Level: <span id="water-tank-level">75%</span></p>
</section>

Explanation:

Copy-paste location: Paste this code into the index.html file, right after the closing </header> tag.

Step 4: Adding Control Buttons

<div class="control-buttons">
<button>Water Plant</button>
<button>Increase Humidity</button>
</div>

Explanation:

Copy-paste location: Paste this code into the index.html file, just before the </section> tag.

Step 5: Adding an Image

<img src="sadtree.avif" alt="Sad Tree" id="plant-image">

Explanation:

Copy-paste location: Paste this code into the index.html file, after the closing </div> tag (right after the control buttons).

Step 6: Styling the Page with CSS

/* Basic reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

/* Body styling */
body {
font-family: Arial, sans-serif;
background-color: #f0f8ff;
color: #333;
padding: 20px;
}

Explanation:

Copy-paste location: Paste this code into the style.css file you created earlier.

Step 7: Styling the Header

/* Header styling */
header {
background-color: #4CAF50;
color: white;
padding: 10px 0;
text-align: center;
margin-bottom: 20px;
border-radius: 8px;
}

Explanation:

Copy-paste location: Paste this code into the style.css file, after the body styling.

Step 8: Styling the Plant Status Section

/* Plant status section */
.plant-status {
background-color: #fff;
padding: 20px;
border: 1px solid #ddd;
border-radius: 8px;
max-width: 400px;
margin: 0 auto;
text-align: center;
}

.plant-status h2 {
margin-bottom: 10px;
font-size: 1.5em;
}

.plant-status p {
margin: 10px 0;
font-size: 1.2em;
}

.plant-status span {
font-weight: bold;
}

Explanation:

Copy-paste location: Paste this code into the style.css file, after the header styling.

Step 9: Styling the Buttons

/* Buttons styling */
.control-buttons {
margin-top: 20px;
}

button {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
margin: 5px;
cursor: pointer;
border-radius: 5px;
font-size: 1em;
}

button:hover {
background-color: #45a049;
}

Explanation:

Copy-paste location: Paste this code into the style.css file, after the plant status section styling.

Step 10: Styling the Image

/* Image styling */
#plant-image {
margin-top: 20px;
width: 200px;
border-radius: 10px;
}

Explanation:

Copy-paste location: Paste this code into the style.css file, after the button styling.