Добавил обложку

This commit is contained in:
Денис Буторин 2025-07-06 01:31:21 +03:00
parent d9814159b1
commit 9bfc1b3210
Signed by: dekabu
GPG key ID: 867F0C8041D69B4C
5 changed files with 94 additions and 0 deletions

BIN
fonts/FiraCode-VF.woff2 Normal file

Binary file not shown.

22
index.html Normal file
View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Денис Буторин</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="fullWindow center">
<div id="cover">
<div class="center">
<img src="media/I.jpg" alt="Моё личико">
</div>
<div class="center">
<pre></pre>
</div>
</div>
</div>
<script src="js/hello.js"></script>
</body>
</html>

16
js/hello.js Normal file
View file

@ -0,0 +1,16 @@
const text = 'Привет! *\nЯ Денис Буторин\nБудем знакомы'
const pre = document.getElementsByTagName('pre')[0]
const delay = 30
let i = 0
window.onload = () => {
setTimeout(function addLetter() {
char = text[i]
if (char == '*')
char = '👋'
pre.innerText += char
++i
if (i != text.length)
setTimeout(addLetter, delay)
}, 500)
}

BIN
media/I.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

56
style.css Normal file
View file

@ -0,0 +1,56 @@
@font-face {
font-family: 'Fira Code';
src: url(fonts/FiraCode-VF.woff2);
}
* {
padding: 0;
margin: 0;
font-family: 'Fira Code';
font-size: 20px;
}
body {
background-color: #FDE2D2;
}
.fullWindow {
width: 100vw;
height: 100vh;
}
.center {
display: flex;
align-items: center;
justify-content: center;
}
#cover {
display: flex;
flex-direction: row;
}
#cover div {
width: 400px;
height: 400px;
}
#cover div img {
width: 90%;
}
#cover pre {
font-size: 40px;
}
@media (width <= 900px) {
#cover {
flex-direction: column;
}
}
@media (height <= 800px) and (width <= 900px) {
#cover div {
width: 40vh;
height: 40vh;
}
#cover pre {
font-size: 4vh
}
}