From 55479ef4ab9e3c07d8b8f0beb5548d0728031dd2 Mon Sep 17 00:00:00 2001 From: jahooma Date: Fri, 17 Dec 2021 19:47:39 -0600 Subject: [PATCH] Move hero and landing page to /landing-page. Add bouncing arrow. --- web/components/hero.tsx | 50 ----------- web/pages/index.tsx | 116 +----------------------- web/pages/landing-page.tsx | 176 +++++++++++++++++++++++++++++++++++++ 3 files changed, 177 insertions(+), 165 deletions(-) delete mode 100644 web/components/hero.tsx create mode 100644 web/pages/landing-page.tsx diff --git a/web/components/hero.tsx b/web/components/hero.tsx deleted file mode 100644 index 3c78d994..00000000 --- a/web/components/hero.tsx +++ /dev/null @@ -1,50 +0,0 @@ -import { firebaseLogin } from '../lib/firebase/users' -import { Header } from './header' - -export const Hero = () => { - return ( -
-
-
{ - const aboutElem = document.getElementById('about') - window.scrollTo({ top: aboutElem?.offsetTop, behavior: 'smooth' }) - }} - > - About -
-
-
-
-
-
-
-
-

-
Create your own
-
- prediction markets -
-

-

- Better forecasting through accessible prediction markets for - you and your community -

-
- -
-
-
-
-
-
-
-
- ) -} diff --git a/web/pages/index.tsx b/web/pages/index.tsx index d86a2c05..76164807 100644 --- a/web/pages/index.tsx +++ b/web/pages/index.tsx @@ -1,19 +1,9 @@ import React from 'react' -import { - LightningBoltIcon, - ScaleIcon, - UserCircleIcon, - BeakerIcon, -} from '@heroicons/react/outline' - import type { NextPage } from 'next' -import { Hero } from '../components/hero' import { useUser } from '../hooks/use-user' import Markets from './markets' -import { useContracts } from '../hooks/use-contracts' -import { SearchableGrid } from '../components/contracts-list' -import { Col } from '../components/layout/col' +import LandingPage from './landing-page' const Home: NextPage = () => { const user = useUser() @@ -22,108 +12,4 @@ const Home: NextPage = () => { return user ? : } -function LandingPage() { - return ( -
- - - -
- ) -} - -const notionAboutUrl = - 'https://mantic.notion.site/About-Mantic-Markets-7c44bc161356474cad54cba2d2973fe2' - -function FeaturesSection() { - const features = [ - { - name: 'Easy to participate', - description: 'Sign up for free and make your own predictions in seconds!', - icon: UserCircleIcon, - }, - { - name: 'Play money, real results', - description: - 'Get accurate predictions by betting with Mantic Dollars, our virtual currency.', - icon: LightningBoltIcon, - }, - { - name: 'Creator-driven markets', - description: - 'Resolve markets you create with your own judgment—enabling new markets with subjective or personal questions', - icon: ScaleIcon, - }, - { - name: 'Become smarter', - description: - 'Bet on questions that matter and share the forecasts. With better information, we can all make better decisions.', - icon: BeakerIcon, - }, - ] - - return ( -
-
-
-
-

- Mantic Markets -

-

- Better forecasting for everyone -

-

- The easiest way to get an accurate forecast on anything -

-
- -
-
- {features.map((feature) => ( -
-
-
-
-

- {feature.name} -

-
-
- {feature.description} -
-
- ))} -
-
-
- - - - Learn more - - -
-
- ) -} - -function ExploreMarketsSection() { - const contracts = useContracts() - - return ( -
-

- Explore our markets -

- -
- ) -} - export default Home diff --git a/web/pages/landing-page.tsx b/web/pages/landing-page.tsx new file mode 100644 index 00000000..69b6cb9c --- /dev/null +++ b/web/pages/landing-page.tsx @@ -0,0 +1,176 @@ +import React from 'react' +import { + LightningBoltIcon, + ScaleIcon, + UserCircleIcon, + BeakerIcon, + ArrowDownIcon, +} from '@heroicons/react/outline' + +import { firebaseLogin } from '../lib/firebase/users' +import { useContracts } from '../hooks/use-contracts' +import { SearchableGrid } from '../components/contracts-list' +import { Col } from '../components/layout/col' +import { Header } from '../components/header' + +export default function LandingPage() { + return ( +
+ + + +
+ ) +} + +function Hero() { + const scrollToAbout = () => { + const aboutElem = document.getElementById('about') + window.scrollTo({ top: aboutElem?.offsetTop, behavior: 'smooth' }) + } + + return ( +
+
+
+ About +
+
+
+
+
+
+
+
+

+
Create your own
+
+ prediction markets +
+

+

+ Better forecasting through accessible prediction markets for + you and your community +

+
+ +
+
+
+
+
+
+ +
+
+
+
+ ) +} + +const notionAboutUrl = + 'https://mantic.notion.site/About-Mantic-Markets-7c44bc161356474cad54cba2d2973fe2' + +function FeaturesSection() { + const features = [ + { + name: 'Easy to participate', + description: 'Sign up for free and make your own predictions in seconds!', + icon: UserCircleIcon, + }, + { + name: 'Play money, real results', + description: + 'Get accurate predictions by betting with Mantic Dollars, our virtual currency.', + icon: LightningBoltIcon, + }, + { + name: 'Creator-driven markets', + description: + 'Resolve markets you create with your own judgment—enabling new markets with subjective or personal questions', + icon: ScaleIcon, + }, + { + name: 'Become smarter', + description: + 'Bet on questions that matter and share the forecasts. With better information, we can all make better decisions.', + icon: BeakerIcon, + }, + ] + + return ( +
+
+
+
+

+ Mantic Markets +

+

+ Better forecasting for everyone +

+

+ The easiest way to get an accurate forecast on anything +

+
+ +
+
+ {features.map((feature) => ( +
+
+
+
+

+ {feature.name} +

+
+
+ {feature.description} +
+
+ ))} +
+
+
+ + + + Learn more + + +
+
+ ) +} + +function ExploreMarketsSection() { + const contracts = useContracts() + + return ( +
+

+ Explore our markets +

+ +
+ ) +}