mobile tweaks
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								static/content/Irken-Like-AllCaps.woff
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								static/content/Irken-Like-AllCaps.woff
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										36
									
								
								static/content/buttons.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								static/content/buttons.txt
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,36 @@
 | 
			
		||||
https://cyber.dabamos.de/88x31/88x31.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/anythingbut.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/bestdesktop.gif
 | 
			
		||||
https://kopawz.neocities.org/buttonhoard/buttonsfldr2/diagnosedwithGAY.gif
 | 
			
		||||
https://kopawz.neocities.org/indexgraphics/buttondecor/ilikecomputer.png
 | 
			
		||||
https://identity-crisis.carrd.co/assets/images/gallery04/ad4f8d52.jpg?v=4e55d939
 | 
			
		||||
https://anlucas.neocities.org/best_viewed_with_eyes.gif
 | 
			
		||||
https://anlucas.neocities.org/html_learn_it_today.gif
 | 
			
		||||
https://highway.eightyeightthirty.one/badge/5d58a8f32b007d4897db6f862a895a81674fb35f5cc3947fc66595817ca174db
 | 
			
		||||
https://cyber.dabamos.de/88x31/keep.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/js-warning.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/linuxnow2.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/nano2.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/nocookie.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/nofuckingthanks.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/nyan.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/pgp-now.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/phonechump.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/pinguonline.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/piracy.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/proxmox.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/pride.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/relax-now.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/skirt.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/steam.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/svenbutton.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/tfnow.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/vscbutton.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/reddit.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/ralseismokingadart.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/blender.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/bob.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/censor_14c.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/chrmevil.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/dark-mode.gif
 | 
			
		||||
https://cyber.dabamos.de/88x31/firefox3.gif
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 96 KiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 18 KiB  | 
@@ -1,10 +1,22 @@
 | 
			
		||||
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wdth,wght@125,700&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
 | 
			
		||||
