63 lines
2.2 KiB
HTML
63 lines
2.2 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Contact - {{ person_id }} - {{ person.name }}{% endblock %}
|
|
{% block content %}
|
|
<h1 id="title"
|
|
class="inline-block px-4 pb-0 mx-auto mb-0 text-center text-6xl sm:text-8xl font-thin text-transparent bg-clip-text bg-gradient-to-r from-terminal-600 via-terminal-500 to-terminal-900 ring-red-700 text-shadow-xl text-shadow-zinc-950 ring-5 leading-none">
|
|
HTMX PATTERNS - BOOSTED
|
|
</h1>
|
|
|
|
<p class='text-3xl px-2 mt-0 mb-16 max-w-xl text-center prose-xl text-terminal-500 font-extralight'>
|
|
Contact - {{ person_id }}
|
|
</p>
|
|
|
|
{% if person is not none %}
|
|
<p
|
|
class='max-w-xl container text-xl font-light px-2 mt-0 mb-4 py-2 text-center text-terminal-500 bg-terminal-950 prose-xl ring-1 ring-terminal-500 rounded-xl shadow-lg shadow-terminal-300/20'>
|
|
<span class='font-normal'>{{ person.name.upper() }}</span> -
|
|
{{ person.phone_number }}
|
|
</p>
|
|
{% else %}
|
|
<p
|
|
class='max-w-xl container text-xl font-light px-2 mt-0 mb-4 py-2 text-center text-terminal-500 bg-terminal-950 prose-xl ring-1 ring-terminal-500 rounded-xl shadow-lg shadow-terminal-300/20'>
|
|
Person not found
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% macro link(id, text, boosted=false) -%}
|
|
<a
|
|
class="
|
|
{% if id is none %}
|
|
pointer-events-none bg-terminal-950 text-terminal-900 ring-terminal-900
|
|
{% else %}
|
|
bg-terminal-950 hover:bg-terminal-900 hover:text-terminal-400 text-terminal-500 shadow-lg shadow-terminal-300/20 hover:shadow-terminal-300/30 ring-terminal-300
|
|
{% endif %}
|
|
cursor-pointer block text-center font-bold py-2 px-4 rounded w-full ring-1
|
|
"
|
|
{% if id is not none %}
|
|
href="{{ url_for('boosted', id=id) }}"
|
|
{% endif %}
|
|
{% if boosted %}
|
|
hx-boost="true"
|
|
{% endif %}>
|
|
{{ text }}
|
|
</a>
|
|
{%- endmacro %}
|
|
|
|
<h2 class='text-3xl font-light mt-0 max-w-xl text-center prose-xl mt-8 text-terminal-500'>
|
|
Boosted Links
|
|
</h2>
|
|
|
|
<div class='flex flex-row gap-4'>
|
|
{{ link(prev_id, 'Previous', boosted=True) }}
|
|
{{ link(next_id, 'Next', boosted=True) }}
|
|
</div>
|
|
|
|
<h2 class='text-3xl font-light mt-0 max-w-xl text-center prose-xl mt-8 text-terminal-500'>
|
|
Normal Links
|
|
</h2>
|
|
|
|
<div class='flex flex-row gap-4'>
|
|
{{ link(prev_id, 'Previous', boosted=False) }}
|
|
{{ link(next_id, 'Next', boosted=False) }}
|
|
</div>
|
|
{% endblock %}
|