Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created about contact pages #47

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified green/green/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified green/green/__pycache__/settings.cpython-311.pyc
Binary file not shown.
Binary file modified green/green/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file modified green/green/__pycache__/wsgi.cpython-311.pyc
Binary file not shown.
Binary file modified green/home/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified green/home/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file modified green/home/__pycache__/views.cpython-311.pyc
Binary file not shown.
2 changes: 2 additions & 0 deletions green/home/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
path("user",views.user,name="user"),
path("afilter",views.afilter,name="afilter"),
path("result",views.result,name="result"),
path("contact",views.contact,name="contact"),
path("about",views.about,name="about"),

]
4 changes: 4 additions & 0 deletions green/home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ def afilter(request):

def result(request):
return render(request,'result.html')
def contact(request):
return render(request,'contact.html')
def about(request):
return render(request,'about.html')
40 changes: 40 additions & 0 deletions green/templates/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<title>Transparent Login Form Design</title>
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'login.css'%}">

</head>

<body>
<div class="about-section">
<div class="inner-container">
<h2 style="text-align: center;">About Us</h2>
<center>
<h1>Welcome to our Crop Prediction System!</h1>
<p>Our advanced crop prediction system utilizes cutting-edge machine learning algorithms to forecast the most suitable crops for your agricultural land. By analyzing various factors such as soil type, climate conditions, historical crop data, and geographic location, our system provides accurate predictions to optimize your farming decisions.</p>

<p>With our user-friendly interface, you can input relevant information about your land and receive personalized recommendations for the best crops to cultivate. Whether you're a seasoned farmer or new to agriculture, our system empowers you to make informed choices and maximize your yield potential.</p>

<li>Precise Crop Recommendations: Receive tailored suggestions based on comprehensive analysis of soil properties, weather patterns, and regional agricultural trends.</li>
<li>Seasonal Variability: Adapt to changing seasons and climate fluctuations with dynamic crop recommendations updated in real-time.</li>
<li>Yield Estimation: Estimate potential crop yields to plan resources and maximize productivity.</li>
<li>Historical Insights: Access historical data to understand crop performance over time and make data-driven decisions for future seasons.</li>
<li>Sustainability Focus: Embrace sustainable farming practices by selecting crops that promote soil health, water conservation, and biodiversity.</li>

<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
</center>
</div>
</div>
</body>
</html>
70 changes: 70 additions & 0 deletions green/templates/contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<html>
<head>
<title> Transparent Login Form Design </title>
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'login.css'%}">

</head>

<body>
<style>
.contact-box {
width: 400px;
margin: 0 auto; /* This centers the contact box horizontally */
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
/* background-color: #f9f9f9; */
}

.contact-box h1 {
text-align: center; /* Center the heading */
}

.contact-box form {
text-align: center; /* Center the form elements */
}

.contact-box form input[type="text"],
.contact-box form input[type="email"],
.contact-box form textarea {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}

.contact-box form input[type="submit"] {
width: 100%;
padding: 10px;
border: none;
border-radius: 5px;
background-color: #007bff;
color: white;
cursor: pointer;
}

.contact-box form input[type="submit"]:hover {
background-color: #0056b3;
}
</style>
<div class="contact-box">
<h1>Contact Us</h1>
<p>If you have any questions or inquiries, please feel free to contact us at <a href="mailto:[email protected]">[email protected]</a>.</p>
<form method="post">
{% csrf_token %}
<p>Name</p>
<input type="text" name="name" placeholder="Enter Your Name">
<p>Email</p>
<input type="email" name="email" placeholder="Enter Your Email">
<p>Message</p>
<textarea name="message" placeholder="Enter Your Message"></textarea>
<input type="submit" name="submit" value="Send">
</form>
</div>
</body>
</html>


6 changes: 3 additions & 3 deletions green/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<a href="#">CropRecommendation <span class="highlight">System</span></a>
</div>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
<li><a href="/home">Home</a></li>
<li><a href="/about">About</a></li>
<li><a href="/contact">Contact</a></li>
<li><a href="/login">Login</a></li>
<li><a href="/signup">Signup</a></li>
</ul>
Expand Down