1
0
mirror of synced 2025-01-29 19:17:28 +01:00

web: Let's do some SEO

This commit is contained in:
WerWolv 2023-12-08 16:22:47 +01:00
parent 878f45dd80
commit cf13404254
5 changed files with 94 additions and 6 deletions

View File

@ -4,12 +4,12 @@
<link rel="manifest" href="manifest.json" />
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Primary Meta Tags -->
<title>ImHex Web - Online Hex Editor</title>
<title>ImHex Web - Free Online Hex Editor for Reverse Engineers</title>
<meta name="title" content="ImHex">
<meta name="description" content="A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.">
<meta name="description" content="Free and extremely powerful Online Hex Editor">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<!-- Open Graph / Facebook -->
@ -65,7 +65,17 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<p id="loading_text">ImHex is loading...</p>
<div id="loading" class="centered">
<img src="https://raw.githubusercontent.com/WerWolv/ImHex/master/plugins/builtin/romfs/assets/dark/banner.png" id="logo"/>
<p id="loading_text">A Free open source Hex Editor available natively and on the web!</p>
<div style="height: 50%"></div>
<div class="loading_ripple">
<div class="lds-ripple"><div></div><div></div></div>
</div>
</div>
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()"></canvas>
<script type="text/javascript" src="wasm-config.js"></script>

2
dist/web/source/robots.txt vendored Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Allow: /

14
dist/web/source/sitemap.xml vendored Normal file
View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://web.imhex.werwolv.net/</loc>
<lastmod>2023-12-07T22:53:06+00:00</lastmod>
</url>
</urlset>

View File

@ -29,8 +29,70 @@ body {
#loading_text {
color: #F0F0F0;
font-size: 30px;
font-size: 20px;
font-family: monospace;
width: 100%;
text-align: center;
}
.centered {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.loading_ripple {
}
.lds-ripple {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-ripple div {
position: absolute;
border: 4px solid #fff;
opacity: 1;
border-radius: 50%;
animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
animation-delay: -0.5s;
}
@keyframes lds-ripple {
0% {
top: 36px;
left: 36px;
width: 0;
height: 0;
opacity: 0;
}
4.9% {
top: 36px;
left: 36px;
width: 0;
height: 0;
opacity: 0;
}
5% {
top: 36px;
left: 36px;
width: 0;
height: 0;
opacity: 1;
}
100% {
top: 0px;
left: 0px;
width: 72px;
height: 72px;
opacity: 0;
}
}

View File

@ -35,7 +35,7 @@ var Module = {
postRun: [],
onRuntimeInitialized: function() {
// Triggered when the wasm module is loaded and ready to use.
document.getElementById("loading_text").style.display = "none"
document.getElementById("loading").style.display = "none"
document.getElementById("canvas").style.display = "initial"
},
print: (function() { })(),