fix; markdown in faqs, makers filters for contacts

This commit is contained in:
MTG2000
2022-09-10 11:06:52 +03:00
parent c44a9ece51
commit fdab0fa0d4
9 changed files with 175 additions and 166 deletions

View File

@@ -278,17 +278,17 @@ const getMakersInTournament = extendType({
OR: [
{
github: {
not: null
not: ''
}
},
{
twitter: {
not: null
not: ''
}
},
{
linkedin: {
not: null
not: ''
}
},
]
@@ -301,6 +301,7 @@ const getMakersInTournament = extendType({
})
const makers = (await prisma.tournamentParticipant.findMany({
where: {
tournament_id: args.tournamentId,

View File

@@ -3,248 +3,228 @@
const tournament = {
__typename: "Tournament",
id: 12,
title: "The Long Night",
start_date: "2022-09-30T21:00:00.000Z",
end_date: "2022-10-30T22:00:00.000Z",
title: "Legends of Lightning ⚡️",
start_date: "2022-10-12T21:00:00.000Z",
end_date: "2022-11-30T22:00:00.000Z",
cover_image: "https://imagedelivery.net/wyrwp3c-j0gDDUWgnE7lig/1d5d2c86-fe46-4478-6909-bb3c425c0d00/public",
thumbnail_image: "https://imagedelivery.net/wyrwp3c-j0gDDUWgnE7lig/37fb9cd6-e4f1-43f9-c3fe-7c3e119d5600/public",
location: "Online",
website: "#",
description:
description: // this field accepts markdown
`## Tournament Details
Lorem ipsum dolor sit **amet**, consectetur adipiscing elit. Semper turpis est, ac eget nullam. In leo at pharetra morbi ornare eget. Ultrices posuere senectus purus nulla vitae volutpat id id suspendisse. Urna mattis nulla diam semper erat. Mattis gravida ultrices aliquam odio. Praesent viverra egestas sed elementum nisl imperdiet a, non.
BOLT🔩FUNs maiden tournament, **Legends of Lightning** ⚡ will be an online global competition for makers to learn, connect, collaborate, and experiment with building innovative applications and tools with bitcoin and lightning.
#### Subtitle1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Semper turpis est, ac eget nullam. In leo at pharetra morbi ornare eget. Ultrices posuere senectus purus nulla vitae volutpat id id suspendisse. Urna mattis nulla diam semper erat. Mattis gravida ultrices aliquam odio. Praesent viverra egestas sed elementum nisl imperdiet a, non.
Spanning a 2-month period, makers can form teams, hack on projects, and show off their progress, activity, and updates as they compete for up to **$10,000 in bitcoin prizes**.
BOLT🔩FUN has partnered with a number of events, meetups, and hackathons to provide makers the opportunity to brainstorm, design, build, and accelerate their tournament projects over the course of a couple of months. At the end of the tournament, a panel of judges will access and score all submitted projects - announcing the winners in the second week of December!
#### Subtitle2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Semper turpis est, ac eget nullam. In leo at pharetra morbi ornare eget. Ultrices posuere senectus purus nulla vitae volutpat id id suspendisse. Urna mattis nulla diam semper erat. Mattis gravida ultrices aliquam odio. Praesent viverra egestas sed elementum nisl imperdiet a, non.
`, // markdown
prizes: [{
title: "stw3 champion",
amount: "$ 20k",
image: "https://imagedelivery.net/wyrwp3c-j0gDDUWgnE7lig/39217dcf-c900-46be-153f-169e3a1f0400/public",
},
{
title: "2nd place",
amount: "$ 5k",
image: "https://imagedelivery.net/wyrwp3c-j0gDDUWgnE7lig/39cdb7c8-5fbf-49ff-32cf-fdabc3aa2d00/public",
},
{
title: "3rd place ",
amount: "$ 2k",
image: "https://imagedelivery.net/wyrwp3c-j0gDDUWgnE7lig/75958797-73b2-4a62-52df-9f0f98c53900/public",
},
{
title: "best design ",
amount: "$ 1k",
image: "https://imagedelivery.net/wyrwp3c-j0gDDUWgnE7lig/fa7b7cdd-7c06-4ebe-1a2d-94af9d2dae00/public",
}],
events_count: 6,
makers_count: 668,
projects_count: 21,
prizes: [
{
title: "stw3 champion",
amount: "$ 5k",
image: "https://imagedelivery.net/wyrwp3c-j0gDDUWgnE7lig/39217dcf-c900-46be-153f-169e3a1f0400/public",
},
{
title: "2nd place",
amount: "$ 2.5k",
image: "https://imagedelivery.net/wyrwp3c-j0gDDUWgnE7lig/39cdb7c8-5fbf-49ff-32cf-fdabc3aa2d00/public",
},
{
title: "3rd place ",
amount: "$ 1.5k",
image: "https://imagedelivery.net/wyrwp3c-j0gDDUWgnE7lig/75958797-73b2-4a62-52df-9f0f98c53900/public",
},
{
title: "best design ",
amount: "$ 1k",
image: "https://imagedelivery.net/wyrwp3c-j0gDDUWgnE7lig/fa7b7cdd-7c06-4ebe-1a2d-94af9d2dae00/public",
}
],
events: [
{
id: 12,
title: "STW3 Round Table #1",
starts_at: "2022-09-30T21:00:00.000Z",
ends_at: "2022-10-30T22:00:00.000Z",
title: "Tab Conf 22",
starts_at: "2022-10-13T21:00:00.000Z",
ends_at: "2022-10-15T22:00:00.000Z",
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Diam morbi pellentesque velit congue. Aliquet rutrum a, augue vitae tincidunt ac egestas. Mauris nec fringilla diam eget fusce malesuada cum parturient. Nulla pretium purus odio odio.",
image: 'https://picsum.photos/id/10/400/800',
links: [],
location: "Online",
type: 1,
website: "https://event.name"
location: "Atlanta, GA",
type: 1, /** EVent typs encoding
*
Twitter Space: 0,
Workshop: 1,
IRL Meetup: 2,
Online Meetup: 3,
*/
website: "https://2022.tabconf.com/"
},
{
id: 13,
title: "STW3 Round Table #2",
starts_at: "2022-09-30T21:00:00.000Z",
ends_at: "2022-10-30T22:00:00.000Z",
title: "Bitcoin Amsterdam",
starts_at: "2022-10-12T21:00:00.000Z",
ends_at: "2022-10-14T22:00:00.000Z",
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Diam morbi pellentesque velit congue. Aliquet rutrum a, augue vitae tincidunt ac egestas. Mauris nec fringilla diam eget fusce malesuada cum parturient. Nulla pretium purus odio odio.",
image: 'https://picsum.photos/id/10/400/800',
links: [],
location: "Online",
location: "Amsterdam, NL",
type: 2,
website: "https://event.name"
website: "https://b.tc/conference/amsterdam"
},
{
id: 14,
title: "STW3 Round Table #3",
starts_at: "2022-09-30T21:00:00.000Z",
ends_at: "2022-10-30T22:00:00.000Z",
title: "Luganos Plan ₿",
starts_at: "2022-10-28T21:00:00.000Z",
ends_at: "2022-11-04T22:00:00.000Z",
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Diam morbi pellentesque velit congue. Aliquet rutrum a, augue vitae tincidunt ac egestas. Mauris nec fringilla diam eget fusce malesuada cum parturient. Nulla pretium purus odio odio.",
image: 'https://picsum.photos/id/10/400/800',
links: [],
location: "Online",
location: "Lugano, CH",
type: 3,
website: "https://event.name"
website: "https://planb.lugano.ch/"
},
{
id: 44,
title: "Lightning Login",
starts_at: "2022-09-30T21:00:00.000Z",
ends_at: "2022-10-30T22:00:00.000Z",
title: "Adopting Bitcoin 22",
starts_at: "2022-11-15T21:00:00.000Z",
ends_at: "2022-11-17T22:00:00.000Z",
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Diam morbi pellentesque velit congue. Aliquet rutrum a, augue vitae tincidunt ac egestas. Mauris nec fringilla diam eget fusce malesuada cum parturient. Nulla pretium purus odio odio.",
image: 'https://picsum.photos/id/10/400/800',
links: [],
location: "Online",
location: "El Salvador",
type: 2,
website: "https://event.name"
website: "https://adoptingbitcoin.org/2022/"
},
{
id: 46,
title: "Escrow contracts",
starts_at: "2022-09-30T21:00:00.000Z",
ends_at: "2022-10-30T22:00:00.000Z",
title: "PlebTLV",
starts_at: "2022-10-23T21:00:00.000Z",
ends_at: "2022-10-23T22:00:00.000Z",
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Diam morbi pellentesque velit congue. Aliquet rutrum a, augue vitae tincidunt ac egestas. Mauris nec fringilla diam eget fusce malesuada cum parturient. Nulla pretium purus odio odio.",
image: 'https://picsum.photos/id/10/400/800',
links: [],
location: "Online",
location: "Tel Aviv",
type: 2,
website: "https://event.name"
website: "https://plebtlv.com/"
},
{
id: 444,
title: "Lsats - What & Why",
starts_at: "2022-09-30T21:00:00.000Z",
ends_at: "2022-10-30T22:00:00.000Z",
title: "Bitcoin Designathon",
starts_at: "2022-10-12T21:00:00.000Z",
ends_at: "2022-10-16T22:00:00.000Z",
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Diam morbi pellentesque velit congue. Aliquet rutrum a, augue vitae tincidunt ac egestas. Mauris nec fringilla diam eget fusce malesuada cum parturient. Nulla pretium purus odio odio.",
image: 'https://picsum.photos/id/10/400/800',
links: [],
location: "Online",
type: 2,
website: "https://event.name"
website: "https://bitcoin.design"
},
],
judges: [
{
name: "Ben Arc",
name: "Roy Sheinfeld",
avatar: "https://s3-alpha-sig.figma.com/img/5e65/c22c/673b8f74ac43f024b036dbc4e6479e0d?Expires=1662940800&Signature=GR54s7FBcLGcPTVclWdmPjzU92tyrYpdUbbDUYKMUkdQbxq2yQlUhZ-AOLDHhOPY4P2G3aW2yT16b1AUbC8RBx1boH25MSrH-jpn6X57IJA-4ZeHP8zCo-yjTLpb8Gn~vudIi9rPfbwJ34stp-VeOAYMuOHlah3YO-B4MBsBv-NqhP7BMY4zz9vGdBLZhOjYQYdLZ2494Ae6L5FpD1ah3WD3U5qUN9dDvYvAtqYfhQeBOnsG6PfYoq8LouCuERC4S26BeooPg8UdGUCf324-SjEihCoL8mQFq80PSsaAZl5~EBOKRUx14FOprizMusaYN0K06E~fjDIDbM2Rmc9Xjg__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA",
company: "Company",
twitter: "@arcbtc"
company: "Breez",
twitter: "@therealkingonly"
},
{
name: "Ben Arc",
name: "John Carvalho",
avatar: "https://s3-alpha-sig.figma.com/img/5e65/c22c/673b8f74ac43f024b036dbc4e6479e0d?Expires=1662940800&Signature=GR54s7FBcLGcPTVclWdmPjzU92tyrYpdUbbDUYKMUkdQbxq2yQlUhZ-AOLDHhOPY4P2G3aW2yT16b1AUbC8RBx1boH25MSrH-jpn6X57IJA-4ZeHP8zCo-yjTLpb8Gn~vudIi9rPfbwJ34stp-VeOAYMuOHlah3YO-B4MBsBv-NqhP7BMY4zz9vGdBLZhOjYQYdLZ2494Ae6L5FpD1ah3WD3U5qUN9dDvYvAtqYfhQeBOnsG6PfYoq8LouCuERC4S26BeooPg8UdGUCf324-SjEihCoL8mQFq80PSsaAZl5~EBOKRUx14FOprizMusaYN0K06E~fjDIDbM2Rmc9Xjg__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA",
company: "Company",
twitter: "@arcbtc"
company: "Synonym",
twitter: "@BitcoinErrorLog"
},
{
name: "Ben Arc",
name: "Nifty Nei",
avatar: "https://s3-alpha-sig.figma.com/img/5e65/c22c/673b8f74ac43f024b036dbc4e6479e0d?Expires=1662940800&Signature=GR54s7FBcLGcPTVclWdmPjzU92tyrYpdUbbDUYKMUkdQbxq2yQlUhZ-AOLDHhOPY4P2G3aW2yT16b1AUbC8RBx1boH25MSrH-jpn6X57IJA-4ZeHP8zCo-yjTLpb8Gn~vudIi9rPfbwJ34stp-VeOAYMuOHlah3YO-B4MBsBv-NqhP7BMY4zz9vGdBLZhOjYQYdLZ2494Ae6L5FpD1ah3WD3U5qUN9dDvYvAtqYfhQeBOnsG6PfYoq8LouCuERC4S26BeooPg8UdGUCf324-SjEihCoL8mQFq80PSsaAZl5~EBOKRUx14FOprizMusaYN0K06E~fjDIDbM2Rmc9Xjg__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA",
company: "Company",
twitter: "@arcbtc"
company: "Blockstream",
twitter: "@niftynei"
},
{
name: "Ben Arc",
name: "Oleg Mikhalsky",
avatar: "https://s3-alpha-sig.figma.com/img/5e65/c22c/673b8f74ac43f024b036dbc4e6479e0d?Expires=1662940800&Signature=GR54s7FBcLGcPTVclWdmPjzU92tyrYpdUbbDUYKMUkdQbxq2yQlUhZ-AOLDHhOPY4P2G3aW2yT16b1AUbC8RBx1boH25MSrH-jpn6X57IJA-4ZeHP8zCo-yjTLpb8Gn~vudIi9rPfbwJ34stp-VeOAYMuOHlah3YO-B4MBsBv-NqhP7BMY4zz9vGdBLZhOjYQYdLZ2494Ae6L5FpD1ah3WD3U5qUN9dDvYvAtqYfhQeBOnsG6PfYoq8LouCuERC4S26BeooPg8UdGUCf324-SjEihCoL8mQFq80PSsaAZl5~EBOKRUx14FOprizMusaYN0K06E~fjDIDbM2Rmc9Xjg__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA",
company: "Company",
twitter: "@arcbtc"
company: "Fulgur Ventures",
twitter: "@olegmikh1"
},
{
name: "Ben Arc",
name: "Alyse Kileen",
avatar: "https://s3-alpha-sig.figma.com/img/5e65/c22c/673b8f74ac43f024b036dbc4e6479e0d?Expires=1662940800&Signature=GR54s7FBcLGcPTVclWdmPjzU92tyrYpdUbbDUYKMUkdQbxq2yQlUhZ-AOLDHhOPY4P2G3aW2yT16b1AUbC8RBx1boH25MSrH-jpn6X57IJA-4ZeHP8zCo-yjTLpb8Gn~vudIi9rPfbwJ34stp-VeOAYMuOHlah3YO-B4MBsBv-NqhP7BMY4zz9vGdBLZhOjYQYdLZ2494Ae6L5FpD1ah3WD3U5qUN9dDvYvAtqYfhQeBOnsG6PfYoq8LouCuERC4S26BeooPg8UdGUCf324-SjEihCoL8mQFq80PSsaAZl5~EBOKRUx14FOprizMusaYN0K06E~fjDIDbM2Rmc9Xjg__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA",
company: "Company",
twitter: "@arcbtc"
company: "Stillmark VC",
twitter: "@AlyseKilleen"
},
{
name: "Ben Arc",
name: "Johns Beharry",
avatar: "https://s3-alpha-sig.figma.com/img/5e65/c22c/673b8f74ac43f024b036dbc4e6479e0d?Expires=1662940800&Signature=GR54s7FBcLGcPTVclWdmPjzU92tyrYpdUbbDUYKMUkdQbxq2yQlUhZ-AOLDHhOPY4P2G3aW2yT16b1AUbC8RBx1boH25MSrH-jpn6X57IJA-4ZeHP8zCo-yjTLpb8Gn~vudIi9rPfbwJ34stp-VeOAYMuOHlah3YO-B4MBsBv-NqhP7BMY4zz9vGdBLZhOjYQYdLZ2494Ae6L5FpD1ah3WD3U5qUN9dDvYvAtqYfhQeBOnsG6PfYoq8LouCuERC4S26BeooPg8UdGUCf324-SjEihCoL8mQFq80PSsaAZl5~EBOKRUx14FOprizMusaYN0K06E~fjDIDbM2Rmc9Xjg__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA",
company: "Company",
twitter: "@arcbtc"
company: "Peak Shift",
twitter: "@johnsBeharry"
},
{
name: "Ben Arc",
name: "Ben Price",
avatar: "https://s3-alpha-sig.figma.com/img/5e65/c22c/673b8f74ac43f024b036dbc4e6479e0d?Expires=1662940800&Signature=GR54s7FBcLGcPTVclWdmPjzU92tyrYpdUbbDUYKMUkdQbxq2yQlUhZ-AOLDHhOPY4P2G3aW2yT16b1AUbC8RBx1boH25MSrH-jpn6X57IJA-4ZeHP8zCo-yjTLpb8Gn~vudIi9rPfbwJ34stp-VeOAYMuOHlah3YO-B4MBsBv-NqhP7BMY4zz9vGdBLZhOjYQYdLZ2494Ae6L5FpD1ah3WD3U5qUN9dDvYvAtqYfhQeBOnsG6PfYoq8LouCuERC4S26BeooPg8UdGUCf324-SjEihCoL8mQFq80PSsaAZl5~EBOKRUx14FOprizMusaYN0K06E~fjDIDbM2Rmc9Xjg__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA",
company: "Company",
twitter: "@arcbtc"
},
{
name: "Ben Arc",
avatar: "https://s3-alpha-sig.figma.com/img/5e65/c22c/673b8f74ac43f024b036dbc4e6479e0d?Expires=1662940800&Signature=GR54s7FBcLGcPTVclWdmPjzU92tyrYpdUbbDUYKMUkdQbxq2yQlUhZ-AOLDHhOPY4P2G3aW2yT16b1AUbC8RBx1boH25MSrH-jpn6X57IJA-4ZeHP8zCo-yjTLpb8Gn~vudIi9rPfbwJ34stp-VeOAYMuOHlah3YO-B4MBsBv-NqhP7BMY4zz9vGdBLZhOjYQYdLZ2494Ae6L5FpD1ah3WD3U5qUN9dDvYvAtqYfhQeBOnsG6PfYoq8LouCuERC4S26BeooPg8UdGUCf324-SjEihCoL8mQFq80PSsaAZl5~EBOKRUx14FOprizMusaYN0K06E~fjDIDbM2Rmc9Xjg__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA",
company: "Company",
twitter: "@arcbtc"
},
{
name: "Ben Arc",
avatar: "https://s3-alpha-sig.figma.com/img/5e65/c22c/673b8f74ac43f024b036dbc4e6479e0d?Expires=1662940800&Signature=GR54s7FBcLGcPTVclWdmPjzU92tyrYpdUbbDUYKMUkdQbxq2yQlUhZ-AOLDHhOPY4P2G3aW2yT16b1AUbC8RBx1boH25MSrH-jpn6X57IJA-4ZeHP8zCo-yjTLpb8Gn~vudIi9rPfbwJ34stp-VeOAYMuOHlah3YO-B4MBsBv-NqhP7BMY4zz9vGdBLZhOjYQYdLZ2494Ae6L5FpD1ah3WD3U5qUN9dDvYvAtqYfhQeBOnsG6PfYoq8LouCuERC4S26BeooPg8UdGUCf324-SjEihCoL8mQFq80PSsaAZl5~EBOKRUx14FOprizMusaYN0K06E~fjDIDbM2Rmc9Xjg__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA",
company: "Company",
twitter: "@arcbtc"
},
{
name: "Ben Arc",
avatar: "https://s3-alpha-sig.figma.com/img/5e65/c22c/673b8f74ac43f024b036dbc4e6479e0d?Expires=1662940800&Signature=GR54s7FBcLGcPTVclWdmPjzU92tyrYpdUbbDUYKMUkdQbxq2yQlUhZ-AOLDHhOPY4P2G3aW2yT16b1AUbC8RBx1boH25MSrH-jpn6X57IJA-4ZeHP8zCo-yjTLpb8Gn~vudIi9rPfbwJ34stp-VeOAYMuOHlah3YO-B4MBsBv-NqhP7BMY4zz9vGdBLZhOjYQYdLZ2494Ae6L5FpD1ah3WD3U5qUN9dDvYvAtqYfhQeBOnsG6PfYoq8LouCuERC4S26BeooPg8UdGUCf324-SjEihCoL8mQFq80PSsaAZl5~EBOKRUx14FOprizMusaYN0K06E~fjDIDbM2Rmc9Xjg__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA",
company: "Company",
twitter: "@arcbtc"
},
{
name: "Ben Arc",
avatar: "https://s3-alpha-sig.figma.com/img/5e65/c22c/673b8f74ac43f024b036dbc4e6479e0d?Expires=1662940800&Signature=GR54s7FBcLGcPTVclWdmPjzU92tyrYpdUbbDUYKMUkdQbxq2yQlUhZ-AOLDHhOPY4P2G3aW2yT16b1AUbC8RBx1boH25MSrH-jpn6X57IJA-4ZeHP8zCo-yjTLpb8Gn~vudIi9rPfbwJ34stp-VeOAYMuOHlah3YO-B4MBsBv-NqhP7BMY4zz9vGdBLZhOjYQYdLZ2494Ae6L5FpD1ah3WD3U5qUN9dDvYvAtqYfhQeBOnsG6PfYoq8LouCuERC4S26BeooPg8UdGUCf324-SjEihCoL8mQFq80PSsaAZl5~EBOKRUx14FOprizMusaYN0K06E~fjDIDbM2Rmc9Xjg__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA",
company: "Company",
twitter: "@arcbtc"
},
{
name: "Ben Arc",
avatar: "https://s3-alpha-sig.figma.com/img/5e65/c22c/673b8f74ac43f024b036dbc4e6479e0d?Expires=1662940800&Signature=GR54s7FBcLGcPTVclWdmPjzU92tyrYpdUbbDUYKMUkdQbxq2yQlUhZ-AOLDHhOPY4P2G3aW2yT16b1AUbC8RBx1boH25MSrH-jpn6X57IJA-4ZeHP8zCo-yjTLpb8Gn~vudIi9rPfbwJ34stp-VeOAYMuOHlah3YO-B4MBsBv-NqhP7BMY4zz9vGdBLZhOjYQYdLZ2494Ae6L5FpD1ah3WD3U5qUN9dDvYvAtqYfhQeBOnsG6PfYoq8LouCuERC4S26BeooPg8UdGUCf324-SjEihCoL8mQFq80PSsaAZl5~EBOKRUx14FOprizMusaYN0K06E~fjDIDbM2Rmc9Xjg__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA",
company: "Company",
twitter: "@arcbtc"
company: "The Bitcoin Company",
twitter: "@abitcoinperson"
},
],
faqs: [
{
question: "What is Shock the Web?",
question: "When does the tournament start and end?",
answer:
`Shock the Web is a virtual hackathon to promote, explore, build and design web applications that can interact with WebLN enabled wallets and browsers. We want to make building on bitcoin more accessible to the masses of web developers out there.
Bitcoin development can seem scary for new developers coming in, but it doesn't have to be. With the lightning network's toolkit and libraries a bunch of new opportunities are waiting to be explored. We hope these hackathons can be a chance for you to preview what is possible on bitcoin and the lightning network by fostering collaboration, hopefully shortening (or easing) any developer onboarding time, and helping you connect with other bitcoiners in a fun and friendly space.`
`The tournament starts when team and project registrations open on 12th October. The tournament will finish with submissions closing on 30th November, 2022. Judges will then score projects and announce the winners on the 12th December.`
},
{
question: "When and where will it take place?",
question: "When and how do we register our projects?",
answer:
`Shock the Web is a virtual hackathon to promote, explore, build and design web applications that can interact with WebLN enabled wallets and browsers. We want to make building on bitcoin more accessible to the masses of web developers out there.
Bitcoin development can seem scary for new developers coming in, but it doesn't have to be. With the lightning network's toolkit and libraries a bunch of new opportunities are waiting to be explored. We hope these hackathons can be a chance for you to preview what is possible on bitcoin and the lightning network by fostering collaboration, hopefully shortening (or easing) any developer onboarding time, and helping you connect with other bitcoiners in a fun and friendly space.`
`Makers can register their projects anytime between 12th October - 30th November. If a project is added on the tournament page, it is automatically registered and it will be judged at the end of the tournament.`
},
{
question: "What will we be doing?",
question: "How will projects be judged?",
answer:
`Shock the Web is a virtual hackathon to promote, explore, build and design web applications that can interact with WebLN enabled wallets and browsers. We want to make building on bitcoin more accessible to the masses of web developers out there.
`Projects will be judged and scored on the following criteria:
Bitcoin development can seem scary for new developers coming in, but it doesn't have to be. With the lightning network's toolkit and libraries a bunch of new opportunities are waiting to be explored. We hope these hackathons can be a chance for you to preview what is possible on bitcoin and the lightning network by fostering collaboration, hopefully shortening (or easing) any developer onboarding time, and helping you connect with other bitcoiners in a fun and friendly space.`
**1). 🎯 Value Proposition**
Does the project have a product market fit? Does it provide value to the bitcoin ecosystem and beyond?
**2). 🚨 Innovation**
Is it something we've seen before or does it bring something new and exciting to bitcoin and beyond?
**3). 👁️ Transparency (#BuildInPublic)**
Encouraging makers to #BuildInPublic. Has the projects team been transparent throughout their product design and development journey?
**4). ✅ Execution**
Makers should focus on attention to detail. How well has the project been executed?
**5). 🍒 UIUX Design**
Design can separate the good from the bad. Taking into account both UI and UX, how well has the application or feature been designed?
**6). 🔥 Je ne sais quoi**
Does the project have that extra level of pizazz or coolness? Does it raise the bar?`
},
{
question: "This is my first time hacking on lightning, will there be help?",
question: "Can I submit a project that I hacked on during another event?",
answer:
`Shock the Web is a virtual hackathon to promote, explore, build and design web applications that can interact with WebLN enabled wallets and browsers. We want to make building on bitcoin more accessible to the masses of web developers out there.
Bitcoin development can seem scary for new developers coming in, but it doesn't have to be. With the lightning network's toolkit and libraries a bunch of new opportunities are waiting to be explored. We hope these hackathons can be a chance for you to preview what is possible on bitcoin and the lightning network by fostering collaboration, hopefully shortening (or easing) any developer onboarding time, and helping you connect with other bitcoiners in a fun and friendly space.`
`Makers can submit their projects from other hackathons, events, and meetups that are registered as events within The Long Night tournament. This allows makers to take advantage of IRL + online meetups, workshops, hackerspaces, inspirational weekend events, and more.`
},
{
question: "This is my first time hacking on lightning, will there be help?",
question: "Can I submit multiple projects?",
answer:
`Shock the Web is a virtual hackathon to promote, explore, build and design web applications that can interact with WebLN enabled wallets and browsers. We want to make building on bitcoin more accessible to the masses of web developers out there.
Bitcoin development can seem scary for new developers coming in, but it doesn't have to be. With the lightning network's toolkit and libraries a bunch of new opportunities are waiting to be explored. We hope these hackathons can be a chance for you to preview what is possible on bitcoin and the lightning network by fostering collaboration, hopefully shortening (or easing) any developer onboarding time, and helping you connect with other bitcoiners in a fun and friendly space.`
`Yes, makers can submit multiple projects. However we encourage makers to focus on quality rather than quantity.`
},
{
question: "How many members can I have on my team?",
question: "How can I find other makers or projects to team up with?",
answer:
`Shock the Web is a virtual hackathon to promote, explore, build and design web applications that can interact with WebLN enabled wallets and browsers. We want to make building on bitcoin more accessible to the masses of web developers out there.
Bitcoin development can seem scary for new developers coming in, but it doesn't have to be. With the lightning network's toolkit and libraries a bunch of new opportunities are waiting to be explored. We hope these hackathons can be a chance for you to preview what is possible on bitcoin and the lightning network by fostering collaboration, hopefully shortening (or easing) any developer onboarding time, and helping you connect with other bitcoiners in a fun and friendly space.`
`You can see a list of makers who are open to connect in the tournaments Makers tab. You can also search for projects that are looking to recruit members.`
},
{
question: "Who will choose the winners?",
question: "This is my first time hacking on bitcoin, is there any help?",
answer:
`Shock the Web is a virtual hackathon to promote, explore, build and design web applications that can interact with WebLN enabled wallets and browsers. We want to make building on bitcoin more accessible to the masses of web developers out there.
Bitcoin development can seem scary for new developers coming in, but it doesn't have to be. With the lightning network's toolkit and libraries a bunch of new opportunities are waiting to be explored. We hope these hackathons can be a chance for you to preview what is possible on bitcoin and the lightning network by fostering collaboration, hopefully shortening (or easing) any developer onboarding time, and helping you connect with other bitcoiners in a fun and friendly space.`
`We collected some awesome design, development, and project management resources here to get you up and running. You can also watch workshops and tutorials from BOLT🔩FUNs previous ShockTheWeb⚡hackathons here.`
},
{
question: "Not sure what to hack on?",
answer:
`Not sure where to get started? Need an idea to hack on? Not to worry, weve collected a list of great project ideas for you to look at here.`
},
{
question: "How can I #BuildInPublic?",
answer:
`Using BOLT🔩FUN Stories ✍️, makers can transparently document their projects design, development, and management processes. This will help other makers learn from one another, decreasing essential onboarding and learning time, whilst inspiring more great bitcoin apps to be built and innovated on. To see an example of this type of transparent reporting, check out this story here.`
},
],
}

View File

@@ -65,7 +65,7 @@ async function main() {
// await createSkills();
// await createTournament();
await createTournament();
}
@@ -200,6 +200,15 @@ async function createSkills() {
async function createTournament() {
console.log("Creating Tournament");
await prisma.tournamentFAQ.createMany({
data: tournamentMock.faqs.map(i => ({
tournament_id: 1,
question: i.question,
answer: i.answer
}))
})
return
const createdTournament = await prisma.tournament.create({
data: {
title: tournamentMock.title,

View File

@@ -5,18 +5,19 @@ import { MEDIA_QUERIES } from "src/utils/theme/media_queries";
import CustomDot from "./CustomDot/CustomDot";
import useEmblaCarousel from 'embla-carousel-react'
import { useCallback, useEffect, useState } from "react";
import { createRoute } from "src/utils/routing";
const headerLinks = [
{
title:
<>
<p className="text-body1 font-bolder text-white">The Long Night tournament is coming!!!</p>
<p className="text-body1 font-bolder text-white">Legends of Lightning Tournament</p>
<p className="text-body3 font-medium text-white mt-8">1st Oct - 31st Nov, 2022</p>
</>,
img: "https://imagedelivery.net/wyrwp3c-j0gDDUWgnE7lig/1d5d2c86-fe46-4478-6909-bb3c425c0d00/public",
link: {
content: "Register Now",
url: "/tournaments/12",
url: createRoute({ type: "tournament", id: 1, tab: 'overview' }),
},
},
{

View File

@@ -1,3 +1,5 @@
import DOMPurify from 'dompurify';
import { marked } from 'marked';
import React, { useMemo } from 'react'
import Accordion from 'src/Components/Accordion/Accordion';
import { Tournament } from 'src/graphql'
@@ -7,6 +9,7 @@ interface Props {
}
export default function FAQsSection({ faqs }: Props) {
@@ -14,7 +17,13 @@ export default function FAQsSection({ faqs }: Props) {
<div>
<h2 className='text-body1 font-bolder text-gray-900 mb-4'>FAQs</h2>
<Accordion
items={faqs.map(faq => ({ heading: faq.question, content: <p className='whitespace-pre-line'>{faq.answer}</p> }))}
items={faqs.map(faq => ({
heading: faq.question, content: <div
className={`text-gray-600 prose `}
dangerouslySetInnerHTML={{ __html: DOMPurify.sanitize(marked.parse(faq.answer)) }}
>
</div>
}))}
/>
</div>
)

View File

@@ -47,10 +47,10 @@ export default function RegisterCard({ makers_count, start_date, avatars, isRegi
return (
<Card onlyMd className='flex flex-col gap-24'>
<div>
<p className="text-body5 text-gray-600 flex">
{makers_count > 4 && <p className="text-body5 text-gray-600 flex">
{avatars.map((img, idx) => <div className='w-[16px] h-32 relative'><Avatar key={idx} src={img} width={32} className='absolute top-0 left-0 min-w-[32px] !border-white' /></div>)}
<span className='self-center ml-24 font-medium '>+ {makers_count} makers</span>
</p>
</p>}
<Button color='primary' disabled={isRegistered} fullWidth className='mt-16' onClick={onRegister}>{isRegistered ? "Registered!" : "Register Now"}</Button>
</div>
<div>

View File

@@ -47,7 +47,7 @@ export default function Navigation() {
<div className="w-full bg-white py-16 border-b border-gray-200 sticky-top-element z-10">
<div className="relative group content-container">
<div className="overflow-hidden" ref={viewportRef}>
<div className="select-none w-full flex gap-16">
<div className="select-none w-full flex gap-8 md:gap-16">
{links.map((link) => <NavLink
key={link.path}
to={link.path}

View File

@@ -706,6 +706,7 @@ export type Vote = {
export type WalletKey = {
__typename?: 'WalletKey';
createdAt: Scalars['Date'];
is_current: Scalars['Boolean'];
key: Scalars['String'];
name: Scalars['String'];

View File

@@ -164,12 +164,14 @@ export const users: (User & MyProfile)[] = [{
{
key: "1645h234j2421zxvertw",
name: "My Alby wallet key",
is_current: true
is_current: true,
createdAt: new Date(2022, 6, 2).toISOString(),
},
{
key: "66345134234235",
name: "My Phoenix wallet key",
is_current: false
is_current: false,
createdAt: new Date(2022, 6, 2).toISOString()
},],
roles: randomItems(3, ...allMakersRoles).map(role => ({ ...role, level: randomItem(...Object.values(RoleLevelEnum)) })),
skills: randomItems(7, ...allMakersSkills),
@@ -200,12 +202,14 @@ export const users: (User & MyProfile)[] = [{
{
key: "1645h234j2421zxvertw",
name: "My Alby wallet key",
is_current: true
is_current: true,
createdAt: new Date(2022, 6, 2).toISOString(),
},
{
key: "66345134234235",
name: "My Phoenix wallet key",
is_current: false
is_current: false,
createdAt: new Date(2022, 6, 2).toISOString()
},],
roles: randomItems(3, ...allMakersRoles).map(role => ({ ...role, level: randomItem(...Object.values(RoleLevelEnum)) })),
skills: randomItems(7, ...allMakersSkills),
@@ -235,12 +239,14 @@ export const users: (User & MyProfile)[] = [{
{
key: "1645h234j2421zxvertw",
name: "My Alby wallet key",
is_current: true
is_current: true,
createdAt: new Date(2022, 6, 2).toISOString(),
},
{
key: "66345134234235",
name: "My Phoenix wallet key",
is_current: false
is_current: false,
createdAt: new Date(2022, 6, 2).toISOString()
},],
roles: randomItems(3, ...allMakersRoles).map(role => ({ ...role, level: randomItem(...Object.values(RoleLevelEnum)) })),
skills: randomItems(7, ...allMakersSkills),
@@ -270,12 +276,14 @@ export const users: (User & MyProfile)[] = [{
{
key: "1645h234j2421zxvertw",
name: "My Alby wallet key",
is_current: true
is_current: true,
createdAt: new Date(2022, 6, 2).toISOString(),
},
{
key: "66345134234235",
name: "My Phoenix wallet key",
is_current: false
is_current: false,
createdAt: new Date(2022, 6, 2).toISOString()
},],
roles: randomItems(3, ...allMakersRoles).map(role => ({ ...role, level: randomItem(...Object.values(RoleLevelEnum)) })),
skills: randomItems(7, ...allMakersSkills),