{#
Copyright 2022 The Matrix.org Foundation C.I.C.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}

{% extends "base.html" %}

{% block content %}
  {{ navbar.top() }}
  <section class="flex items-center justify-center flex-1">
    <div class="grid grid-cols-1 gap-6 w-96 my-2 mx-8">
      <h1 class="rounded-lg bg-grey-25 dark:bg-grey-450 p-2 flex flex-col font-medium text-lg text-center">
        {{ _("mas.upstream_oauth2.suggest_link.heading") }}
      </h1>

      <form method="POST" class="flex">
        <input type="hidden" name="csrf" value="{{ csrf_token }}" />
        <input type="hidden" name="action" value="link" />

        {{ button.button(text=_("mas.upstream_oauth2.suggest_link.action"), class="flex-1") }}
      </form>

      <div class="flex items-center">
        <hr class="flex-1" />
        <div class="mx-2">{{ _("mas.or_separator") }}</div>
        <hr class="flex-1" />
      </div>

      {{ logout.button(text=_("action.sign_out"), csrf_token=csrf_token, post_logout_action=post_logout_action) }}
    </div>
  </section>
{% endblock content %}
