Added some buttons so phone users can move

Also made sure that body takes full screen, so phone users can't scroll
This commit is contained in:
2024-01-28 23:29:42 +01:00
parent 7b2529e876
commit 3e532a4027
5 changed files with 135 additions and 47 deletions

View File

@@ -3,51 +3,7 @@
<head>
<meta charset="utf-8">
<title>Kévin Sailly - Portfolio</title>
<style>
body { margin: 0; overflow: hidden;}
a {
text-decoration: none;
color: #2E86AB;
}
#notification_bar {
position: absolute;
top:20px;
right: 0;
height: 80px;
width: 0;
/*width: 320px; 320 is the expended value, when showed by Jquery*/
background-color: #1C232A;
opacity: 0; /* Set to 0.9 when showed */
z-index: 100;
border-left: 24px solid #2E86AB;
}
#notification_bar p{
margin: 6px;
color: #EAEAEA;
font-size: 1em;
font-family: Arial, Helvetica, sans-serif;
}
#picture_zoom{
position: absolute;
top: 10%;
bottom: 10%;
left: 10%;
right: 10%;
border: 4px solid black;
z-index: 100;
}
#picture_zoom img{
width: 100%;
height: 100%;
}
</style>
<link rel="stylesheet" href="/style.css">
</head>
<body>
<div id="notification_bar">
@@ -56,6 +12,13 @@
<div id="picture_zoom" style="display: none;"><!-- Hidden by default, Jquery will show it later -->
<img src="" alt="Sign picture" /><!-- src is defined by JS -->
</div>
<div id="movement_keys">
<div id="key_up"></div>
<div id="key_left"></div>
<div id="key_down"></div>
<div id="key_right"></div>
</div>
<script type="module" src="/src/main.js"></script>
</body>