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

fix: FAQ Page UI + fix: Title for About Us Page #39

Merged
merged 3 commits into from
Oct 10, 2024
Merged
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
5 changes: 5 additions & 0 deletions Contributing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,8 @@ Welcome to the FarmRuler project! We appreciate your contributions. Please add y
- **LinkedIn:** [LinkedIn Profile](https://www.linkedin.com/in/kumar--tushar/)
- **Info:** Full stack developer and blockchain developer

**Name:** [Abhishek Porwal](https://github.com/abhishek332)

- **GitHub:** [GitHub Profile](https://github.com/abhishek332)
- **LinkedIn:** [LinkedIn Profile](https://www.linkedin.com/in/abhishek-porwal-213726194/)
- **Info:** Frontend Developer with expertise in React.js, TypeScript, and the MERN stack. Specializes in building scalable web applications, optimizing performance, and delivering user-centric solutions. Experienced in using Next.js, Tailwind CSS, and WebSockets, with a focus on security and interactive dashboards..
3 changes: 2 additions & 1 deletion app/about/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
import React from 'react';
import Navbar from '../components/Navbar';
import Footer from '../components/Footer';
import PageTitle from '../components/PageTitle';

const AboutPage = () => {
return (
<div className="min-h-screen bg-gray-100 p-6">
<Navbar />
<div className="max-w-4xl mx-auto bg-white shadow-md rounded-lg p-8">
<h1 className="text-4xl font-bold text-center mb-6">About Us</h1>
<PageTitle title="About Us" />
<p className="text-lg text-gray-700 mb-4">
Welcome to FarmRuler! We&aposre on a mission to build an Incredible Full-Stack Web Application Specially For Person With Interest in Agriculture and Farming. This repository is a collaborative effort where we invite developers, designers, and enthusiasts to contribute and help bring this project to life.
</p>
Expand Down
9 changes: 9 additions & 0 deletions app/components/PageTitle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

const PageTitle = ({ title }) => {
return (
<h1 className="text-3xl font-bold mb-6 text-center text-green-600">{title}</h1>
)
}

export default PageTitle
72 changes: 40 additions & 32 deletions app/faq/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,58 @@
import React from 'react';
import Navbar from '../components/Navbar';
import Footer from '../components/Footer';
import PageTitle from '../components/PageTitle';

const FAQPage = () => {
const FAQ = ({ heading, value }) => {
return (
<div className="bg-gray-50 p-4 rounded-lg shadow">
<h2 className="text-xl font-semibold mb-2 text-green-600">{heading}</h2>
<p>{value}</p>
</div>
);
};

const faqData = [
{
heading: "Feature 1: Weather Conditions and AI Bots",
value: "A simple and clean UI to display weather conditions in specific regions. Create personalized AI bots.",
},
{
heading: "Feature 2: Connecting Agricultural Community with NASA",
value: "Challenge is to design a tool that connects the agricultural community with NASAs satellite and geospatial datasets in ways that increase data access, integration, and address environmental topics of concern to farmers.",
},
{
heading: "Feature 3: Improved Prediction and Risk Management",
value: "By integrating NASA datasets and data analyses in your tools design, you can create new solutions and prototypes that support farmers by providing improved prediction capacity, risk management, and/or decision-making processes.",
},
{
heading: "Feature 4: Resource Characteristics",
value: "Farmers will likely want to determine the characteristics of resources for selected spatial and temporal ranges. They will want to understand how the information relates to their specific situation (e.g., locale, size, and type of farm, etc.).",
},
{
heading: "Many More...",
value: "Explore more features and contribute to our project to help us build a comprehensive tool for the agricultural community.",
},
]

return (
<div className="min-h-screen bg-gray-100 p-6">
<Navbar/>
<div className="max-w-4xl mx-auto bg-white shadow-md rounded-lg p-8">
<h1 className="text-3xl font-bold mb-6 text-center">FarmRuler FAQ</h1>
<div className="max-w-4xl mx-auto bg-white shadow-md rounded-lg p-8 text-gray-700">
<PageTitle title="FarmRuler FAQ"/>
<p className="text-lg mb-4">
Welcome to FarmRuler! We re on a mission to build an incredible full-stack web application specially for persons with interest in agriculture and farming. This repository is a collaborative effort where we invite developers, designers, and enthusiasts to contribute and help bring this project to life.
</p>
<p className="text-lg mb-8">
🚀 Project Overview: FarmRuler aims to ease the agricultural activities. Our focus is on integrating AI and tech in the agricultural world and easing the procedure. Whether you re here to contribute code, design, or just explore, theres a place for you!
</p>
<div className="space-y-6">
<div className="bg-gray-50 p-4 rounded-lg shadow">
<h2 className="text-xl font-semibold mb-2">Feature 1: Weather Conditions and AI Bots</h2>
<p>
A simple and clean UI to display weather conditions in specific regions. Create personalized AI bots.
</p>
</div>
<div className="bg-gray-50 p-4 rounded-lg shadow">
<h2 className="text-xl font-semibold mb-2">Feature 2: Connecting Agricultural Community with NASA</h2>
<p>
Challenge is to design a tool that connects the agricultural community with NASAs satellite and geospatial datasets in ways that increase data access, integration, and address environmental topics of concern to farmers.
</p>
</div>
<div className="bg-gray-50 p-4 rounded-lg shadow">
<h2 className="text-xl font-semibold mb-2">Feature 3: Improved Prediction and Risk Management</h2>
<p>
By integrating NASA datasets and data analyses in your tools design, you can create new solutions and prototypes that support farmers by providing improved prediction capacity, risk management, and/or decision-making processes.
</p>
</div>
<div className="bg-gray-50 p-4 rounded-lg shadow">
<h2 className="text-xl font-semibold mb-2">Feature 4: Resource Characteristics</h2>
<p>
Farmers will likely want to determine the characteristics of resources for selected spatial and temporal ranges. They will want to understand how the information relates to their specific situation (e.g., locale, size, and type of farm, etc.).
</p>
</div>
<div className="bg-gray-50 p-4 rounded-lg shadow">
<h2 className="text-xl font-semibold mb-2">Many More...</h2>
<p>
Explore more features and contribute to our project to help us build a comprehensive tool for the agricultural community.
</p>
</div>
{
faqData.map((item, index) => (
<FAQ key={item.heading} heading={item.heading} value={item.value} />
))
}
</div>
</div>
<Footer/>
Expand Down