diff --git a/foftickets.js b/foftickets.js index 582cb8e..6e8c640 100644 --- a/foftickets.js +++ b/foftickets.js @@ -761,6 +761,7 @@ app.post('/buy',requireLogin,(req,res) => { + app.post('/charge', requireLogin, async (req, res) => { const payforwhat=req.body.payforwhat; if (!check_payforwhat(payforwhat,req)) return res.json({ error: 'Invalid PayForWhat' }); diff --git a/public/styles.css b/public/styles.css index c21cf32..d0168c0 100644 --- a/public/styles.css +++ b/public/styles.css @@ -35,30 +35,43 @@ cursor: pointer; } +h1 { + font-size: 1.2rem; +} body { display: grid; grid-template-columns: 240px auto; grid-template-rows: 40px auto; font-family: Arial, sans-serif; + } -.nav { - grid-column: 1; - grid-row: 1 / 3; - background-color: #FFC0C0; +.nav-header { + font-size: 1.5rem; + padding: 10px 15px; + grid-column: 1 / 3; + grid-row: 1; + background-color: #C0C0C0; +} + +.nav-items { + padding: 10px 15px; + grid-column: 1; + grid-row: 2 / 3; + background-color: #C0C0C0; } .message { - grid-column: 2; - grid-row: 1; - background-color: #C0FFC0; - align-content: center; - justify-items: center; + grid-column: 2; + grid-row: 1; + background-color: #C0C0C0; + align-content: center; + justify-items: center; } .content { grid-column: 2; grid-row: 2; - background-color: #C0C0FF; + background-color: #E0E0E0; } diff --git a/views/changepassword.ejs b/views/changepassword.ejs index 5c3cc11..15a24b9 100644 --- a/views/changepassword.ejs +++ b/views/changepassword.ejs @@ -7,7 +7,7 @@ <%- include('partials/nav') %>
- Change Password +

Change Password

Old Password:
New Password:
diff --git a/views/error.ejs~ b/views/error.ejs~ deleted file mode 100644 index 65cedf5..0000000 --- a/views/error.ejs~ +++ /dev/null @@ -1,9 +0,0 @@ - - - - You don't have any tickets - - -

No tickets for you!!

- - diff --git a/views/notickets.ejs~ b/views/notickets.ejs~ deleted file mode 100644 index c6403f7..0000000 --- a/views/notickets.ejs~ +++ /dev/null @@ -1,27 +0,0 @@ - - - - Your Tickets - - -

Welcome, <%= username %>!

- - - - - - - - <% for (const t in tlist) { %> - - - - - - - <% } %> - - -
TicketOwnerOffered ToQRCode
<%= t %> <%= tlist[t].owner %> <%= tlist[t].offered %> <%= QRCode.toDataURL("https://abc.com", function(err,url) { if (err) { console.error(err); return; } console.log(url); }); %>
- - diff --git a/views/partials/nav.ejs b/views/partials/nav.ejs index d031e45..c4668c8 100644 --- a/views/partials/nav.ejs +++ b/views/partials/nav.ejs @@ -1,26 +1,28 @@ -