142 lines
4.1 KiB
HTML
142 lines
4.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title> Deez nuts </title>
|
|
<style>
|
|
@font-face {
|
|
font-family: 'xenippa';
|
|
src: URL('img/xenippa.ttf') format('truetype');
|
|
}
|
|
@font-face {
|
|
font-family: 'ninifont';
|
|
src: URL('img/ninifont.otf') format('opentype');
|
|
}
|
|
h1, h2, a, p {color: black;}
|
|
h1 {font-size: 600%;font-family: xenippa;}
|
|
h2 {font-size: 275%;font-family: xenippa;}
|
|
.cite {font-size: 150%; font-family: ninifont;}
|
|
p {font-size: 150%;}
|
|
img {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.box {
|
|
border-radius: 1%;
|
|
margin-left: 5%;
|
|
margin-right: 5%;
|
|
padding: 1%;
|
|
background-color: lightgray;
|
|
}
|
|
.imgcontain {object-fit: contain;}
|
|
|
|
#galerie {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
grid-template-areas:
|
|
"aa ab ac"
|
|
"ba bb bc";
|
|
justify-items: center;
|
|
}
|
|
#gal0 {grid-area: aa;}
|
|
#gal1 {grid-area: ab;}
|
|
#gal2 {grid-area: ac;}
|
|
#gal3 {grid-area: ba;}
|
|
#gal4 {grid-area: bb;}
|
|
#gal5 {grid-area: bc;}
|
|
.gal {
|
|
margin: 2.5%;
|
|
object-fit: contain;
|
|
aspect-ratio: 1 / 1;
|
|
padding-bottom: 0%;
|
|
}
|
|
.foot {
|
|
display: inline-block;
|
|
font-family: xenippa;
|
|
}
|
|
#rgal, #lgal {min-width: 50px;}
|
|
.galimg {object-fit: contain;}
|
|
#counter {margin: 2%;}
|
|
|
|
</style>
|
|
</head>
|
|
|
|
<body> <center>
|
|
<div class='box'>
|
|
<h1>Matúš</h1>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class='box'>
|
|
<h2>Citáty</h2>
|
|
<p class='cite'>"Proč jsme takový vemena Matúši?"<br> - Kačka</p>
|
|
<p class='cite'>"Nepřišel Mohamed za javascriptem, přišel javascript za Mohamedem."<br> - Kubík</p>
|
|
<p class='cite'>"Chudák Mohamed."<br> - Jirka</p>
|
|
<p class='cite'>"Čau lidi, já jsem křeček."<br> - Topení</p>
|
|
<p class='cite'>"Koč je uložena v moulíc."<br> - Ríša</p>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class='box'>
|
|
<h2>O kom, o čem</h2>
|
|
<p>Programátor - <a href='https://git.chillplace.beer/matuush'>git.chillplace.beer/matuush</a></p>
|
|
<p>Student MFF UK - Informatiky</p>
|
|
<p>Organizátor <a href='https://ksp.mff.cuni.cz'>Korespondenčního Semináře z Programování</a></p>
|
|
<p>Zaměstnanec v <a href='https://https://www.eli-beams.eu/'>ELI Beamlines</a></p>
|
|
<p>Skautský vedoucí</p>
|
|
<p>Člen <a href='https://0d9e.tech'>0d9e</a></p>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class='box'>
|
|
<h2>Cool projekty</h2>
|
|
<p>Rekurzivní piškvorky: <a href='p/index.html'>mat.uush.cz/p</a></p>
|
|
<p>Logik: <a href='https://git.chillplace.beer/matuush/logik'>git.chillplace.beer/matuush/logik</a></p>
|
|
<p>Ze editor: <a href='https://git.chillplace.beer/matuush/zeed'>git.chillplace.beer/matuush/zeed</a></p>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="box">
|
|
<h2>Umění</h2>
|
|
<div id="galerie">
|
|
<div id="gal0" class="gal"><img class="galimg" id="galimg0"></div>
|
|
<div id="gal1" class="gal"><img class="galimg" id="galimg1"></div>
|
|
<div id="gal2" class="gal"><img class="galimg" id="galimg2"></div>
|
|
<div id="gal3" class="gal"><img class="galimg" id="galimg3"></div>
|
|
<div id="gal4" class="gal"><img class="galimg" id="galimg4"></div>
|
|
<div id="gal5" class="gal"><img class="galimg" id="galimg5"></div>
|
|
</div>
|
|
<button class="foot" id="lgal"><p><</p></button>
|
|
<p class="foot" id="counter"> </p>
|
|
<button class="foot" id="rgal"><p>></p></button>
|
|
</div>
|
|
<script>
|
|
let index = 0;
|
|
let imgpaths = ["cabelist.jpg", "computerist.jpg", "culturist.jpg", "drivist.jpg", "forkliftist.jpg", "hamerist.webp", "listenist.jpg", "assist.jpg", "readist.jpg", "readist2.jpg", "pottist.jpg", "ew.jpg", "waterist.jpg", "the_fight.jpg", "tankist.png", "lingebra.jpg", "i_was_put.jpg", "man.jpg", "real.jpg", "freebird.jpg", "Bez_nadeje.png", "amogusepic.jpg", "gchdeez.png", "lays.png", "pie.png", "godot.jpg", "amogus-real.jpg", "big-chungus.png"];
|
|
let count = imgpaths.length;
|
|
let max = Math.floor(count/6);
|
|
let update = () => {
|
|
for(let i = 0; i < 6; i++) {
|
|
let src = "gandalf.jpg";
|
|
if(i + index*6 < count) src = imgpaths[6*index + i];
|
|
document.getElementById("galimg"+i).src = "img/umeni/"+src;
|
|
}
|
|
document.getElementById("counter").innerHTML = index + ' / ' + max;
|
|
}
|
|
document.getElementById("lgal").onclick = () => {
|
|
if(index <= 0 ) index = max;
|
|
else index--;
|
|
update();
|
|
}
|
|
document.getElementById("rgal").onclick = () => {
|
|
if(index >= max) index = 0;
|
|
else index++;
|
|
update();
|
|
}
|
|
update();
|
|
</script>
|
|
</center> </body>
|
|
</html>
|