obsolute-paste/templates/paste.html
baalajimaestro 3a9e8390fe
Use pre tag for the paste content and wrap appropriately
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
2022-12-21 21:00:42 +05:30

72 lines
2.5 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<link href='https://fonts.googleapis.com/css?family=Inter' rel='stylesheet'>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/atom-one-dark.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js"></script>
<style>
body {
font-family: 'Inter';
}
pre {
overflow-x: auto;
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', (event) => {
const elem = document.getElementById('pastecontent');
hljs.highlightElement(elem);
});
</script>
<body class="bg-zinc-800">
<div class="flex flex-col items-center space-y-12">
<h2 class="text-3xl font-bold text-gray-300">
Obsolute Paste
</h2>
{% block content %}
<pre
class="
w-10/12
text-gray-100
border border-solid border-emerald-200
rounded
bg-zinc-800
p-2
"
id="pastecontent"
>{{paste_content}}</pre>
{% endblock content %}
</div>
<br/>
<br/>
<br/>
<div class="fixed bottom-4 left-0 w-screen h-12 md:flex md:items-center md:justify-between md:p-6">
<span class="text-sm text-gray-400 sm:text-center">©2022 Maestro Creativescape.
</span>
<ul class="flex flex-wrap items-center mt-3 text-sm text-gray-400 sm:mt-0">
<li>
<a href="https://baalajimaestro.me" class="mr-4 hover:underline md:mr-6 ">Home</a>
</li>
<li>
<a href="https://links.baalajimaestro.me" class="mr-4 hover:underline md:mr-6">Links</a>
</li>
<li>
<a href="https://git.baalajimaestro.me/baalajimaestro/obsolute-paste" class="mr-4 hover:underline md:mr-6">Source Code</a>
</li>
<li>
Powered by <a href="https://actix.rs" class="hover:underline">Actix</a> & <a href="https://obsidian.md" class="mr-4 hover:underline md:mr-6">Obsidian</a>
</li>
</ul>
</div>
</body>
</html>