Commit Graph

587 Commits

Author SHA1 Message Date
mantikoros
df4ecb3fe2 move prettier config to top level 2022-01-10 17:44:42 -06:00
mantikoros
a1aeabeab4 move market logic to common 2022-01-10 16:49:13 -06:00
mantikoros
8266fb995c safer payUser 2022-01-10 16:49:13 -06:00
mantikoros
129d66c10f improve slugs 2022-01-10 16:49:13 -06:00
jahooma
c5ab1ba2e0 HTML resolved market email 2022-01-10 16:08:38 -06:00
mantikoros
b97a65cf2c refactor data structures, calculations to common directory 2022-01-10 15:07:57 -06:00
jahooma
dd6edc3b7a Use sale amount for sold bets. Round one more item in the feed. 2022-01-10 11:38:44 -06:00
jahooma
188ab66029 Don't wrap text on Sign in to trade button 2022-01-10 11:02:43 -06:00
jahooma
d47e2f5d93 Decrease wide page width from 7xl to 6xl 2022-01-10 10:48:13 -06:00
jahooma
a04c978408 Keep page wide if showing resolve panel 2022-01-10 10:33:02 -06:00
jahooma
829c8a4b75 Disallow selling after close time! Enforce no trading after close on server. 2022-01-10 10:33:02 -06:00
mantikoros
01506fedeb about page 2022-01-10 01:12:14 -06:00
Austin Chen
a9b4570fff Cut creator name from OG card metadata
(It's already on the top)
2022-01-10 02:09:39 -05:00
Austin Chen
feca042e47
Use the generated OpenGraph card in all markets (#23)
* Run OpenGraph server on dev port 3001

* Cut '%' since frontend already passes it

* Use the generated card in markets

* Rename to ogCardProps

* Don't show creator avatar url, for now

* Remove bad comment
2022-01-10 02:05:24 -05:00
Austin Chen
ed37d93868
Dynamically generate Opengraph images for each market (#21)
* Start customizing opengraph image

* Fix cover image size to 1200x630

* Design a text-based, dynamic preview card

* Load designed html into template.ts

Remove twemoji for now too

* Take in params to configure Manifold card

* Switch back to hardcoded png for default case
2022-01-10 00:50:31 -05:00
jahooma
179fa8c608 Stephen's feedback: change 🔥 => 24h vol in card 2022-01-09 17:59:37 -06:00
jahooma
7528ac0604 Filter out creators and tags with no 7 day volume and sort displayed contracts by 7 day volume. 2022-01-09 15:55:10 -06:00
jahooma
e655462a2f When sorting by creator or tag, use 7 day volume instead of pool size. 2022-01-09 15:32:04 -06:00
jahooma
cedd8df45c Show hot market 24 hour volume instead of pool 2022-01-09 15:21:30 -06:00
jahooma
d1c6e5bc91 Change useContracts to return undefined instead of 'loading'. Serve static props on tag page 2022-01-09 14:51:20 -06:00
jahooma
16ab0e0c37 Query hot contracts from volume24Hours field. 2022-01-09 14:26:51 -06:00
jahooma
6b4417d8b8 Every 15 minutes, compute contract volume in last 24 hours and 7 days 2022-01-09 13:34:42 -06:00
jahooma
6d4554e9ef Don't show resolved markets in hot markets 2022-01-09 12:14:20 -06:00
jahooma
34b208f63d ...and gray-500 text for resolution panel 2022-01-08 23:12:53 -06:00
jahooma
519dda6473 Use gray-500 instead of gray-400 for text against gray bg. 2022-01-08 23:10:08 -06:00
jahooma
e4206d6277 Add an extra new line when you add to a market description 2022-01-08 23:09:19 -06:00
jahooma
1013192281 Show the floor of your balance 2022-01-08 12:14:20 -06:00
mantikoros
abb5d53431 ensure bet amounts are positive 2022-01-08 11:51:42 -06:00
jahooma
6398f93ffe Show just the hot markets on homepage. 2022-01-08 00:23:50 -06:00
jahooma
44fa4f263b Encode referrer url param for stripe checkout 2022-01-07 18:51:16 -06:00
James Grugett
af6387bbf3
Stripe (#22)
* basic working payments

* Select funds amount and prettier funds button / dialog

* Add funds page and nav menu option

* Format funds amount. Use ghost button for back.

* Add mantic dollars description

* Improve styles of add funds page

* about styling

* change faq => about

* change default font to Courier

* header sign out menu item; remove user  card

* keep logo font

* fix header issue

* stripe webhook: handle repeat events

* Make add funds button a gradient

* add funds referer url

* Fix add funds page after merge

* Slight VisD tweaks

* Update add funds button position. Mantic => Manifold

* Remove Add funds menu option for now.

* Set up product ids and endpoint for stripe prod

* Swap back order in profile menu

Co-authored-by: mantikoros <sgrugett@gmail.com>
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-01-07 16:56:14 -06:00
Austin Chen
fccf52eb34 Use our new dynamic opengraph image 2022-01-07 12:19:17 -08:00
Austin Chen
03af90f17b Fix local dev setup 2022-01-07 12:16:51 -08:00
Austin Chen
4b2412c49c
Set up a custom OpenGraph image generator for social media previews (#20)
* Copy in og-image code

* Add "yarn start" command in lieu of vercel

* Don't require that images be sourced from vercel

* Load in Major Mono and Readex fonts

* Fix vercel config (?)

* Replace default image with Manifold's

* Add some brief instructions on getting started

* In the UI, use the default image

* Fix typescript errors

* More typescript fixing
2022-01-07 12:07:38 -08:00
mantikoros
b1b371e708 fix rules 2022-01-07 13:47:55 -06:00
mantikoros
1b69a34270 allow updating contract description 2022-01-07 13:29:23 -06:00
jahooma
e3800de2ad Update resolution panel to gray bg 2022-01-06 22:00:23 -06:00
mantikoros
a7c42ee8ec meta image tag 2022-01-06 21:54:11 -06:00
mantikoros
59034839a9 meta tag image 2022-01-06 21:41:29 -06:00
jahooma
bdb46fc7c1 Tweaks for create market page 2022-01-06 21:32:46 -06:00
jahooma
6d86a5eb49 Merge branch 'manifold' 2022-01-06 18:44:49 -06:00
jahooma
4390ee4314 Send transactional email from manifold.markets 2022-01-06 18:33:19 -06:00
jahooma
bcd86ddce9 Rename user contracts 2022-01-06 18:05:48 -06:00
Austin Chen
928b34784c Merge branch 'main' of https://github.com/manticmarkets/mantic 2022-01-06 10:55:51 -08:00
Austin Chen
a333d8334e Return the new bet ID 2022-01-06 10:55:31 -08:00
James Grugett
85b5ee5cbc
Rename to Manifold Markets! (#19)
* Update logo and about page to manifold

* Change urls, titles / metatags, landing page
2022-01-06 12:48:30 -06:00
jahooma
b928d0e70c Change urls, titles / metatags, landing page 2022-01-06 12:40:27 -06:00
jahooma
0c9984287c Update logo and about page to manifold 2022-01-06 11:57:20 -06:00
Austin Chen
95472c5faf Tweak bet panel UI 2022-01-06 01:49:41 -08:00
Austin Chen
4659cab18c Only "Advanced" label should look clickable 2022-01-06 01:48:27 -08:00