{% extends "base.html" %}

{% block content %}
<div class="confirmed">
    <div class="confirmation-card">
        <h2 class="title-org">Link has expired!</h2>
        <p class="info-p">
            The confirmation link you used has expired or is no longer valid.<br>
            Please click the button below to receive a new confirmation link.
        </p>
        <form method="POST">
            {% csrf_token %}
            <button type="submit" class="btn-primary-orn">Resend link</button>
        </form>
    </div>
</div>

<script>
    nav = document.querySelector('nav');
    confirmed = document.querySelector('.confirmed');
    confirmed.style.height = `calc(100vh - ${nav.offsetHeight}px)`;
</script>

{% endblock %}