111 lines
3.4 KiB
HTML
111 lines
3.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Handjet:wght@100..900&family=Kosugi+Maru&display=swap" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Handjet&family=Kosugi+Maru&family=Noto+Sans+Khojki&display=swap" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Delius&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>тесто</title>
|
|
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="index.css">
|
|
<style>
|
|
html,
|
|
body {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
background-color: #1f1f1f;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.parent {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
.block {
|
|
width: 250px;
|
|
height: 500px;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
margin: auto;
|
|
}
|
|
|
|
H1 {
|
|
text-align: center
|
|
}
|
|
|
|
H2 {
|
|
text-align: center
|
|
}
|
|
|
|
H3 {
|
|
text-align: center
|
|
}
|
|
|
|
.block img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
margin: 0 auto;
|
|
border: none;
|
|
}
|
|
|
|
.handjet-light {
|
|
font-family: "Handjet", sans-serif;
|
|
font-optical-sizing: auto;
|
|
font-weight: 300;
|
|
font-style: normal;
|
|
font-variation-settings: "ELGR" 1, "ELSH" 2;
|
|
}
|
|
|
|
.delius-regular {
|
|
font-family: "Delius", "serif";
|
|
font-optical-sizing: auto;
|
|
font-weight: 200;
|
|
font-style: normal;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="parent">
|
|
<div class="block">
|
|
<div class="container center">
|
|
<h1 class="handjet-light" id="nya1"><i>Ты просто</i></h1>
|
|
<h1 class="handjet-light" id="nya2"><i></i></h1>
|
|
<button type="button" style="position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);"
|
|
class="nyabtn" onclick="nya2.innerText = cutewords[getRandomInt(0, cutewords.length)]">Жмякай!</button>
|
|
<script>
|
|
let cutewords = ['Солнышко', 'Лапочка', 'Котёнок', 'Няшечка',
|
|
'Булочка', 'Рыбка', 'Крошка', 'Звёздочка',
|
|
'Принцесса', 'Бусинка', 'Мармеладка', 'Сырничек'];
|
|
function getRandomInt(min, max) {
|
|
let minCeiled = Math.ceil(min);
|
|
let maxFloored = Math.floor(max);
|
|
return Math.floor(Math.random() * (maxFloored - minCeiled) + minCeiled); // max is exclusive; min is inclusive
|
|
}
|
|
</script>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|