@font-face {
 | 
			
		||||
    font-family:"Irken";
 | 
			
		||||
    src:url("/static/content/Irken-Like-AllCaps.woff") format("woff");
 | 
			
		||||
    font-weight:normal;
 | 
			
		||||
    font-style:normal;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
:root {
 | 
			
		||||
    --primary-color: #5cdd8b;
 | 
			
		||||
    --primary-color-but-slightly-transparent: #5cdd8b44;
 | 
			
		||||
    --text-color: #b1b8c0;
 | 
			
		||||
    --background-color: #020205;
 | 
			
		||||
    --secondary-background-color: #090914;
 | 
			
		||||
    --secondary-background-color-but-slightly-transparent: #09091444;
 | 
			
		||||
    --font-size: 0.5cm;
 | 
			
		||||
    --font-family: 'Roboto Mono', sans-serif;
 | 
			
		||||
    --font-family: "Space Mono", "serif";
 | 
			
		||||
    --title-font: 'Roboto Mono', sans-serif;
 | 
			
		||||
    --irken-font: 'Irken';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
body {
 | 
			
		||||
@@ -13,13 +25,14 @@ body {
 | 
			
		||||
    color: var(--text-color);
 | 
			
		||||
    font-size: var(--font-size);
 | 
			
		||||
    font-family: var(--font-family);
 | 
			
		||||
    margin: 0;
 | 
			
		||||
    display: grid;
 | 
			
		||||
    grid-template-columns: 7fr 1.3fr;
 | 
			
		||||
    grid-template-columns: auto auto;
 | 
			
		||||
    grid-template-rows: 1fr;
 | 
			
		||||
    grid-template-areas: "main sidebar";
 | 
			
		||||
    padding: 7% 25% 7% 25%;
 | 
			
		||||
    margin: 7% auto 7% auto;
 | 
			
		||||
    gap: 1rem;
 | 
			
		||||
    justify-content: center;
 | 
			
		||||
    width: 940px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#sidebar {
 | 
			
		||||
@@ -27,6 +40,7 @@ body {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    flex-direction: column;
 | 
			
		||||
    gap: 1rem;
 | 
			
		||||
    width: 174px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#sidebar section {
 | 
			
		||||
@@ -52,7 +66,6 @@ body {
 | 
			
		||||
    color: var(--text-color);
 | 
			
		||||
    text-decoration: none;
 | 
			
		||||
    font-weight: 100;
 | 
			
		||||
    font-family: 'Impact', sans-serif;
 | 
			
		||||
    transition: all 0.2s ease-in-out
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -70,6 +83,7 @@ body {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#sidebar h1 {
 | 
			
		||||
    font-family: var(--title-font);
 | 
			
		||||
    font-size: 1.5rem;
 | 
			
		||||
    font-weight: 900;
 | 
			
		||||
    margin: 0;
 | 
			
		||||
@@ -87,6 +101,7 @@ body {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#buttons h1 {
 | 
			
		||||
    font-family: var(--title-font);
 | 
			
		||||
    font-size: 1.3rem;
 | 
			
		||||
    font-weight: 900;
 | 
			
		||||
    margin: 0;
 | 
			
		||||
@@ -110,7 +125,7 @@ body {
 | 
			
		||||
 | 
			
		||||
main {
 | 
			
		||||
    grid-area: main;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    width: 761px;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
    display: flex;
 | 
			
		||||
    flex-direction: column;
 | 
			
		||||
@@ -144,6 +159,7 @@ header img {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
header h1 {
 | 
			
		||||
    font-family: var(--title-font);
 | 
			
		||||
    font-size: 5rem;
 | 
			
		||||
    font-weight: 900;
 | 
			
		||||
    padding: 0;
 | 
			
		||||
@@ -151,6 +167,7 @@ header h1 {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
header h2 {
 | 
			
		||||
    font-family: var(--title-font);
 | 
			
		||||
    font-size: 1.75rem;
 | 
			
		||||
    font-weight: 100;
 | 
			
		||||
    padding: 0;
 | 
			
		||||
@@ -274,7 +291,6 @@ section.rowsect>div {
 | 
			
		||||
 | 
			
		||||
#spotify {
 | 
			
		||||
    background-image: none;
 | 
			
		||||
    background-color: var(--secondary-background-color);
 | 
			
		||||
    backdrop-filter: blur(2px) brightness(0.6);
 | 
			
		||||
    border: var(--secondary-background-color) 2px solid;
 | 
			
		||||
    border-radius: 10px;
 | 
			
		||||
@@ -309,4 +325,126 @@ section.rowsect>div {
 | 
			
		||||
.haj {
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    filter: drop-shadow(0 0 0.5rem rgb(88, 214, 245));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.irken {
 | 
			
		||||
    font-family: var(--irken-font);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#button-collection {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    flex-direction: row;
 | 
			
		||||
    justify-content: center;
 | 
			
		||||
    flex-wrap: wrap;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#button-collection img {
 | 
			
		||||
    transition: all 0.2s ease-in-out;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#button-collection img:hover {
 | 
			
		||||
    transform: scale(1.1) rotate(5deg);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#button-collection img:nth-child(odd):hover {
 | 
			
		||||
    transform: scale(1.1) rotate(-5deg);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#alt-nav {
 | 
			
		||||
    display: none;
 | 
			
		||||
    backdrop-filter: blur(2px) brightness(0.6);
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    border: var(--secondary-background-color) 2px solid;
 | 
			
		||||
    border-radius: 10px;
 | 
			
		||||
    padding: 15px;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#alt-nav ul {
 | 
			
		||||
    list-style-type: none;
 | 
			
		||||
    margin: 0;
 | 
			
		||||
    padding: 0;
 | 
			
		||||
    display: flex;
 | 
			
		||||
    flex-wrap: wrap;
 | 
			
		||||
    flex-direction: row;
 | 
			
		||||
    gap: 1.5rem;
 | 
			
		||||
    justify-content: center;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#alt-nav ul li {
 | 
			
		||||
    width: fit-content;
 | 
			
		||||
}
 | 
			
		||||
#alt-nav ul li a {
 | 
			
		||||
    color: var(--text-color);
 | 
			
		||||
    text-decoration: none;
 | 
			
		||||
    font-weight: 100;
 | 
			
		||||
    transition: all 0.2s ease-in-out
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#alt-nav ul li a:hover {
 | 
			
		||||
    color: var(--primary-color);
 | 
			
		||||
    font-weight: 900;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media screen and (max-width: 1000px) {
 | 
			
		||||
    body {
 | 
			
		||||
        background-color: var(--background-color);
 | 
			
		||||
        background-image: url("https://blinkies.cafe/purple-stars-bg.gif");
 | 
			
		||||
        color: var(--text-color);
 | 
			
		||||
        font-size: var(--font-size);
 | 
			
		||||
        font-family: var(--font-family);
 | 
			
		||||
        display: grid;
 | 
			
		||||
        grid-template-columns: auto;
 | 
			
		||||
        grid-template-rows: 1fr;
 | 
			
		||||
        grid-template-areas: "main";
 | 
			
		||||
        margin: 7% 0 7% 0;
 | 
			
		||||
        gap: 1rem;
 | 
			
		||||
        justify-content: center;
 | 
			
		||||
        width: 100%;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #sidebar {
 | 
			
		||||
        display: none;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #alt-nav {
 | 
			
		||||
        display: block;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    main {
 | 
			
		||||
        width: 100%;
 | 
			
		||||
        box-sizing: border-box;
 | 
			
		||||
        padding: 0 1rem 0 1rem;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media screen and (max-width: 650px) {
 | 
			
		||||
    header img {
 | 
			
		||||
        display: none;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    header div.row {
 | 
			
		||||
        justify-content: center;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    section.rowsect {
 | 
			
		||||
        width: 100%;
 | 
			
		||||
        display: flex;
 | 
			
		||||
        flex-direction: column;
 | 
			
		||||
        gap: 1rem;
 | 
			
		||||
        backdrop-filter: none;
 | 
			
		||||
        border: none;
 | 
			
		||||
        padding: 0;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    div#spotify {
 | 
			
		||||
        box-sizing: border-box;
 | 
			
		||||
        background-repeat: no-repeat;
 | 
			
		||||
        background-size: contain;
 | 
			
		||||
        height: 100%;
 | 
			
		||||
        width: auto;
 | 
			
		||||
        aspect-ratio: 1/1;
 | 
			
		||||
        display: flex;
 | 
			
		||||
        flex-direction: column;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -82,6 +82,11 @@ document.addEventListener('keydown', function(event) {
 | 
			
		||||
        console.log("owo, whats this?");
 | 
			
		||||
        document.getElementById('furry').style.display = 'block';
 | 
			
		||||
    }
 | 
			
		||||
    if (last5Chars == "irken") {
 | 
			
		||||
        console.log("doom doom doom!");
 | 
			
		||||
        document.querySelector(":root").style.setProperty('--font-family', 'Irken');
 | 
			
		||||
        document.querySelector(":root").style.setProperty('--title-font', '1.5em');
 | 
			
		||||
    }
 | 
			
		||||
    while (last5Chars.length >= 5) {
 | 
			
		||||
        last5Chars = last5Chars.slice(1);
 | 
			
		||||
    }
 | 
			
		||||
@@ -93,6 +98,13 @@ function getSpotify() {
 | 
			
		||||
    fetch('https://api.alfieking.dev/spotify/nowplaying/xz02oolstlvwxqu1pfcua9exz').then(response => {
 | 
			
		||||
        return response.json();
 | 
			
		||||
    }).then(data => {
 | 
			
		||||
        if (data.item == null) {
 | 
			
		||||
            document.getElementById('spotify').style.backgroundImage = "none";
 | 
			
		||||
            document.getElementById('spotify-title').innerHTML = "Spotify is not playing anything";
 | 
			
		||||
            document.getElementById('spotify-artist').innerHTML = ":(";
 | 
			
		||||
            document.getElementById('spotify-link').href = "https://open.spotify.com/";
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        document.getElementById('spotify').style.backgroundImage = "url(" + data.item.album.images[0].url + ")";
 | 
			
		||||
        document.getElementById('spotify-title').innerHTML = data.item.name;
 | 
			
		||||
        document.getElementById('spotify-artist').innerHTML = data.item.artists[0].name;
 | 
			
		||||
@@ -100,5 +112,29 @@ function getSpotify() {
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
getSpotify();
 | 
			
		||||
setInterval(getSpotify, 15000);
 | 
			
		||||
if (document.getElementById('spotify')) {
 | 
			
		||||
    getSpotify();
 | 
			
		||||
    setInterval(getSpotify, 15000);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// load buttons
 | 
			
		||||
 | 
			
		||||
function loadButtons() {
 | 
			
		||||
    fetch('/static/content/buttons.txt').then(response => {
 | 
			
		||||
        return response.text();
 | 
			
		||||
    }).then(data => {
 | 
			
		||||
        container = document.getElementById('button-collection');
 | 
			
		||||
        for (let line of data.split('\n')) {
 | 
			
		||||
            if (line == "") {
 | 
			
		||||
                continue;
 | 
			
		||||
            }
 | 
			
		||||
            let img = document.createElement('img');
 | 
			
		||||
            img.src = line;
 | 
			
		||||
            container.appendChild(img);
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if (document.getElementById('button-collection')) {
 | 
			
		||||
    loadButtons();
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user