Change to white backgrounds for content. Remove page's margin, set individually.
This commit is contained in:
parent
77eaf070e6
commit
f2c4d3e9c1
|
@ -134,11 +134,9 @@ export function BetPanel(props: {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Col
|
<Col className={clsx('bg-white px-8 py-6 rounded-md', className)}>
|
||||||
className={clsx('bg-gray-100 shadow-md px-8 py-6 rounded-md', className)}
|
|
||||||
>
|
|
||||||
<Title
|
<Title
|
||||||
className={clsx('!mt-0', title ? '!text-xl' : '!text-neutral')}
|
className={clsx('!mt-0', title ? '!text-xl' : '')}
|
||||||
text={panelTitle}
|
text={panelTitle}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ export function BetsList(props: { user: User }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Col className="mt-6 gap-6">
|
<Col className="mt-6 gap-6">
|
||||||
<Row className="gap-8">
|
<Row className="mx-4 md:mx-0 gap-8">
|
||||||
<Col>
|
<Col>
|
||||||
<div className="text-sm text-gray-500">Currently invested</div>
|
<div className="text-sm text-gray-500">Currently invested</div>
|
||||||
<div>{formatMoney(currentBets)}</div>
|
<div>{formatMoney(currentBets)}</div>
|
||||||
|
|
|
@ -673,7 +673,7 @@ export function ContractFeed(props: {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flow-root">
|
<div className="flow-root pr-2 md:pr-0">
|
||||||
<ul role="list" className={clsx(tradingAllowed(contract) ? '' : '-mb-8')}>
|
<ul role="list" className={clsx(tradingAllowed(contract) ? '' : '-mb-8')}>
|
||||||
{items.map((activityItem, activityItemIdx) => (
|
{items.map((activityItem, activityItemIdx) => (
|
||||||
<li key={activityItem.id}>
|
<li key={activityItem.id}>
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
import clsx from 'clsx'
|
import clsx from 'clsx'
|
||||||
import { NavBar } from './nav-bar'
|
import { NavBar } from './nav-bar'
|
||||||
|
|
||||||
export function Page(props: { wide?: boolean; children?: any }) {
|
export function Page(props: {
|
||||||
const { wide, children } = props
|
wide?: boolean
|
||||||
|
margin?: boolean
|
||||||
|
children?: any
|
||||||
|
}) {
|
||||||
|
const { wide, margin, children } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
@ -10,8 +14,9 @@ export function Page(props: { wide?: boolean; children?: any }) {
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'w-full px-2 pb-8 mx-auto',
|
'w-full mx-auto',
|
||||||
wide ? 'max-w-6xl' : 'max-w-4xl'
|
wide ? 'max-w-6xl' : 'max-w-4xl',
|
||||||
|
margin && 'px-4'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
|
|
@ -57,10 +57,8 @@ export function ResolutionPanel(props: {
|
||||||
: 'btn-disabled'
|
: 'btn-disabled'
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Col
|
<Col className={clsx('bg-white px-8 py-6 rounded-md', className)}>
|
||||||
className={clsx('bg-gray-100 shadow-md px-8 py-6 rounded-md', className)}
|
<Title className="mt-0" text="Your market" />
|
||||||
>
|
|
||||||
<Title className="mt-0 text-neutral" text="Your market" />
|
|
||||||
|
|
||||||
<div className="pt-2 pb-1 text-sm text-gray-500">Resolve outcome</div>
|
<div className="pt-2 pb-1 text-sm text-gray-500">Resolve outcome</div>
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ export function UserPage(props: { user: User; currentUser?: User }) {
|
||||||
url={`/@${user.username}`}
|
url={`/@${user.username}`}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Title text={possesive + 'markets'} />
|
<Title className="mx-4 md:mx-0" text={possesive + 'markets'} />
|
||||||
|
|
||||||
<CreatorContractsList creator={user} />
|
<CreatorContractsList creator={user} />
|
||||||
</Page>
|
</Page>
|
||||||
|
|
|
@ -97,8 +97,8 @@ export default function ContractPage(props: {
|
||||||
ogCardProps={ogCardProps}
|
ogCardProps={ogCardProps}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Col className="w-full md:flex-row justify-between mt-6">
|
<Col className="w-full md:flex-row justify-between">
|
||||||
<div className="flex-[3]">
|
<div className="flex-[3] bg-white px-2 py-6 md:px-6 md:py-8 rounded border-0 border-gray-100">
|
||||||
<ContractOverview
|
<ContractOverview
|
||||||
contract={contract}
|
contract={contract}
|
||||||
bets={bets ?? []}
|
bets={bets ?? []}
|
||||||
|
@ -109,7 +109,7 @@ export default function ContractPage(props: {
|
||||||
|
|
||||||
{(allowTrade || allowResolve) && (
|
{(allowTrade || allowResolve) && (
|
||||||
<>
|
<>
|
||||||
<div className="md:ml-8" />
|
<div className="md:ml-6" />
|
||||||
|
|
||||||
<Col className="flex-1">
|
<Col className="flex-1">
|
||||||
{allowTrade && (
|
{allowTrade && (
|
||||||
|
|
|
@ -5,7 +5,7 @@ import styles from './about.module.css'
|
||||||
|
|
||||||
export default function About() {
|
export default function About() {
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page margin>
|
||||||
<SEO title="About" description="About" url="/about" />
|
<SEO title="About" description="About" url="/about" />
|
||||||
<Contents />
|
<Contents />
|
||||||
</Page>
|
</Page>
|
||||||
|
|
|
@ -63,7 +63,8 @@ export default function Folds(props: {
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
<Col className="items-center">
|
<Col className="items-center">
|
||||||
<Col className="max-w-lg w-full px-2 sm:px-0">
|
<Col className="max-w-lg w-full">
|
||||||
|
<Col className="px-4 sm:px-0">
|
||||||
<Row className="justify-between items-center">
|
<Row className="justify-between items-center">
|
||||||
<Title text="Explore folds" />
|
<Title text="Explore folds" />
|
||||||
{user && <CreateFoldButton />}
|
{user && <CreateFoldButton />}
|
||||||
|
@ -73,6 +74,7 @@ export default function Folds(props: {
|
||||||
Folds are communities on Manifold centered around a collection of
|
Folds are communities on Manifold centered around a collection of
|
||||||
markets.
|
markets.
|
||||||
</div>
|
</div>
|
||||||
|
</Col>
|
||||||
|
|
||||||
<Col className="gap-2">
|
<Col className="gap-2">
|
||||||
{folds.map((fold) => (
|
{folds.map((fold) => (
|
||||||
|
|
|
@ -87,7 +87,6 @@ const Home = (props: {
|
||||||
<Page>
|
<Page>
|
||||||
<Col className="items-center">
|
<Col className="items-center">
|
||||||
<Col className="max-w-3xl">
|
<Col className="max-w-3xl">
|
||||||
<div className="-mx-2 sm:mx-0">
|
|
||||||
<FeedCreate user={user ?? undefined} />
|
<FeedCreate user={user ?? undefined} />
|
||||||
<Spacer h={4} />
|
<Spacer h={4} />
|
||||||
|
|
||||||
|
@ -102,7 +101,6 @@ const Home = (props: {
|
||||||
contractBets={activeContractBets ?? []}
|
contractBets={activeContractBets ?? []}
|
||||||
contractComments={activeContractComments ?? []}
|
contractComments={activeContractComments ?? []}
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
</Col>
|
</Col>
|
||||||
</Col>
|
</Col>
|
||||||
</Page>
|
</Page>
|
||||||
|
|
|
@ -30,9 +30,7 @@ const Home = (props: { hotContracts: Contract[] }) => {
|
||||||
<Page>
|
<Page>
|
||||||
<Col className="items-center">
|
<Col className="items-center">
|
||||||
<Col className="max-w-3xl">
|
<Col className="max-w-3xl">
|
||||||
<div className="-mx-2 sm:mx-0">
|
|
||||||
<FeedPromo hotContracts={hotContracts ?? []} />
|
<FeedPromo hotContracts={hotContracts ?? []} />
|
||||||
</div>
|
|
||||||
</Col>
|
</Col>
|
||||||
</Col>
|
</Col>
|
||||||
</Page>
|
</Page>
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default function TradesPage() {
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
<SEO title="Your trades" description="Your trades" url="/trades" />
|
<SEO title="Your trades" description="Your trades" url="/trades" />
|
||||||
<Title text="Your trades" />
|
<Title className="mx-4 md:mx-0" text="Your trades" />
|
||||||
{user && <BetsList user={user} />}
|
{user && <BetsList user={user} />}
|
||||||
</Page>
|
</Page>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user