Adding canvas-color landing page script
This commit is contained in:
parent
f9113d7cc3
commit
ce4cfa4944
4
landing-page-canvas-color/README.md
Normal file
4
landing-page-canvas-color/README.md
Normal 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)
|
1239
landing-page-canvas-color/function.js
Normal file
1239
landing-page-canvas-color/function.js
Normal file
File diff suppressed because it is too large
Load Diff
32
landing-page-canvas-color/index.html
Normal file
32
landing-page-canvas-color/index.html
Normal 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>
|
BIN
landing-page-canvas-color/sound.mp3
Normal file
BIN
landing-page-canvas-color/sound.mp3
Normal file
Binary file not shown.
61
landing-page-canvas-color/style.css
Normal file
61
landing-page-canvas-color/style.css
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user