mirror of
https://github.com/anatolykopyl/status.git
synced 2026-03-26 12:54:46 +00:00
Новый дизайн
This commit is contained in:
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
21
index.html
21
index.html
@@ -4,10 +4,27 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Статус</title>
|
<title>Статус</title>
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Russo+One&display=swap" rel="stylesheet">
|
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap" rel="stylesheet">
|
||||||
<link href="style.css" rel="stylesheet">
|
<link href="style.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<a href="http://status.anatolykopyl.ru/update">Обнови мой эмодзи статус!</a>
|
<a class="big" href="http://status.anatolykopyl.ru:5001/update">Обновить Толин эмодзи статус!</a>
|
||||||
|
<div class="links-container">
|
||||||
|
<p>Другие мои сайты:</p>
|
||||||
|
<div class="links">
|
||||||
|
<a href="https://anatolykopyl.ru">Обо мне</a>
|
||||||
|
<a href="https://atolchek.anatolykopyl.ru">Булочная</a>
|
||||||
|
<a href="https://groupanal.ru">Анализ Групп</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a id="hint-link" onclick="showHint()">Что это?</a>
|
||||||
|
<div id="hint-div">
|
||||||
|
При каждом нажатии на большую кнопку мне дается новый случайно выбранный эмодзи статус.
|
||||||
|
Открой <a href="https://vk.com/akopyl" target="_blank">vk.com/akopyl</a>, нажми на кнопку на этом сайте и обнови мою страницу!
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
13
main.js
Normal file
13
main.js
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
function showHint() {
|
||||||
|
console.log(document.getElementById("hint-div").style.display);
|
||||||
|
|
||||||
|
if (document.getElementById("hint-div").style.display == "block") {
|
||||||
|
document.getElementById("hint-div").style.display = "none";
|
||||||
|
document.getElementById("hint-link").innerHTML = "Что это?";
|
||||||
|
document.getElementById("hint-link").style.color = "#dddddd";
|
||||||
|
} else {
|
||||||
|
document.getElementById("hint-div").style.display = "block";
|
||||||
|
document.getElementById("hint-link").innerHTML = "Понял";
|
||||||
|
document.getElementById("hint-link").style.color = "black";
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "covid",
|
"name": "emoji-status",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
|||||||
83
style.css
83
style.css
@@ -1,20 +1,91 @@
|
|||||||
* {
|
* {
|
||||||
font-family: 'Russo One', sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
color: lightgray;
|
}
|
||||||
background-color: #597da3;
|
html {
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
margin: 0px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 20%;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #597da3;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: xx-large;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a.big {
|
||||||
|
margin: 20vh;
|
||||||
|
font-size: xx-large;
|
||||||
|
transition: transform .2s;
|
||||||
color: white;
|
color: white;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.big:hover {
|
||||||
|
transform: scale(1.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
div.links-container {
|
||||||
|
margin-top: 10vh;
|
||||||
|
margin-bottom: 10vh;
|
||||||
|
color: #dddddd;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.links-container p {
|
||||||
|
font-weight: lighter;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.links {
|
||||||
|
background-color: white;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 8px;
|
||||||
|
filter: drop-shadow(2px 2px 4px rgb(0, 0, 0, 0.4));
|
||||||
|
}
|
||||||
|
|
||||||
|
div.links a {
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 10px;
|
||||||
|
color: black;
|
||||||
|
border-width: 0px 0px 1px 0px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.links a:hover {
|
||||||
|
border-width: 0px 0px 2px 0px;
|
||||||
|
border-color: #597da390;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#hint-link {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 2vh;
|
||||||
|
right: 2vh;
|
||||||
|
font-weight: lighter;
|
||||||
|
color: #dddddd;
|
||||||
|
font-size: small;
|
||||||
|
text-decoration: underline;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
#hint-div {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0px;
|
||||||
|
background-color: white;
|
||||||
|
font-weight: lighter;
|
||||||
|
width: 60%;
|
||||||
|
padding-left: 40%;
|
||||||
|
padding-right: 40%;
|
||||||
|
padding-top: 1vh;
|
||||||
|
padding-bottom: 1vh;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user