diff --git a/src/front/aprilFools/LICENSE b/src/front/aprilFools/LICENSE new file mode 100644 index 00000000..4f84e745 --- /dev/null +++ b/src/front/aprilFools/LICENSE @@ -0,0 +1,3 @@ +a lot of images in assets are random stock photos from across the internet, AGPL license doesn't apply to them and we do not claim any ownership over them. + +comic mono and shantell sans also do not belong to us. \ No newline at end of file diff --git a/src/front/aprilFools/assets/ComicMono.ttf b/src/front/aprilFools/assets/ComicMono.ttf new file mode 100644 index 00000000..9bc7354e Binary files /dev/null and b/src/front/aprilFools/assets/ComicMono.ttf differ diff --git a/src/front/aprilFools/assets/ShantellSans.ttf b/src/front/aprilFools/assets/ShantellSans.ttf new file mode 100644 index 00000000..7287faaf Binary files /dev/null and b/src/front/aprilFools/assets/ShantellSans.ttf differ diff --git a/src/front/aprilFools/assets/auto.jpg b/src/front/aprilFools/assets/auto.jpg new file mode 100644 index 00000000..ee62f9f5 Binary files /dev/null and b/src/front/aprilFools/assets/auto.jpg differ diff --git a/src/front/aprilFools/assets/bliss.webp b/src/front/aprilFools/assets/bliss.webp new file mode 100644 index 00000000..1f7d11da Binary files /dev/null and b/src/front/aprilFools/assets/bliss.webp differ diff --git a/src/front/aprilFools/assets/dragon.jpg b/src/front/aprilFools/assets/dragon.jpg new file mode 100644 index 00000000..56196647 Binary files /dev/null and b/src/front/aprilFools/assets/dragon.jpg differ diff --git a/src/front/aprilFools/assets/heart.jpg b/src/front/aprilFools/assets/heart.jpg new file mode 100644 index 00000000..3d1d3d54 Binary files /dev/null and b/src/front/aprilFools/assets/heart.jpg differ diff --git a/src/front/aprilFools/assets/lock.jpg b/src/front/aprilFools/assets/lock.jpg new file mode 100644 index 00000000..8441b3da Binary files /dev/null and b/src/front/aprilFools/assets/lock.jpg differ diff --git a/src/front/aprilFools/assets/music.jpg b/src/front/aprilFools/assets/music.jpg new file mode 100644 index 00000000..0bd842f1 Binary files /dev/null and b/src/front/aprilFools/assets/music.jpg differ diff --git a/src/front/aprilFools/assets/paste.jpg b/src/front/aprilFools/assets/paste.jpg new file mode 100644 index 00000000..bd3022a5 Binary files /dev/null and b/src/front/aprilFools/assets/paste.jpg differ diff --git a/src/front/aprilFools/assets/settings.jpg b/src/front/aprilFools/assets/settings.jpg new file mode 100644 index 00000000..54937cb1 Binary files /dev/null and b/src/front/aprilFools/assets/settings.jpg differ diff --git a/src/front/aprilFools/awesomeFonts.css b/src/front/aprilFools/awesomeFonts.css new file mode 100644 index 00000000..dc8b0e53 --- /dev/null +++ b/src/front/aprilFools/awesomeFonts.css @@ -0,0 +1,10 @@ +@font-face { + font-family: Comic Mono; + font-weight: normal; + src: url(./assets/ComicMono.ttf); +} +@font-face { + font-family: Shantell Sans; + font-weight: normal; + src: url(./assets/ShantellSans.ttf); +} diff --git a/src/front/aprilFools/awesomeStyle.css b/src/front/aprilFools/awesomeStyle.css new file mode 100644 index 00000000..55e4b73d --- /dev/null +++ b/src/front/aprilFools/awesomeStyle.css @@ -0,0 +1,27 @@ +/* happy april fools! */ + +:root { + --font-mono: 'Comic Mono', 'Comic Sans MS', 'Comic Sans', 'Comic Neue', 'Shantell Sans', cursive; +} +* { + text-transform: capitalize; + letter-spacing: 0.03rem; +} +.text-to-copy { + text-transform: none; +} +#download-button, +#url-clear { + font-family: 'Noto Sans Mono', 'Consolas', 'SF Mono', monospace; +} +#home::before { + opacity: 0.1; + content: ''; + background: url(/aprilFools/assets/bliss.webp); + height: 100%; + width: 100%; + z-index: -1; + position: absolute; + background-repeat: no-repeat; + background-size: 100% 100%; +} \ No newline at end of file diff --git a/src/front/aprilFools/awesomeTheme.js b/src/front/aprilFools/awesomeTheme.js new file mode 100644 index 00000000..d081e183 --- /dev/null +++ b/src/front/aprilFools/awesomeTheme.js @@ -0,0 +1,35 @@ +function changeIcon(button, src) { + document.getElementById(button).querySelector('.emoji').src = `aprilFools/assets/${src}`; +} + +// load an Awesome theme on an Awesome day +let date = new Date(); +if (date.getMonth() === 2 && date.getDate() === 31) { + let head = document.head; + + head.appendChild(document.createElement('link')).rel = 'stylesheet'; + head.lastChild.href = 'aprilFools/awesomeFonts.css'; + + head.appendChild(document.createElement('link')).rel = 'stylesheet'; + head.lastChild.href = 'aprilFools/awesomeStyle.css'; + + changeIcon('urgent-notice-child', 'lock.jpg'); + + changeIcon('paste', 'paste.jpg'); + + changeIcon('audioMode-true', 'music.jpg'); + changeIcon('audioMode-false', 'auto.jpg'); + + changeIcon('about-footer', 'dragon.jpg'); + changeIcon('about-donate-footer', 'heart.jpg'); + changeIcon('settings-footer', 'settings.jpg'); + + switch(document.documentElement.lang) { + case "en": + eid("logo").innerHTML = "Cobalt Media Downloader Ultra Pro Plus Max 2024"; + break; + case "ru": + eid("logo").innerHTML = "Кобальт Медиа Загрузчик Ультра Про Плюс Макс 2024"; + break; + } +} \ No newline at end of file diff --git a/src/modules/pageRender/page.js b/src/modules/pageRender/page.js index 3a8b6c6d..7050aa2a 100644 --- a/src/modules/pageRender/page.js +++ b/src/modules/pageRender/page.js @@ -654,6 +654,8 @@ export default function(obj) { ])} + + `