atajo en la web para ir a la playlist, tipografía de la página de inicio

This commit is contained in:
Ales (Shagi) Zabala Alava 2020-01-26 18:40:06 +01:00
parent b9cc815505
commit dc73b3f3ae
2 changed files with 52 additions and 28 deletions

View File

@ -55,5 +55,16 @@
Licencia Creative Commons Atribución-CompartirIgual 4.0 Internacional Licencia Creative Commons Atribución-CompartirIgual 4.0 Internacional
</a> salvo que se indique lo contrario en la propia canción. </a> salvo que se indique lo contrario en la propia canción.
</footer> </footer>
<script>
var body = document.getElementsByTagName('body')[0];
body.addEventListener('keypress', function(event) {
switch(event.key) {
case "p":
window.location = '{{ root_path }}/playlist/';
break;
}
console.log(event.key);
});
</script>
</body> </body>
</html> </html>

View File

@ -5,11 +5,12 @@
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
<title>Negro Mate</title> <title>Negro Mate</title>
<link rel="shortcut icon" href="{{ root_path }}/static/css/nm_icon.png" type="image/png"> <link rel="shortcut icon" href="{{ root_path }}/static/css/nm_icon.png" type="image/png">
<style> <style>
body { body {
background-color: #232323; background-color: #232323;
} }
h1 { h1 {
font-family: "CyrBit";
text-align: center; text-align: center;
font-size: 50pt; font-size: 50pt;
border: 5px solid black; border: 5px solid black;
@ -17,8 +18,8 @@ h1 {
margin: 1em auto 0; margin: 1em auto 0;
min-width: 300px; min-width: 300px;
width: 30%; width: 30%;
} }
a { a {
font-size: 200pt; font-size: 200pt;
font-weight: bold; font-weight: bold;
background-color: white; background-color: white;
@ -31,11 +32,23 @@ a {
text-align: center; text-align: center;
border-radius: 105pt; border-radius: 105pt;
text-decoration: none; text-decoration: none;
} font-style: italic;
</style> }
</style>
</head> </head>
<body> <body>
<h1>Negro mate</h1> <h1>Negro mate</h1>
<a href="{{ root_path }}/home/">#</a> <a href="{{ root_path }}/home/">#</a>
</body> </body>
<script>
var body = document.getElementsByTagName('body')[0];
body.addEventListener('keypress', function(event) {
switch(event.key) {
case "p":
window.location = '{{ root_path }}/playlist/';
break;
}
console.log(event.key);
});
</script>
</html> </html>