starting custom 404 page
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
19
src/main/resources/css/404.css
Normal file
19
src/main/resources/css/404.css
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
body {
|
||||||
|
height: 100vh;
|
||||||
|
display: grid;
|
||||||
|
justify-content: center;
|
||||||
|
transition: background-color 1s;
|
||||||
|
}
|
||||||
|
|
||||||
|
canvas {
|
||||||
|
margin-top: -5em;
|
||||||
|
margin-bottom: -3em;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rive-canvas {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
margin: auto;
|
||||||
|
display: block;
|
||||||
|
}
|
@@ -1,27 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<title>Rive Hello World</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div style="text-align: center">
|
|
||||||
<canvas id="canvas" width="400" height="400"></canvas>
|
|
||||||
</div>
|
|
||||||
<script src="https://unpkg.com/@rive-app/canvas@2.20.0"></script>
|
|
||||||
<script>
|
|
||||||
const r = new rive.Rive({
|
|
||||||
src: "https://cdn.rive.app/animations/vehicles.riv",
|
|
||||||
canvas: document.getElementById("canvas"),
|
|
||||||
autoplay: true,
|
|
||||||
// artboard: "Arboard", // Optional. If not supplied the default is selected
|
|
||||||
stateMachines: "bumpy",
|
|
||||||
onLoad: () => {
|
|
||||||
// Ensure the drawing surface matches the canvas size and device pixel ratio
|
|
||||||
r.resizeDrawingSurfaceToCanvas();
|
|
||||||
},
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
BIN
src/main/resources/static/404.riv
Normal file
BIN
src/main/resources/static/404.riv
Normal file
Binary file not shown.
24
src/main/resources/static/error/404.html
Normal file
24
src/main/resources/static/error/404.html
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8"/>
|
||||||
|
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
|
||||||
|
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
||||||
|
<title>404</title>
|
||||||
|
<link href="/css/404.css" rel="stylesheet"/>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div style="text-align: center">
|
||||||
|
<canvas id="rive-canvas" style="width: 100%; height: 100%; margin: auto; display: block;"></canvas>
|
||||||
|
</div>
|
||||||
|
<script src="https://unpkg.com/@rive-app/canvas"></script>
|
||||||
|
<script>
|
||||||
|
const r = new rive.Rive({
|
||||||
|
src: "https://cdn.rive.app/animations/vehicles.riv",
|
||||||
|
canvas: document.getElementById("rive-canvas"),
|
||||||
|
autoplay: true,
|
||||||
|
fit: rive.Fit.Cover
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Reference in New Issue
Block a user