Update templates/content.html

This commit is contained in:
cgcristi 2024-09-08 13:16:13 +02:00
parent 3adfa6ef75
commit 3104b2ef9b

View File

@ -1,111 +1,152 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Text</title> <title>Text</title>
<style> <style>
body { body {
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
background-color: #121212; background-color: #121212;
color: #e0e0e0; color: #e0e0e0;
margin: 0; margin: 0;
padding: 0; padding: 0;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 100vh; height: 100vh;
} }
.container { .container {
background: #1e1e1e; background: #1e1e1e;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
padding: 20px; padding: 20px;
width: 80%; width: 80%;
max-width: 800px; max-width: 800px;
text-align: center; text-align: center;
} }
h1, h2 { h1, h2 {
color: #ffffff; color: #ffffff;
} }
p, div { p, div {
color: #e0e0e0; color: #e0e0e0;
} }
a { a {
color: #1e90ff; color: #1e90ff;
text-decoration: none; text-decoration: none;
} }
a:hover { a:hover {
text-decoration: underline; text-decoration: underline;
} }
textarea, input[type="file"], input[type="text"], input[type="url"] { textarea, input[type="file"], input[type="text"], input[type="url"] {
background-color: #2c2c2c; background-color: #2c2c2c;
color: #e0e0e0; color: #e0e0e0;
border: 1px solid #444444; border: 1px solid #444444;
border-radius: 4px; border-radius: 4px;
padding: 10px; padding: 10px;
box-sizing: border-box; box-sizing: border-box;
} }
button[type="button"] { button[type="button"] {
background-color: #007bff; background-color: #007bff;
color: #ffffff; color: #ffffff;
border: none; border: none;
border-radius: 4px; border-radius: 4px;
padding: 10px 20px; padding: 10px 20px;
margin-top: 10px; margin-top: 10px;
cursor: pointer; cursor: pointer;
} }
button[type="button"]:hover { button[type="button"]:hover {
background-color: #0056b3; background-color: #0056b3;
} }
.result { .result {
margin-top: 20px; margin-top: 20px;
color: #ffffff; color: #ffffff;
} }
.file-details, .content-details { .file-details, .content-details {
background: #1e1e1e; background: #1e1e1e;
padding: 15px; padding: 15px;
border-radius: 8px; border-radius: 8px;
border: 1px solid #444444; border: 1px solid #444444;
} }
.file-details h3, .content-details h3 { .file-details h3, .content-details h3 {
color: #ffffff; color: #ffffff;
} }
.file-details p, .content-details p { .file-details p, .content-details p {
color: #e0e0e0; color: #e0e0e0;
} }
</style>
</head> .footer {
<body> background-color: #2c2f33;
<div class="container"> color: #99aab5;
<h1>Text</h1> padding: 10px 0;
<div class="content"> position: fixed;
{% if content %} bottom: 0;
{{ content }} width: 100%;
{% elif url %} text-align: center;
<p>Redirecting to: <a href="{{ url }}" target="_blank">{{ url }}</a></p> font-size: 14px;
{% else %} }
<p>Content not found.</p>
{% endif %} .footer a {
</div> color: #61afef;
{% if created_at %} text-decoration: none;
<div class="details"> }
<p>Created at: {{ created_at }}</p>
</div> .footer a:hover {
{% endif %} text-decoration: underline;
</div> }
</body>
</html> .footer .container {
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}
</style>
</head>
<body>
<div class="container">
<h1>Text</h1>
<div class="content">
{% if content %}
{{ content }}
{% elif url %}
<p>Redirecting to: <a href="{{ url }}" target="_blank">{{ url }}</a></p>
{% else %}
<p>Content not found.</p>
{% endif %}
</div>
{% if created_at %}
<div class="details">
<p>Created at: {{ created_at }}</p>
</div>
{% endif %}
</div>
</body>
<footer class="footer">
<div class="container">
<p class="footer-text">Source code available on:
<a href="https://github.com/realcgcristi/order" target="_blank">GitHub</a> |
<a href="https://git.spitkov.hu/cgcristi/order" target="_blank">Spitkov's Git</a>
</p>
</div>
</footer>
</html>