+
+
+ CMOC
Control Panel
+ +
+ CMOC Edit Marquee +
+Write down below the text you want to display on the Check Mii Out Channel Marquee. +
+ ++
+
©2020 - 2024 WiiLink Team
+diff --git a/.gitignore b/.gitignore index dd64054..c63e152 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ config.xml salt.bin thumbnail.ces /assets/contest -.DS_Store \ No newline at end of file +.DS_Store +assets/marquee \ No newline at end of file diff --git a/assets/output.css b/assets/output.css index f52ff5f..c195149 100644 --- a/assets/output.css +++ b/assets/output.css @@ -1,5 +1,5 @@ /* -! tailwindcss v3.4.7 | MIT License | https://tailwindcss.com +! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com */ /* @@ -691,6 +691,10 @@ h1 { margin: 0.5rem; } +.mb-10 { + margin-bottom: 2.5rem; +} + .mb-3 { margin-bottom: 0.75rem; } @@ -763,10 +767,6 @@ h1 { margin-top: 1.5rem; } -.mb-10 { - margin-bottom: 2.5rem; -} - .\!block { display: block !important; } @@ -1016,6 +1016,26 @@ h1 { border-bottom-right-radius: 0.5rem; } +.rounded-l-xl { + border-top-left-radius: 0.75rem; + border-bottom-left-radius: 0.75rem; +} + +.rounded-r-sm { + border-top-right-radius: 0.125rem; + border-bottom-right-radius: 0.125rem; +} + +.rounded-l-sm { + border-top-left-radius: 0.125rem; + border-bottom-left-radius: 0.125rem; +} + +.rounded-r-xl { + border-top-right-radius: 0.75rem; + border-bottom-right-radius: 0.75rem; +} + .border { border-width: 1px; } @@ -1127,6 +1147,11 @@ h1 { background-color: rgb(248 113 113 / var(--tw-bg-opacity)); } +.bg-red-500 { + --tw-bg-opacity: 1; + background-color: rgb(239 68 68 / var(--tw-bg-opacity)); +} + .bg-white { --tw-bg-opacity: 1; background-color: rgb(255 255 255 / var(--tw-bg-opacity)); @@ -1137,9 +1162,9 @@ h1 { background-color: rgb(250 204 21 / var(--tw-bg-opacity)); } -.bg-red-500 { +.bg-gray-600 { --tw-bg-opacity: 1; - background-color: rgb(239 68 68 / var(--tw-bg-opacity)); + background-color: rgb(75 85 99 / var(--tw-bg-opacity)); } .bg-\[url\(\'https\:\/\/rc24\.xyz\/goodies\/wallpapers\/CMO_Channel_BG_orange_1600x900\.png\'\)\] { @@ -1640,14 +1665,19 @@ h1 { background-color: rgb(239 68 68 / var(--tw-bg-opacity)); } -.hover\:bg-red-300:hover { +.hover\:bg-red-600:hover { --tw-bg-opacity: 1; - background-color: rgb(252 165 165 / var(--tw-bg-opacity)); + background-color: rgb(220 38 38 / var(--tw-bg-opacity)); } -.hover\:bg-red-600:hover { +.hover\:bg-gray-700:hover { --tw-bg-opacity: 1; - background-color: rgb(220 38 38 / var(--tw-bg-opacity)); + background-color: rgb(55 65 81 / var(--tw-bg-opacity)); +} + +.hover\:bg-gray-400:hover { + --tw-bg-opacity: 1; + background-color: rgb(156 163 175 / var(--tw-bg-opacity)); } .hover\:underline:hover { diff --git a/main.go b/main.go index 178c8bc..32fcfed 100644 --- a/main.go +++ b/main.go @@ -78,6 +78,11 @@ func main() { } { auth.GET("/admin", panel.AdminPage) + auth.GET("/marquee", panel.MarqueePage) + auth.POST("/editmarquee", panel.EditMarquee) + auth.POST("/marquee", func(c *gin.Context) { + c.Redirect(http.StatusMovedPermanently, "/panel/marquee") + }) auth.GET("/contests", panel.ViewContests) auth.POST("/contests", func(c *gin.Context) { c.Redirect(http.StatusMovedPermanently, "/panel/contests") diff --git a/templates/marquee.html b/templates/marquee.html new file mode 100644 index 0000000..93c3c00 --- /dev/null +++ b/templates/marquee.html @@ -0,0 +1,83 @@ + + + +
+
+
+
+ + CMOC Edit Marquee +
+Write down below the text you want to display on the Check Mii Out Channel Marquee. +
+ +©2020 - 2024 WiiLink Team
+