-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
154 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,160 @@ | ||
// eslint-disable-next-line @next/next/no-img-element | ||
|
||
"use client"; | ||
import Navbar from "./components/navbar/Navbar"; | ||
import Link from "next/link"; | ||
import { NavTransition } from "./components/navbar/NavTransition"; | ||
export default function Home() { | ||
import Navbar from "./components/navbar/Navbar"; | ||
export default function Homepage() { | ||
return ( | ||
<div className="text-center md:text-start flex flex-col md:mx-[15%]"> | ||
<Navbar logStatus={false} /> | ||
<div className="mx-6 flex flex-col md:flex-row"> | ||
<div className="mt-12 grid grid-cols-1 xl:grid-cols-2"> | ||
<div className=""> | ||
<h1 className="text-6xl font-medium green-text">Foursight</h1> | ||
<h2 className="font-semibold text-4xl mt-12 w-full flex flex-col line-clamp-2"> | ||
Practice with virtual money,{" "} | ||
<span className="green-text">in the real market.</span> | ||
</h2> | ||
|
||
<h2 className="font-semibold text-3xl mt-4"> | ||
Get access to real time data graphical analysis of{" "} | ||
<span className="green-text">2000+ stocks.</span> | ||
</h2> | ||
</div> | ||
</div> | ||
<div className="flex justify-center items-center"> | ||
<img | ||
src="/StockPage.jpg" | ||
alt="Foursight Logo" | ||
className="w-full flex justify-center items-center my-12" | ||
/> | ||
</div> | ||
</div> | ||
<div className="flex justify-center"> | ||
<NavTransition className="" href={"/signup"}> | ||
<button className="my-12 bg-teal-700 hover:bg-teal-500 transition transition-all-0.5s text-white px-4 py-2 rounded-md"> | ||
Get Started{" "} | ||
</button> | ||
</NavTransition> | ||
<div className="flex flex-col min-h-screen"> | ||
<div className="text-center md:text-start flex flex-col md:mx-[15%]"> | ||
<Navbar logStatus={false} /> | ||
</div> | ||
|
||
<main className="flex-grow"> | ||
<section className="py-20 px-6 text-center bg-gradient-to-b from-white to-gray-100"> | ||
<h1 className="text-4xl font-extrabold tracking-tight lg:text-5xl mb-4 green-text"> | ||
Master the Market with Paper Trading | ||
</h1> | ||
<p className="text-xl text-gray-600 mb-8 max-w-2xl mx-auto"> | ||
Experience real-time market dynamics without the risk. Foursight | ||
brings you a comprehensive paper trading platform to hone your | ||
skills. | ||
</p> | ||
<NavTransition | ||
href="/signup" | ||
className="px-6 py-3 text-white bg-[#037a68] rounded-md hover:bg-teal-800 transition transition-all-0.5s text-lg font-semibold" | ||
> | ||
Start Trading Now | ||
<svg | ||
className="ml-2 h-4 w-4 inline-block" | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth={2} | ||
d="M9 5l7 7-7 7" | ||
/> | ||
</svg> | ||
</NavTransition> | ||
</section> | ||
|
||
<section className="py-16 px-6"> | ||
<h2 className="text-3xl font-bold text-center mb-12 green-text"> | ||
Powerful Features at Your Fingertips | ||
</h2> | ||
<div className="grid gap-8 md:grid-cols-2 lg:grid-cols-3 max-w-6xl mx-auto"> | ||
<FeatureCard | ||
icon={<span className="text-green-text">📊</span>} | ||
title="Live Data for 2000+ Stocks" | ||
description="Access real-time data for a wide range of stocks, ensuring you're always up-to-date with the market." | ||
/> | ||
<FeatureCard | ||
icon={<span className="text-green-text">👁️</span>} | ||
title="Advanced Charting" | ||
description="Visualize stock performance with our charting, helping you make informed decisions." | ||
/> | ||
<FeatureCard | ||
icon={<span className="text-green-text">📈</span>} | ||
title="Paper Trading Portfolio" | ||
description="Build and manage your virtual portfolio, testing strategies without risking real money." | ||
/> | ||
<FeatureCard | ||
icon={<span className="text-green-text">📊</span>} | ||
title="Customizable Watchlists" | ||
description="Create and monitor personalized watchlists to keep track of your favorite stocks." | ||
/> | ||
<FeatureCard | ||
icon={<span className="text-green-text">🔻</span>} | ||
title="Live Top Movers" | ||
description="Stay informed with real-time data on top gainers, losers, and most active stocks across all market caps." | ||
/> | ||
|
||
<FeatureCard | ||
icon={<span className="text-green-text">💻</span>} | ||
title="All Open Source" | ||
description="Foursight is an open-source project, built for aspiring traders." | ||
/> | ||
</div> | ||
</section> | ||
|
||
<section className="py-16 px-6 bg-gray-100"> | ||
<h2 className="text-3xl font-bold text-center mb-12 green-text"> | ||
Experience the Power of Foursight | ||
</h2> | ||
<div className="grid gap-8 md:grid-cols-2 max-w-6xl mx-auto"> | ||
<Card | ||
title="Intuitive Dashboard" | ||
description="Get a comprehensive view of the market and your portfolio at a glance." | ||
image="/StockPage.jpg" | ||
/> | ||
<Card | ||
title="Detailed Portfolio Analysis" | ||
description="Track your performance with in-depth portfolio analytics and insights." | ||
image="/Portfolio.jpg" | ||
/> | ||
</div> | ||
</section> | ||
|
||
<section className="py-20 px-6 text-center"> | ||
<h2 className="text-3xl font-bold mb-4 green-text"> | ||
Ready to Start Your Trading Journey? | ||
</h2> | ||
<p className="text-xl text-gray-600 mb-8 max-w-2xl mx-auto"> | ||
Join traders who are honing their skills with Foursight. Sign up | ||
today and take your first step towards mastering the market. | ||
</p> | ||
<NavTransition | ||
href="/signup" | ||
className="px-6 py-3 text-white bg-[#037a68] rounded-md hover:bg-teal-800 transition transition-all-0.5s text-lg font-semibold" | ||
> | ||
Create Your Free Account | ||
<svg | ||
className="ml-2 h-4 w-4 inline-block" | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth={2} | ||
d="M9 5l7 7-7 7" | ||
/> | ||
</svg> | ||
</NavTransition> | ||
</section> | ||
</main> | ||
|
||
<footer className="py-6 px-6 bg-white border-t text-center text-sm text-gray-600"> | ||
<p>© 2024 Harsh Iyer. All rights reserved.</p> | ||
</footer> | ||
</div> | ||
); | ||
} | ||
|
||
function FeatureCard({ icon, title, description }: any) { | ||
return ( | ||
<div className="border rounded-lg p-6 shadow-sm bg-white"> | ||
<div className="mb-2">{icon}</div> | ||
<h3 className="text-lg font-bold green-text">{title}</h3> | ||
<p className="text-gray-600">{description}</p> | ||
</div> | ||
); | ||
} | ||
|
||
function Card({ title, description, image }: any) { | ||
return ( | ||
<div className="border rounded-lg p-6 shadow-sm bg-white"> | ||
<h3 className="text-lg font-bold green-text">{title}</h3> | ||
<p className="text-gray-600 mb-4">{description}</p> | ||
<img | ||
src={image} | ||
alt={`${title} Screenshot`} | ||
className="rounded-lg shadow-md w-full" | ||
/> | ||
</div> | ||
); | ||
} |