Adding canvas-color landing page script

This commit is contained in:
Michael Reber 2019-12-29 12:55:17 +01:00
parent f9113d7cc3
commit ce4cfa4944
5 changed files with 1336 additions and 0 deletions

View File

@ -0,0 +1,4 @@
# Canvas-color landing page
A landing page that reacts to mouse-over events and produces rainbow-like collored colors
![image](/attachments/b339cffb-4e5c-4003-ace3-654d89968b49)

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Site title</title>
<link rel="stylesheet" href="./style.css">
<script type="text/javascript">
var audio = new Audio('sound.mp3');
audio.play();
</script>
</head>
<body>
<h2>Site title</h2>
<h3>This is a landing page</h3>
<h4><br><br><a href="#">Enter</a></h4>
<canvas width="1773" height="1764"></canvas>
<script src="./function.js" charset="utf-8"></script>
</body>
</html>

Binary file not shown.

View File

@ -0,0 +1,61 @@
html, body {
overflow: hidden;
background-color: #000;
}
body {
margin: 0;
position: fixed;
width: 100%;
height: 100%;
}
canvas {
width: 100%;
height: 100%;
}
h2 {
padding: 0;
margin: 0;
color: white;
font-size: 50px;
position: absolute;
text-decoration: none;
display: block;
font-display: unset;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-family: 'Maven Pro', sans-serif;
}
h3 {
padding: 0;
margin: 0;
color: white;
font-size: 30px;
position: absolute;
text-decoration: none;
display: block;
font-display: unset;
top: 55%;
left: 50%;
transform: translate(-50%, -50%);
font-family: 'Maven Pro', sans-serif;
}
h4 {
padding: 0;
margin: 0;
color: white;
font-size: 20px;
position: absolute;
text-decoration: none;
display: block;
font-display: unset;
top: 58%;
left: 50%;
transform: translate(-50%, -50%);
font-family: 'Open Sans Condensed', sans-serif;
}