diff --git a/lib/api.js b/lib/api.js index f5283b03..e6c740f6 100644 --- a/lib/api.js +++ b/lib/api.js @@ -1,7 +1,21 @@ import fs from "fs"; -const titles = ["Sráč zelenáč", "Sráč", "Sráč mazák", "Velesráč"]; -const classes = ["srac-zelenac", "srac", "srac-mazak", "velesrac"]; +const titles = [ + "Sráč zelenáč", + "Sráč", + "Sráč mazák", + "Velesráč", + "Megasráč", + "Gigasráč", +]; +const classes = [ + "srac-zelenac", + "srac", + "srac-mazak", + "velesrac", + "megasrac", + "gigasrac", +]; const extension = ["trůn", "trůny", "trůny", "trůny", "trůnů"]; export function getData2HallOfShits() { @@ -34,14 +48,22 @@ export function getData2HallOfShits() { if (out[index].score == 3) out[index].extension = extension[2]; if (out[index].score == 4) out[index].extension = extension[3]; if (out[index].score == 5) out[index].extension = extension[4]; - if (out[index].score > 20) { + if (out[index].score >= 20) { out[index].title = titles[2]; out[index].class = classes[2]; } - if (out[index].score > 50) { + if (out[index].score >= 50) { out[index].title = titles[3]; out[index].class = classes[3]; } + if (out[index].score >= 100) { + out[index].title = titles[4]; + out[index].class = classes[4]; + } + if (out[index].score >= 200) { + out[index].title = titles[5]; + out[index].class = classes[5]; + } } }); return out; diff --git a/pages/hall.js b/pages/hall.js index a4544cc9..68ec27f8 100644 --- a/pages/hall.js +++ b/pages/hall.js @@ -22,11 +22,12 @@ export default function Hall({ nickNames }) { diff --git a/styles/index.css b/styles/index.css index da0b8dd4..3eacd6a6 100644 --- a/styles/index.css +++ b/styles/index.css @@ -75,6 +75,13 @@ .velesrac { @apply text-[#af8566ff] font-semibold text-xl; } +.megasrac { + @apply text-[#7d52b6] font-semibold text-xl; +} +.gigasrac { + @apply text-[#ce3dc2] font-bold text-xl; + /* text-shadow: 0px 0px 5px #ce3dc2; */ +} /* End of the tagsinput */ .svg-non-block svg {