From ba0b93ba4f0fc6e003fdd1b259169fdb8c68be32 Mon Sep 17 00:00:00 2001 From: James Shiffer Date: Sun, 8 Oct 2023 14:16:10 -0700 Subject: [PATCH] Webpage formatting --- views/index.pug | 253 +++++++++++++++++++++++++----------------------- 1 file changed, 130 insertions(+), 123 deletions(-) diff --git a/views/index.pug b/views/index.pug index 26bb9ad..45e1f2b 100644 --- a/views/index.pug +++ b/views/index.pug @@ -3,130 +3,137 @@ html head title FemScoreboard body - h1 Funniest MFs 💀 table - thead + tbody tr - th= "Name" - th= "Avatar" - th= "Score" - tbody - each row in funniest - tr - td= row.username - td - img(src="/avatars/" + row.id + ".webp", height="64") - td= row.reaction_1_total - br - h1 Realest MFs 💯 - table - thead + td(style="width:33.3%") + h1(style="text-align:center") Funniest MFs 💀 + table(style="margin:0 auto") + thead + tr + th= "Name" + th= "Avatar" + th= "Score" + tbody + each row in funniest + tr + td= row.username + td + img(src="/avatars/" + row.id + ".webp", height="64") + td= row.reaction_1_total + td(style="width:33.3%") + h1(style="text-align:center") Realest MFs 💯 + table(style="margin:0 auto") + thead + tr + th= "Name" + th= "Avatar" + th= "Score" + tbody + each row in realest + tr + td= row.username + td + img(src="/avatars/" + row.id + ".webp", height="64") + td= row.reaction_2_total + td(style="width:33.3%") + h1(style="text-align:center") Cunniest MFs 😭 + table(style="margin:0 auto") + thead + tr + th= "Name" + th= "Avatar" + th= "Score" + tbody + each row in cunniest + tr + td + span= row.username + td + img(src="/avatars/" + row.id + ".webp", height="64") + td + span= row.reaction_3_total tr - th= "Name" - th= "Avatar" - th= "Score" - tbody - each row in realest - tr - td= row.username - td - img(src="/avatars/" + row.id + ".webp", height="64") - td= row.reaction_2_total - br - h1 Cunniest MFs 😭 - table - thead + td(style="width:33.3%") + h1(style="text-align:center") Funniest Messages 💀 + table(style="margin:0 auto") + tbody + each row in msg1 + tr + td + img(src="/avatars/" + row.author + ".webp", height="48") + td + if row.content + span= row.content + else + span + i (media) + tr + td + a(href="https://discord.com/channels/" + row.guild + "/" + row.channel + "/" + row.id) Link + td + span= "💀 " + row.reaction_1_count + td(style="width:33.3%") + h1(style="text-align:center") Realest Messages 💯 + table(style="margin:0 auto") + tbody + each row in msg2 + tr + td + img(src="/avatars/" + row.author + ".webp", height="48") + td + if row.content + span= row.content + else + span + i (media) + tr + td + a(href="https://discord.com/channels/" + row.guild + "/" + row.channel + "/" + row.id) Link + td + span= "💯 " + row.reaction_2_count + td(style="width:33.3%") + h1(style="text-align:center") Cunniest Messages 😭 + table(style="margin:0 auto") + tbody + each row in msg3 + tr + td + img(src="/avatars/" + row.author + ".webp", height="48") + td + if row.content + span= row.content + else + span + i (media) + tr + td + a(href="https://discord.com/channels/" + row.guild + "/" + row.channel + "/" + row.id) Link + td + span= "😭 " + row.reaction_3_count tr - th= "Name" - th= "Avatar" - th= "Score" - tbody - each row in cunniest - tr - td - span= row.username - td - img(src="/avatars/" + row.id + ".webp", height="64") - td - span= row.reaction_3_total - br - h1 Funniest Messages 💀 - table - tbody - each row in msg1 - tr - td - img(src="/avatars/" + row.author + ".webp", height="48") - td - if row.content - span= row.content - else - span - i (media) - tr - td - a(href="https://discord.com/channels/" + row.guild + "/" + row.channel + "/" + row.id) Link - td - span= "💀 " + row.reaction_1_count - br - h1 Realest Messages 💯 - table - tbody - each row in msg2 - tr - td - img(src="/avatars/" + row.author + ".webp", height="48") - td - if row.content - span= row.content - else - span - i (media) - tr - td - a(href="https://discord.com/channels/" + row.guild + "/" + row.channel + "/" + row.id) Link - td - span= "💯 " + row.reaction_2_count - br - h1 Cunniest Messages 😭 - table - tbody - each row in msg3 - tr - td - img(src="/avatars/" + row.author + ".webp", height="48") - td - if row.content - span= row.content - else - span - i (media) - tr - td - a(href="https://discord.com/channels/" + row.guild + "/" + row.channel + "/" + row.id) Link - td - span= "😭 " + row.reaction_3_count - br - h1 Best Messages 💀💯😭 - table - tbody - each row in bestMsg - tr - td - img(src="/avatars/" + row.author + ".webp", height="48") - td - if row.content - span= row.content - else - span - i (media) - tr - td - a(href="https://discord.com/channels/" + row.guild + "/" + row.channel + "/" + row.id) Link - td - if row.reaction_1_count - span= " 💀 " + row.reaction_1_count - if row.reaction_2_count - span= " 💯 " + row.reaction_2_count - if row.reaction_3_count - span= " 😭 " + row.reaction_3_count \ No newline at end of file + td + td + h1(style="text-align:center") Best Messages 💀💯😭 + table(style="margin:0 auto") + tbody + each row in bestMsg + tr + td + img(src="/avatars/" + row.author + ".webp", height="48") + td + if row.content + span= row.content + else + span + i (media) + tr + td + a(href="https://discord.com/channels/" + row.guild + "/" + row.channel + "/" + row.id) Link + td + if row.reaction_1_count + span= " 💀 " + row.reaction_1_count + if row.reaction_2_count + span= " 💯 " + row.reaction_2_count + if row.reaction_3_count + span= " 😭 " + row.reaction_3_count \ No newline at end of file