diff --git a/web/components/feed-create.tsx b/web/components/feed-create.tsx
index 2360e675..8feb4a41 100644
--- a/web/components/feed-create.tsx
+++ b/web/components/feed-create.tsx
@@ -1,11 +1,43 @@
import { useUser } from '../hooks/use-user'
import { AvatarWithIcon } from './contract-feed'
-import { Col } from './layout/col'
import { Title } from './title'
import Textarea from 'react-expanding-textarea'
import { useState } from 'react'
import { Spacer } from './layout/spacer'
import { NewContract } from '../pages/create'
+import { firebaseLogin } from '../lib/firebase/users'
+import { useHotContracts } from '../hooks/use-contracts'
+import { ContractsGrid } from './contracts-list'
+
+export function FeedPromo() {
+ // TODO: Encode in statc props
+ const hotContracts = useHotContracts()
+
+ return (
+
+
+
+ {' '}
+ and trade in any prediction market. Our hottest markets today:
+
+
+
+
+
+
+ Recent community activity
+
+
+ )
+}
export default function FeedCreate() {
const user = useUser()
@@ -13,7 +45,7 @@ export default function FeedCreate() {
if (!user) {
// TODO: Improve logged-out experience
- return
+ return
}
const placeholders = [
@@ -30,41 +62,39 @@ export default function FeedCreate() {
const placeholder = placeholders[daysSinceEpoch % placeholders.length]
return (
-
-
-
-
+
+
+
+ {/* TODO: Show focus, for accessibility */}
+
+
- {/* Hide component instead of deleting, so edits to NewContract don't get lost */}
-
-
-
- {/* Show a fake "Create Market" button, which gets replaced with the NewContract one*/}
- {!question && (
-
-
-
- )}
-
+ {/* Hide component instead of deleting, so edits to NewContract don't get lost */}
+
+
+
+ {/* Show a fake "Create Market" button, which gets replaced with the NewContract one*/}
+ {!question && (
+
+
+
+ )}
+
)
}
diff --git a/web/components/nav-bar.tsx b/web/components/nav-bar.tsx
index 7f62230a..246864b1 100644
--- a/web/components/nav-bar.tsx
+++ b/web/components/nav-bar.tsx
@@ -70,15 +70,12 @@ function NavOptions(props: { user: User | null; themeClasses: string }) {
{user === null ? (
<>
-
Sign in
-
+
>
) : (
<>
diff --git a/web/pages/index.tsx b/web/pages/index.tsx
index b49679b8..3443cd6d 100644
--- a/web/pages/index.tsx
+++ b/web/pages/index.tsx
@@ -11,6 +11,7 @@ import {
import { Bet, listAllBets } from '../lib/firebase/bets'
import FeedCreate from '../components/feed-create'
import { Spacer } from '../components/layout/spacer'
+import { Col } from '../components/layout/col'
export async function getStaticProps() {
const [contracts, recentComments] = await Promise.all([
@@ -46,13 +47,17 @@ const Home = (props: {
return (
-
-
-
+
+
+
+
+
+
+
)
}