Docs update for mobile

This commit is contained in:
ZennDev1337 2023-08-22 14:51:41 +02:00
parent 3ce6b4d20e
commit 14f80f0fb8
4 changed files with 2864 additions and 2865 deletions

View file

@ -1,15 +1,14 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<link
rel="icon"
href="https://upload.wikimedia.org/wikipedia/commons/0/0f/Original_Ferris.svg"
type="image/svg+xml"
/>
<title>ZennDev1337 Image Converter</title>
</head>
<body onload="setup(this);"> <head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="https://upload.wikimedia.org/wikipedia/commons/0/0f/Original_Ferris.svg"
type="image/svg+xml" />
<title>ZennDev1337 Image Converter</title>
</head>
<body onload="setup(this);">
<style> <style>
html, html,
body { body {
@ -18,6 +17,7 @@
color: azure; color: azure;
overflow: hidden; overflow: hidden;
} }
body { body {
font-family: Courier New; font-family: Courier New;
text-align: center; text-align: center;
@ -25,9 +25,11 @@
font-size: xx-large; font-size: xx-large;
font-weight: 700; font-weight: 700;
} }
.wrapper { .wrapper {
min-height: calc(100vh - 50px); min-height: calc(100vh - 50px);
} }
.footer { .footer {
font-family: Courier New; font-family: Courier New;
text-align: center; text-align: center;
@ -37,7 +39,8 @@
color: #e7e7e7; color: #e7e7e7;
} }
.footer > a {
.footer>a {
font-family: Courier New; font-family: Courier New;
text-align: center; text-align: center;
font-size: large; font-size: large;
@ -46,10 +49,12 @@
color: #e7e7e7; color: #e7e7e7;
text-decoration: none; text-decoration: none;
} }
.sticky { .sticky {
bottom: 0; bottom: 0;
height: 50px; height: 50px;
} }
textarea { textarea {
background-color: #281c1c; background-color: #281c1c;
color: azure; color: azure;
@ -58,16 +63,19 @@
height: 300px; height: 300px;
resize: none; resize: none;
} }
.title > p {
.title>p {
padding-left: 20px; padding-left: 20px;
margin: 0; margin: 0;
padding-right: 20px; padding-right: 20px;
color: #e7e7e7; color: #e7e7e7;
font-size: xx-large; font-size: xx-large;
} }
.title { .title {
padding-top: 50px; padding-top: 50px;
} }
.separator { .separator {
border-top: solid #281c1c; border-top: solid #281c1c;
border-bottom: none; border-bottom: none;
@ -76,21 +84,26 @@
margin-top: 40px; margin-top: 40px;
width: clamp(700px, 70vw, 1200px); width: clamp(700px, 70vw, 1200px);
} }
.image-container { .image-container {
margin-top: 40px; margin-top: 40px;
min-height: 80px; min-height: 80px;
} }
p { p {
font-size: medium; font-size: medium;
} }
.txtHead { .txtHead {
margin-bottom: 5px; margin-bottom: 5px;
} }
.topnav { .topnav {
background-color: #000000; background-color: #000000;
overflow: hidden; overflow: hidden;
height: 47px; height: 47px;
} }
.topnav a { .topnav a {
color: #f2f2f2; color: #f2f2f2;
text-align: center; text-align: center;
@ -98,36 +111,44 @@
text-decoration: none; text-decoration: none;
font-size: 17px; font-size: 17px;
} }
.topnav a:hover { .topnav a:hover {
background-color: #ddd; background-color: #ddd;
color: black; color: black;
} }
.topnav a.active { .topnav a.active {
background-color: #281c1c; background-color: #281c1c;
color: white; color: white;
} }
.topnav .icon { .topnav .icon {
display: none; display: none;
} }
@media screen and (max-width: 800px) {
@media screen and (max-width: 810px) {
.topnav a:not(:first-child) { .topnav a:not(:first-child) {
display: none; display: none;
} }
.topnav a.icon { .topnav a.icon {
float: right; float: right;
display: block; display: block;
} }
} }
@media screen and (max-width: 800px) {
@media screen and (max-width: 810px) {
.topnav.responsive { .topnav.responsive {
position: relative; position: relative;
height: 188px; height: 188px;
} }
.topnav.responsive a.icon { .topnav.responsive a.icon {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
} }
.topnav.responsive a { .topnav.responsive a {
float: none; float: none;
display: block; display: block;
@ -137,40 +158,16 @@
</style> </style>
<div class="wrapper"> <div class="wrapper">
<div class="topnav" id="myTopnav"> <div class="topnav" id="myTopnav">
<a <a href="https://zenndev1337.github.io/Rust-for-Arduboy/index.html">Rust for Arduboy</a>
href="https://zenndev1337.github.io/Rust-for-Arduboy/index.html" <a href="https://zenndev1337.github.io/Rust-for-Arduboy/image-converter.html" class="active">Image
>Rust for Arduboy</a Converter</a>
> <a href="https://zenndev1337.github.io/Rust-for-Arduboy/tile-converter.html">Tile Converter</a>
<a <a href="https://zenndev1337.github.io/Rust-for-Arduboy/sprite-converter.html">Sprite Converter</a>
href="https://zenndev1337.github.io/Rust-for-Arduboy/image-converter.html" <a href="javascript:void(0);" class="icon" onclick="myFunction()">
class="active" <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-list"
>Image Converter</a viewBox="0 0 16 16">
> <path fill-rule="evenodd"
<a d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z" />
href="https://zenndev1337.github.io/Rust-for-Arduboy/tile-converter.html"
>Tile Converter</a
>
<a
href="https://zenndev1337.github.io/Rust-for-Arduboy/sprite-converter.html"
>Sprite Converter</a
>
<a
href="javascript:void(0);"
class="icon"
onclick="myFunction()"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-list"
viewBox="0 0 16 16"
>
<path
fill-rule="evenodd"
d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"
/>
</svg> </svg>
</a> </a>
</div> </div>
@ -185,9 +182,7 @@
</div> </div>
<footer class="footer"> <footer class="footer">
<a href="https://github.com/ZennDev1337/" target="_blank" <a href="https://github.com/ZennDev1337/" target="_blank">By ZennDev1337</a>
>By ZennDev1337</a
>
</footer> </footer>
<script language="JavaScript"> <script language="JavaScript">
function myFunction() { function myFunction() {
@ -397,5 +392,6 @@
reader.readAsDataURL(imageData); reader.readAsDataURL(imageData);
} }
</script> </script>
</body> </body>
</html> </html>

View file

@ -1,15 +1,15 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<link
rel="icon"
href="https://upload.wikimedia.org/wikipedia/commons/0/0f/Original_Ferris.svg"
type="image/svg+xml"
/>
<title>ZennDev1337 Sprite Converter</title>
</head>
<body onload="setup(this);"> <head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="https://upload.wikimedia.org/wikipedia/commons/0/0f/Original_Ferris.svg"
type="image/svg+xml" />
<title>ZennDev1337 Sprite Converter</title>
</head>
<body onload="setup(this);">
<style> <style>
html, html,
body { body {
@ -17,15 +17,18 @@
background-color: black; background-color: black;
color: azure; color: azure;
} }
body { body {
font-family: Courier New; font-family: Courier New;
text-align: center; text-align: center;
font-size: xx-large; font-size: xx-large;
font-weight: 700; font-weight: 700;
} }
.wrapper { .wrapper {
min-height: calc(100vh - 50px); min-height: calc(100vh - 50px);
} }
.footer { .footer {
font-family: Courier New; font-family: Courier New;
text-align: center; text-align: center;
@ -35,7 +38,8 @@
color: #e7e7e7; color: #e7e7e7;
} }
.footer > a {
.footer>a {
font-family: Courier New; font-family: Courier New;
text-align: center; text-align: center;
font-size: large; font-size: large;
@ -44,10 +48,12 @@
color: #e7e7e7; color: #e7e7e7;
text-decoration: none; text-decoration: none;
} }
.sticky { .sticky {
bottom: 0; bottom: 0;
height: 50px; height: 50px;
} }
textarea { textarea {
background-color: #281c1c; background-color: #281c1c;
color: azure; color: azure;
@ -56,16 +62,19 @@
height: 300px; height: 300px;
resize: none; resize: none;
} }
.title > p {
.title>p {
padding-left: 20px; padding-left: 20px;
margin: 0; margin: 0;
padding-right: 20px; padding-right: 20px;
color: #e7e7e7; color: #e7e7e7;
font-size: xx-large; font-size: xx-large;
} }
.title { .title {
padding-top: 50px; padding-top: 50px;
} }
.separator { .separator {
border-top: solid #281c1c; border-top: solid #281c1c;
border-bottom: none; border-bottom: none;
@ -74,21 +83,26 @@
margin-top: 40px; margin-top: 40px;
width: clamp(700px, 70vw, 1200px); width: clamp(700px, 70vw, 1200px);
} }
.image-container { .image-container {
margin-top: 40px; margin-top: 40px;
min-height: 80px; min-height: 80px;
} }
p { p {
font-size: medium; font-size: medium;
} }
.txtHead { .txtHead {
margin-bottom: 5px; margin-bottom: 5px;
} }
.topnav { .topnav {
background-color: #000000; background-color: #000000;
overflow: hidden; overflow: hidden;
height: 47px; height: 47px;
} }
.topnav a { .topnav a {
color: #f2f2f2; color: #f2f2f2;
text-align: center; text-align: center;
@ -96,43 +110,52 @@
text-decoration: none; text-decoration: none;
font-size: 17px; font-size: 17px;
} }
.topnav a:hover { .topnav a:hover {
background-color: #ddd; background-color: #ddd;
color: black; color: black;
} }
.topnav a.active { .topnav a.active {
background-color: #281c1c; background-color: #281c1c;
color: white; color: white;
} }
.topnav .icon { .topnav .icon {
display: none; display: none;
} }
@media screen and (max-width: 800px) {
@media screen and (max-width: 810px) {
.topnav a:not(:first-child) { .topnav a:not(:first-child) {
display: none; display: none;
} }
.topnav a.icon { .topnav a.icon {
float: right; float: right;
display: block; display: block;
} }
} }
@media screen and (max-width: 800px) {
@media screen and (max-width: 810px) {
.topnav.responsive { .topnav.responsive {
position: relative; position: relative;
height: 188px; height: 188px;
} }
.topnav.responsive a.icon { .topnav.responsive a.icon {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
} }
.topnav.responsive a { .topnav.responsive a {
float: none; float: none;
display: block; display: block;
text-align: left; text-align: left;
} }
} }
iframe{
iframe {
width: 100vw; width: 100vw;
border: none; border: none;
height: calc(100vh - 110px); height: calc(100vh - 110px);
@ -144,32 +167,19 @@
<a href="https://zenndev1337.github.io/Rust-for-Arduboy/image-converter.html">Image Converter</a> <a href="https://zenndev1337.github.io/Rust-for-Arduboy/image-converter.html">Image Converter</a>
<a href="https://zenndev1337.github.io/Rust-for-Arduboy/tile-converter.html">Tile Converter</a> <a href="https://zenndev1337.github.io/Rust-for-Arduboy/tile-converter.html">Tile Converter</a>
<a href="https://zenndev1337.github.io/Rust-for-Arduboy/sprite-converter.html">Sprite Converter</a> <a href="https://zenndev1337.github.io/Rust-for-Arduboy/sprite-converter.html">Sprite Converter</a>
<a <a href="javascript:void(0);" class="icon" onclick="myFunction()">
href="javascript:void(0);" <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-list"
class="icon" viewBox="0 0 16 16">
onclick="myFunction()" <path fill-rule="evenodd"
> d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z" />
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-list"
viewBox="0 0 16 16"
>
<path
fill-rule="evenodd"
d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"
/>
</svg> </svg>
</a> </a>
</div> </div>
<iframe src="https://ZennDev1337.github.io/Rust-for-Arduboy/doc/arduboy_rust/index.html" title="Rust for Arduboy Docs"></iframe> <iframe src="https://ZennDev1337.github.io/Rust-for-Arduboy/doc/arduboy_rust/index.html"
title="Rust for Arduboy Docs"></iframe>
<footer class="footer sticky"> <footer class="footer sticky">
<a href="https://github.com/ZennDev1337/" target="_blank" <a href="https://github.com/ZennDev1337/" target="_blank">By ZennDev1337</a>
>By ZennDev1337</a
>
</footer> </footer>
<script language="JavaScript"> <script language="JavaScript">
function myFunction() { function myFunction() {
@ -181,5 +191,6 @@
} }
} }
</script> </script>
</body> </body>
</html> </html>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<link
rel="icon"
href="https://upload.wikimedia.org/wikipedia/commons/0/0f/Original_Ferris.svg"
type="image/svg+xml"
/>
<title>ZennDev1337 Sprite Converter</title>
</head>
<body onload="setup(this);"> <head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="https://upload.wikimedia.org/wikipedia/commons/0/0f/Original_Ferris.svg"
type="image/svg+xml" />
<title>ZennDev1337 Sprite Converter</title>
</head>
<body onload="setup(this);">
<style> <style>
html, html,
body { body {
@ -17,15 +16,18 @@
background-color: black; background-color: black;
color: azure; color: azure;
} }
body { body {
font-family: Courier New; font-family: Courier New;
text-align: center; text-align: center;
font-size: xx-large; font-size: xx-large;
font-weight: 700; font-weight: 700;
} }
.wrapper { .wrapper {
min-height: calc(100vh - 50px); min-height: calc(100vh - 50px);
} }
.footer { .footer {
font-family: Courier New; font-family: Courier New;
text-align: center; text-align: center;
@ -35,7 +37,8 @@
color: #e7e7e7; color: #e7e7e7;
} }
.footer > a {
.footer>a {
font-family: Courier New; font-family: Courier New;
text-align: center; text-align: center;
font-size: large; font-size: large;
@ -44,10 +47,12 @@
text-decoration: none; text-decoration: none;
color: #e7e7e7; color: #e7e7e7;
} }
.sticky { .sticky {
bottom: 0; bottom: 0;
height: 50px; height: 50px;
} }
textarea { textarea {
background-color: #281c1c; background-color: #281c1c;
color: azure; color: azure;
@ -56,16 +61,19 @@
height: 300px; height: 300px;
resize: none; resize: none;
} }
.title > p {
.title>p {
padding-left: 20px; padding-left: 20px;
margin: 0; margin: 0;
padding-right: 20px; padding-right: 20px;
color: #e7e7e7; color: #e7e7e7;
font-size: xx-large; font-size: xx-large;
} }
.title { .title {
padding-top: 50px; padding-top: 50px;
} }
.separator { .separator {
border-top: solid #281c1c; border-top: solid #281c1c;
border-bottom: none; border-bottom: none;
@ -74,21 +82,26 @@
margin-top: 40px; margin-top: 40px;
width: clamp(700px, 70vw, 1200px); width: clamp(700px, 70vw, 1200px);
} }
.image-container { .image-container {
margin-top: 40px; margin-top: 40px;
min-height: 80px; min-height: 80px;
} }
p { p {
font-size: medium; font-size: medium;
} }
.txtHead { .txtHead {
margin-bottom: 5px; margin-bottom: 5px;
} }
.topnav { .topnav {
background-color: #000000; background-color: #000000;
overflow: hidden; overflow: hidden;
height: 47px; height: 47px;
} }
.topnav a { .topnav a {
color: #f2f2f2; color: #f2f2f2;
text-align: center; text-align: center;
@ -96,36 +109,44 @@
text-decoration: none; text-decoration: none;
font-size: 17px; font-size: 17px;
} }
.topnav a:hover { .topnav a:hover {
background-color: #ddd; background-color: #ddd;
color: black; color: black;
} }
.topnav a.active { .topnav a.active {
background-color: #281c1c; background-color: #281c1c;
color: white; color: white;
} }
.topnav .icon { .topnav .icon {
display: none; display: none;
} }
@media screen and (max-width: 800px) {
@media screen and (max-width: 810px) {
.topnav a:not(:first-child) { .topnav a:not(:first-child) {
display: none; display: none;
} }
.topnav a.icon { .topnav a.icon {
float: right; float: right;
display: block; display: block;
} }
} }
@media screen and (max-width: 800px) {
@media screen and (max-width: 810px) {
.topnav.responsive { .topnav.responsive {
position: relative; position: relative;
height: 188px; height: 188px;
} }
.topnav.responsive a.icon { .topnav.responsive a.icon {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
} }
.topnav.responsive a { .topnav.responsive a {
float: none; float: none;
display: block; display: block;
@ -135,40 +156,16 @@
</style> </style>
<div class="wrapper"> <div class="wrapper">
<div class="topnav" id="myTopnav"> <div class="topnav" id="myTopnav">
<a <a href="https://zenndev1337.github.io/Rust-for-Arduboy/index.html">Rust for Arduboy</a>
href="https://zenndev1337.github.io/Rust-for-Arduboy/index.html" <a href="https://zenndev1337.github.io/Rust-for-Arduboy/image-converter.html">Image Converter</a>
>Rust for Arduboy</a <a href="https://zenndev1337.github.io/Rust-for-Arduboy/tile-converter.html">Tile Converter</a>
> <a href="https://zenndev1337.github.io/Rust-for-Arduboy/sprite-converter.html" class="active">Sprite
<a Converter</a>
href="https://zenndev1337.github.io/Rust-for-Arduboy/image-converter.html" <a href="javascript:void(0);" class="icon" onclick="myFunction()">
>Image Converter</a <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-list"
> viewBox="0 0 16 16">
<a <path fill-rule="evenodd"
href="https://zenndev1337.github.io/Rust-for-Arduboy/tile-converter.html" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z" />
>Tile Converter</a
>
<a
href="https://zenndev1337.github.io/Rust-for-Arduboy/sprite-converter.html"
class="active"
>Sprite Converter</a
>
<a
href="javascript:void(0);"
class="icon"
onclick="myFunction()"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-list"
viewBox="0 0 16 16"
>
<path
fill-rule="evenodd"
d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"
/>
</svg> </svg>
</a> </a>
</div> </div>
@ -183,9 +180,7 @@
</div> </div>
<footer class="footer sticky"> <footer class="footer sticky">
<a href="https://github.com/ZennDev1337/" target="_blank" <a href="https://github.com/ZennDev1337/" target="_blank">By ZennDev1337</a>
>By ZennDev1337</a
>
</footer> </footer>
<script language="JavaScript"> <script language="JavaScript">
function myFunction() { function myFunction() {
@ -631,7 +626,7 @@
p[0] -= (a * (p[0] - b)) / alpharadbias; p[0] -= (a * (p[0] - b)) / alpharadbias;
p[1] -= (a * (p[1] - g)) / alpharadbias; p[1] -= (a * (p[1] - g)) / alpharadbias;
p[2] -= (a * (p[2] - r)) / alpharadbias; p[2] -= (a * (p[2] - r)) / alpharadbias;
} catch (e) {} // prevents 1.3 miscompilation } catch (e) { } // prevents 1.3 miscompilation
} }
if (k > lo) { if (k > lo) {
@ -641,7 +636,7 @@
p[0] -= (a * (p[0] - b)) / alpharadbias; p[0] -= (a * (p[0] - b)) / alpharadbias;
p[1] -= (a * (p[1] - g)) / alpharadbias; p[1] -= (a * (p[1] - g)) / alpharadbias;
p[2] -= (a * (p[2] - r)) / alpharadbias; p[2] -= (a * (p[2] - r)) / alpharadbias;
} catch (e) {} } catch (e) { }
} }
} }
}; };
@ -1400,7 +1395,7 @@
var dmin = 256 * 256 * 256; var dmin = 256 * 256 * 256;
var len = colorTab.length; var len = colorTab.length;
for (var i = 0; i < len; ) { for (var i = 0; i < len;) {
var dr = r - (colorTab[i++] & 0xff); var dr = r - (colorTab[i++] & 0xff);
var dg = g - (colorTab[i++] & 0xff); var dg = g - (colorTab[i++] & 0xff);
var db = b - (colorTab[i] & 0xff); var db = b - (colorTab[i] & 0xff);
@ -1952,5 +1947,6 @@
reader.readAsDataURL(imageData); reader.readAsDataURL(imageData);
} }
</script> </script>
</body> </body>
</html> </html>

View file

@ -1,15 +1,14 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<link
rel="icon"
href="https://upload.wikimedia.org/wikipedia/commons/0/0f/Original_Ferris.svg"
type="image/svg+xml"
/>
<title>ZennDev1337 Tile Converter</title>
</head>
<body onload="setup(this);"> <head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="https://upload.wikimedia.org/wikipedia/commons/0/0f/Original_Ferris.svg"
type="image/svg+xml" />
<title>ZennDev1337 Tile Converter</title>
</head>
<body onload="setup(this);">
<style> <style>
html, html,
body { body {
@ -17,15 +16,18 @@
background-color: black; background-color: black;
color: azure; color: azure;
} }
body { body {
font-family: Courier New; font-family: Courier New;
text-align: center; text-align: center;
font-size: xx-large; font-size: xx-large;
font-weight: 700; font-weight: 700;
} }
.wrapper { .wrapper {
min-height: calc(100vh - 50px); min-height: calc(100vh - 50px);
} }
.footer { .footer {
font-family: Courier New; font-family: Courier New;
text-align: center; text-align: center;
@ -35,7 +37,8 @@
color: #e7e7e7; color: #e7e7e7;
} }
.footer > a {
.footer>a {
font-family: Courier New; font-family: Courier New;
text-align: center; text-align: center;
font-size: large; font-size: large;
@ -44,10 +47,12 @@
color: #e7e7e7; color: #e7e7e7;
text-decoration: none; text-decoration: none;
} }
.sticky { .sticky {
bottom: 0; bottom: 0;
height: 50px; height: 50px;
} }
textarea { textarea {
background-color: #281c1c; background-color: #281c1c;
color: azure; color: azure;
@ -56,16 +61,19 @@
height: 300px; height: 300px;
resize: none; resize: none;
} }
.title > p {
.title>p {
padding-left: 20px; padding-left: 20px;
margin: 0; margin: 0;
padding-right: 20px; padding-right: 20px;
color: #e7e7e7; color: #e7e7e7;
font-size: xx-large; font-size: xx-large;
} }
.title { .title {
padding-top: 50px; padding-top: 50px;
} }
.separator { .separator {
border-top: solid #281c1c; border-top: solid #281c1c;
border-bottom: none; border-bottom: none;
@ -74,21 +82,26 @@
margin-top: 40px; margin-top: 40px;
width: clamp(700px, 70vw, 1200px); width: clamp(700px, 70vw, 1200px);
} }
.image-container { .image-container {
margin-top: 40px; margin-top: 40px;
min-height: 80px; min-height: 80px;
} }
p { p {
font-size: medium; font-size: medium;
} }
.txtHead { .txtHead {
margin-bottom: 5px; margin-bottom: 5px;
} }
.topnav { .topnav {
background-color: #000000; background-color: #000000;
overflow: hidden; overflow: hidden;
height: 47px; height: 47px;
} }
.topnav a { .topnav a {
color: #f2f2f2; color: #f2f2f2;
text-align: center; text-align: center;
@ -96,36 +109,44 @@
text-decoration: none; text-decoration: none;
font-size: 17px; font-size: 17px;
} }
.topnav a:hover { .topnav a:hover {
background-color: #ddd; background-color: #ddd;
color: black; color: black;
} }
.topnav a.active { .topnav a.active {
background-color: #281c1c; background-color: #281c1c;
color: white; color: white;
} }
.topnav .icon { .topnav .icon {
display: none; display: none;
} }
@media screen and (max-width: 800px) {
@media screen and (max-width: 810px) {
.topnav a:not(:first-child) { .topnav a:not(:first-child) {
display: none; display: none;
} }
.topnav a.icon { .topnav a.icon {
float: right; float: right;
display: block; display: block;
} }
} }
@media screen and (max-width: 800px) {
@media screen and (max-width: 810px) {
.topnav.responsive { .topnav.responsive {
position: relative; position: relative;
height: 188px; height: 188px;
} }
.topnav.responsive a.icon { .topnav.responsive a.icon {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
} }
.topnav.responsive a { .topnav.responsive a {
float: none; float: none;
display: block; display: block;
@ -135,40 +156,16 @@
</style> </style>
<div class="wrapper"> <div class="wrapper">
<div class="topnav" id="myTopnav"> <div class="topnav" id="myTopnav">
<a <a href="https://zenndev1337.github.io/Rust-for-Arduboy/index.html">Rust for Arduboy</a>
href="https://zenndev1337.github.io/Rust-for-Arduboy/index.html" <a href="https://zenndev1337.github.io/Rust-for-Arduboy/image-converter.html">Image Converter</a>
>Rust for Arduboy</a <a href="https://zenndev1337.github.io/Rust-for-Arduboy/tile-converter.html" class="active">Tile
> Converter</a>
<a <a href="https://zenndev1337.github.io/Rust-for-Arduboy/sprite-converter.html">Sprite Converter</a>
href="https://zenndev1337.github.io/Rust-for-Arduboy/image-converter.html" <a href="javascript:void(0);" class="icon" onclick="myFunction()">
>Image Converter</a <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-list"
> viewBox="0 0 16 16">
<a <path fill-rule="evenodd"
href="https://zenndev1337.github.io/Rust-for-Arduboy/tile-converter.html" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z" />
class="active"
>Tile Converter</a
>
<a
href="https://zenndev1337.github.io/Rust-for-Arduboy/sprite-converter.html"
>Sprite Converter</a
>
<a
href="javascript:void(0);"
class="icon"
onclick="myFunction()"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-list"
viewBox="0 0 16 16"
>
<path
fill-rule="evenodd"
d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"
/>
</svg> </svg>
</a> </a>
</div> </div>
@ -183,9 +180,7 @@
</div> </div>
<footer class="footer"> <footer class="footer">
<a href="https://github.com/ZennDev1337/" target="_blank" <a href="https://github.com/ZennDev1337/" target="_blank">By ZennDev1337</a>
>By ZennDev1337</a
>
</footer> </footer>
<script language="JavaScript"> <script language="JavaScript">
function myFunction() { function myFunction() {
@ -483,5 +478,6 @@
reader.readAsDataURL(imageData); reader.readAsDataURL(imageData);
} }
</script> </script>
</body> </body>
</html> </html>