diff --git a/src/gw.nim b/src/gw.nim index 20993c8..9d67f3d 100644 --- a/src/gw.nim +++ b/src/gw.nim @@ -2,7 +2,7 @@ import prologue, prologue/middlewares/staticfile, prologue/middlewares/cors, std const key_len = 128 const refer_len = 16 -const debug = false +const debug = true let db = open("real.db", "", "", "") diff --git a/web/src/pages/Home/index.tsx b/web/src/pages/Home/index.tsx index 72754a0..daeea77 100644 --- a/web/src/pages/Home/index.tsx +++ b/web/src/pages/Home/index.tsx @@ -49,6 +49,7 @@ export const Home = () => { return (

???

+

time left here

@@ -74,32 +75,32 @@ export const Home = () => {

-
- { - !entryBody.err && ( - <> -

Key: {entryBody?.key}

-

Referral: {entryBody?.referral}

- - ) - } -
+ { + !entryBody.err ? ( +
+

tip: click to copy.

+

navigator.clipboard.writeText(entryBody?.key)}>Key: {entryBody?.key}

+

navigator.clipboard.writeText(entryBody?.referral)}>Referral: {entryBody?.referral}

+

good luck. keep note of these, if you lose them, you can't reroll.

+
+ ) : ( +
+
+ What is this? +

At exactly 00:00 CET on 1 Jan, the system will choose a random entry. Their referral key shall be publically + displayed on this page. The person associated to this referral key shall contact us with their private key. + They shall win a little prize. To have one's entry weigh more than the rest, one shall have to spread their + referral key amongst the people. Every referral shall increase their chance of getting selected. +

+
-
-
- What is this? -

At exactly 00:00 CET on 1 Jan, the system will choose a random entry. Their referral key shall be publically - displayed on this page. The person associated to this referral key shall contact us with their private key. - They shall win a little prize. To have one's entry weigh more than the rest, one shall have to spread their - referral key amongst the people. Every referral shall increase their chance of getting selected. -

-
- -
- How does one enter? -

One needs a referral key to enter.

-
-
+
+ How does one enter? +

One needs a referral key to enter.

+
+
+ ) + }
)