Skip to content
Merged

new #128

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
13 changes: 11 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ const App = () => {
<Header />
<div className="content">
<Routes>
<Route path="/" element={<><StocksList /><AboutComponent /><ContactForm /></>} />
<Route
path="/"
element={
<>
<StocksList />
<AboutComponent />
<ContactForm />
</>
}
/>
<Route path="/login" element={<Login />} />
<Route path="/signup" element={<Signup />} />
<Route path="/stock/:ticker" element={<Stockdata />} />
Expand All @@ -31,11 +40,11 @@ const App = () => {
<Route path="/contact" element={<ContactForm />} />
</Routes>
</div>
<Footer />
</div>
</Router>
</AuthProvider>
);
};


export default App;
131 changes: 72 additions & 59 deletions src/components/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,67 +4,80 @@ import { MdOutlineDesignServices } from "react-icons/md";
import { FaLock, FaUsers, FaEnvelope } from "react-icons/fa";
import { FiRefreshCcw } from "react-icons/fi";
import { Link } from "react-router-dom";
import '../App.css';
import "../App.css";
import BackToTopBtn from "../components/BackToTopBtn";
const AboutComponent = () => {
return(
<>
<div className="">
<h1> About Us </h1>
<h3>Welcome to our AI Stock Analyzer</h3>
<br></br>
<p>Your personal companion for real-time stock insights.</p>
<p>Our app offers real-time stock data, user-friendly interfaces, and secure authentication to ensure a seamless trading experience.</p>
<p>Whether you are a beginner or an experienced trader, our platform is designed to help you make informed decisions and manage your investments effectively.</p>
<br></br>

<div className="grid-container">
<div className="grid-item on-hover">
<FaChartLine size={40} color="#27AE60" />
<h2 style={{ color: "#136fcaff" }}>Real-Time Data</h2>
<p>Access live stock prices and market trends to stay ahead in your trading journey.</p>
</div>
<div className="grid-item">
<MdOutlineDesignServices size={40} color="#27AE60" />
<h2 style={{ color: "#136fcaff" }}>User-Friendly Interface</h2>
<p>Navigate through our intuitive design that makes trading easy and efficient.</p>
</div>
<div className="grid-item">
<FaRobot size={40} color="#27AE60" />
<h2 style={{ color: "#136fcaff" }}>AI-Powered Predictions </h2>
<p>Accurate forecasts using Machine Learning and AI models.</p>
</div>
<div className="grid-item">
<FaChartLine size={40} color="#27AE60" />
<h2 style={{ color: "#136fcaff" }}>Market Trend Analysis </h2>
<p>Clear visuals to show current and future trends.</p>
</div>
<div className="grid-item">
<FiRefreshCcw size={40} color="#27AE60" />
<h2 style={{ color: "#136fcaff" }}>Continuous Updates</h2>
<p>We are constantly improving our app to provide you with the best trading experience.</p>
</div>
<div className="grid-item">
<FaClock size={40} color="#27AE60" />
<h2 style={{ color: "#136fcaff" }}>24/7 Data Monitoring </h2>
<p>Constant tracking for updated insights.</p>
</div>
return (
<>
<div id="About">
<h1> About Us </h1>
<h3>Welcome to our AI Stock Analyzer</h3>
<br></br>
<p>Your personal companion for real-time stock insights.</p>
<p>
Our app offers real-time stock data, user-friendly interfaces, and
secure authentication to ensure a seamless trading experience.
</p>
<p>
Whether you are a beginner or an experienced trader, our platform is
designed to help you make informed decisions and manage your
investments effectively.
</p>
<br></br>

</div>
<br></br>


<div className="button-container">
<Link to="/stocks">
<button>Get Started Now</button>
</Link>
</div>
<br></br>
<br></br>
<div className="grid-container">
<div className="grid-item on-hover">
<FaChartLine size={40} color="#27AE60" />
<h2 style={{ color: "#136fcaff" }}>Real-Time Data</h2>
<p>
Access live stock prices and market trends to stay ahead in your
trading journey.
</p>
</div>
<div className="grid-item">
<MdOutlineDesignServices size={40} color="#27AE60" />
<h2 style={{ color: "#136fcaff" }}>User-Friendly Interface</h2>
<p>
Navigate through our intuitive design that makes trading easy and
efficient.
</p>
</div>
<div className="grid-item">
<FaRobot size={40} color="#27AE60" />
<h2 style={{ color: "#136fcaff" }}>AI-Powered Predictions </h2>
<p>Accurate forecasts using Machine Learning and AI models.</p>
</div>
<div className="grid-item">
<FaChartLine size={40} color="#27AE60" />
<h2 style={{ color: "#136fcaff" }}>Market Trend Analysis </h2>
<p>Clear visuals to show current and future trends.</p>
</div>
<div className="grid-item">
<FiRefreshCcw size={40} color="#27AE60" />
<h2 style={{ color: "#136fcaff" }}>Continuous Updates</h2>
<p>
We are constantly improving our app to provide you with the best
trading experience.
</p>
</div>
<div className="grid-item">
<FaClock size={40} color="#27AE60" />
<h2 style={{ color: "#136fcaff" }}>24/7 Data Monitoring </h2>
<p>Constant tracking for updated insights.</p>
</div>
</div>
<BackToTopBtn/>
</>
<br></br>

);
}
export default AboutComponent;
<div className="button-container">
<Link to="/stocks">
<button>Get Started Now</button>
</Link>
</div>
<br></br>
<br></br>
</div>
<BackToTopBtn />
</>
);
};
export default AboutComponent;
13 changes: 5 additions & 8 deletions src/components/Signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createUserWithEmailAndPassword } from "firebase/auth";
import { auth, database } from "./firebase";
import { ref, set } from "firebase/database";
import { Link, useNavigate } from "react-router-dom";
import "./Signup.css";
import "./Signup.css";
console.log("Login component rendered");
const Signup = () => {
const [email, setEmail] = useState("");
Expand Down Expand Up @@ -52,15 +52,12 @@ const Signup = () => {
{error && <p className="login-error">{error}</p>}
<button type="submit">Signup</button>
</form>
import { Link } from "react-router-dom";

<p>
Already have an account? <Link to="/login">Login</Link>
</p>

<p>
Already have an account? <Link to="/login">Login</Link>
</p>
</div>
</div>
);
};

export default Signup;
export default Signup;