make cobalt awesome

Signed-off-by: wukko <me@wukko.me>
This commit is contained in:
wukko 2024-03-31 23:04:50 +06:00
parent 66d471a790
commit 855f3e969f
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
15 changed files with 77 additions and 0 deletions

View file

@ -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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

View file

@ -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);
}

View file

@ -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%;
}

View file

@ -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;
}
}

View file

@ -654,6 +654,8 @@ export default function(obj) {
])}
</script>
<script src="cobalt.js"></script>
<!--- Awesome theme --->
<script src="aprilFools/awesomeTheme.js"></script>
</body>
</html>
`