label_printer/templates/base.html
2024-11-25 19:17:31 +01:00

114 lines
2.3 KiB
HTML

<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Upload</title>
<style>
body {
background-color: #f8f9fa;
font-family: Arial, sans-serif;
color: #333;
}
.container {
display: flex;
width: 100%;
}
.box {
flex: 1;
text-align: center;
margin: 1px;
padding: 20px;
color: white;
background-color: #ff69b4; /* Pink */
border: 2px solid #55cdfc; /* Light blue */
transition: background-color 0.3s ease;
}
.info {
font-size: 20px;
}
.box:hover {
background-color: #f7a8b8; /* Softer pink on hover */
}
a {
text-decoration: none;
color: inherit;
}
label {
font-weight: bold;
color: #ff69b4;
}
input[type="submit"], select, textarea, input[type="number"] {
background-color: #55cdfc;
border: none;
color: white;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
}
input[type="submit"]:hover, input[type="number"]:hover, select:hover, textarea:hover {
background-color: #f7a8b8;
}
h2 {
color: #ff69b4;
}
img {
border: 3px solid #55cdfc;
}
form {
background-color: #f8f9fa;
padding: 20px;
border-radius: 10px;
border: 2px solid #ff69b4;
}
</style>
{% block head %}
{% endblock %}
</head>
<body>
<script>
{% if scrollDown %}
localStorage.setItem('scrollpos', 99999);
{% endif %}
document.addEventListener("DOMContentLoaded", function(event) {
var scrollpos = localStorage.getItem('scrollpos');
if (scrollpos) window.scrollTo(0, scrollpos);
});
window.onbeforeunload = function(e) {
localStorage.setItem('scrollpos', window.scrollY);
};
</script>
<div class="container">
<a href="text" class="box">
<div>Text</div>
</a>
<a href="image" class="box">
<div>Image</div>
</a>
</div>
{% block content %}
{% endblock %}
</body>
</html>