Improve the template
Add syntax highlighting, add a proper footer Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
bf76580950
commit
527e5a5fe1
2 changed files with 59 additions and 9 deletions
|
@ -32,7 +32,7 @@ async fn main() -> std::io::Result<()> {
|
||||||
.app_data(Data::clone(&data))
|
.app_data(Data::clone(&data))
|
||||||
.service(paste_render)
|
.service(paste_render)
|
||||||
})
|
})
|
||||||
.bind(("127.0.0.1", 8080))?
|
.bind(("0.0.0.0", 8080))?
|
||||||
.run()
|
.run()
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,67 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<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">
|
||||||
<script src="https://cdn.tailwindcss.com"></script>
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Inter' rel='stylesheet'>
|
||||||
|
<link rel="stylesheet"
|
||||||
|
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/default.min.css">
|
||||||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js"></script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
font-family: 'Inter';
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
document.addEventListener('DOMContentLoaded', (event) => {
|
||||||
|
const elem = document.getElementById('pastecontent');
|
||||||
|
hljs.highlightElement(elem);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<body>
|
<body>
|
||||||
<h2 class="text-3xl font-bold">
|
<div class="flex flex-col items-center space-y-12">
|
||||||
Obsolute Paste - baalajimaestro
|
<h2 class="text-3xl font-bold">
|
||||||
</h2>
|
Obsolute Paste - baalajimaestro
|
||||||
|
</h2>
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<textarea readonly>
|
<p
|
||||||
{{paste_content}}
|
class="
|
||||||
</textarea>
|
resize-none
|
||||||
|
form-control
|
||||||
|
block
|
||||||
|
w-10/12
|
||||||
|
text-base
|
||||||
|
font-normal
|
||||||
|
text-gray-700
|
||||||
|
border border-solid border-gray-300
|
||||||
|
rounded
|
||||||
|
transition
|
||||||
|
ease-in-out
|
||||||
|
m-0
|
||||||
|
"
|
||||||
|
id="pastecontent"
|
||||||
|
>{{paste_content}}</p>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
</div>
|
||||||
|
<div class="fixed bottom-0 left-0 w-screen h-12 md:flex md:items-center md:justify-between md:p-6">
|
||||||
|
<span class="text-sm text-gray-500 sm:text-center dark:text-gray-400">©2022 Maestro Creativescape.
|
||||||
|
</span>
|
||||||
|
<ul class="flex flex-wrap items-center mt-3 text-sm text-gray-500 dark: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://links.baalajimaestro.me" 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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue