feat: initial commit
This commit is contained in:
commit
ae4325a969
28 changed files with 2945 additions and 0 deletions
22
templates/base.j2
Normal file
22
templates/base.j2
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" data-theme="light">
|
||||
<head>
|
||||
{% block head %}
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta name="description" content="the main Adrianux page">
|
||||
<link rel="canonical" href="https://adrianux.net/">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/pico.css') }}" />
|
||||
<title>{% block title %}{% endblock %} - Adrianux.net</title>
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<main class="container">
|
||||
<h1>{{ self.title() }}</h1>
|
||||
<article>{% block content %}{% endblock %}</article>
|
||||
</main>
|
||||
<footer class="container">
|
||||
<p><a href="mailto:ahoemann@proton.me">ahoemann@proton.me</a>
|
||||
</p>Authored by <a href="https://bin.adrianux.net/">Adrian Hoemann</a>.
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
22
templates/bin.j2
Normal file
22
templates/bin.j2
Normal file
|
@ -0,0 +1,22 @@
|
|||
{% extends "base.j2" %}
|
||||
{% block title %}Pastebin Service{% endblock %}
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
{% if paste_url %}
|
||||
<p>Your paste URL: <a href="{{ paste_url }}">{{ paste_url }}</a></p>
|
||||
<form method="post">
|
||||
<textarea name="content" rows="10" cols="50" placeholder="Paste your text here..."></textarea>
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
{% elif paste_content %}
|
||||
<pre><code><script style="display:block" type="text/plain">{{ paste_content|safe }}</script></code></pre>
|
||||
{% else %}
|
||||
<form method="post">
|
||||
<textarea name="content" rows="10" cols="50" placeholder="Paste your text here..."></textarea>
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue