-
+
{contract.question}
@@ -52,8 +52,8 @@ function ContractCard(props: { contract: Contract }) {
export function ContractsList(props: { contracts: Contract[] }) {
const { contracts } = props
return (
-
-
+
+
{contracts.map((contract) => (
))}
diff --git a/web/components/title.tsx b/web/components/title.tsx
new file mode 100644
index 00000000..f244bdf5
--- /dev/null
+++ b/web/components/title.tsx
@@ -0,0 +1,8 @@
+export function Title(props: { text: string }) {
+ const { text } = props
+ return (
+
+ {text}
+
+ )
+}
diff --git a/web/package-lock.json b/web/package-lock.json
index e77370b8..08ef3fcb 100644
--- a/web/package-lock.json
+++ b/web/package-lock.json
@@ -9,7 +9,7 @@
"@headlessui/react": "1.4.2",
"@heroicons/react": "1.0.5",
"chart.js": "3.6.1",
- "clsx": "^1.1.1",
+ "clsx": "1.1.1",
"daisyui": "1.16.2",
"firebase": "9.6.0",
"next": "12.0.4",
diff --git a/web/pages/_document.tsx b/web/pages/_document.tsx
index 91a70e51..3b005b96 100644
--- a/web/pages/_document.tsx
+++ b/web/pages/_document.tsx
@@ -2,7 +2,7 @@ import { Html, Head, Main, NextScript } from 'next/document'
export default function Document() {
return (
-
+
Mantic Markets
@@ -57,7 +57,7 @@ export default function Document() {
}}
/>
-
+
diff --git a/web/pages/account.tsx b/web/pages/account.tsx
index f210bd3b..13b89382 100644
--- a/web/pages/account.tsx
+++ b/web/pages/account.tsx
@@ -5,6 +5,7 @@ import { useUser } from '../hooks/use-user'
import { useState, useEffect } from 'react'
import { Contract, listContracts } from '../lib/firebase/contracts'
import { ContractsList } from '../components/contracts-list'
+import { Title } from '../components/title'
export default function Account() {
const user = useUser()
@@ -46,9 +47,7 @@ export default function Account() {
-
- Your markets
-
+
diff --git a/web/pages/contract/index.tsx b/web/pages/contract/index.tsx
index bc15e743..058a98f6 100644
--- a/web/pages/contract/index.tsx
+++ b/web/pages/contract/index.tsx
@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react'
import { ContractsList } from '../../components/contracts-list'
import { Header } from '../../components/header'
import { Spacer } from '../../components/layout/spacer'
+import { Title } from '../../components/title'
import { useUser } from '../../hooks/use-user'
import {
Contract,
@@ -55,10 +56,8 @@ export default function NewContract() {
-
- Create a new prediction market
-
-
+
+
{/* Create a Tailwind form that takes in all the fields needed for a new contract */}
{/* When the form is submitted, create a new contract in the database */}