Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
ennrl committed May 15, 2024
1 parent 506fe49 commit 6824167
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Neutron</title>
<link rel="stylesheet" href="styles/style.css">
<script src="https://telegram.org/js/telegram-web-app.js"></script>
</head>
<body>

Expand Down Expand Up @@ -61,6 +62,13 @@

</script>

<script>
setInterval(()=>{
document.querySelector(".footer .today").innerHTML = window.Telegram.WebApp.viewportHeight

}, 100)
</script>


</body>
</html>
46 changes: 46 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,50 @@ div.sf-icon {
height: 50px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
border-radius: 15px;
}
.footer .today {
width: 80px;
background: white;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
position: absolute;
height: 40px;
top: 5px;
left: 5px;
border-radius: 10px;
line-height: 40px;
font-family: tt;
font-size: 18px;
font-weight: 600;
padding-left: 40px;
}
.footer .today .sf-icon {
width: 40px;
height: 40px;
text-align: center;
font-size: 20px;
margin-left: -40px;
position: absolute;
line-height: 40px;
display: inline-block;
}
.footer .profile {
width: 40px;
height: 40px;
border-radius: 10px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
position: absolute;
top: 5px;
right: 5px;
}
.footer .menu {
width: 40px;
height: 40px;
border-radius: 10px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
position: absolute;
top: 5px;
right: 50px;
line-height: 40px;
text-align: center;
font-size: 20px;
}

0 comments on commit 6824167

Please sign in to comment.