# Copyright (C) 2023 Adam McKellar
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.


# Homepage with login button and button to proceed as guest.
class Home::IndexPage < AuthLayout
  def content
    div class: "px-4 py-5 my-5 text-center" do
      h1 "Webtrans", class: "display-5 fw-bold"
      div class: "col-lg-6 mx-auto" do
        para "Webservice for transcoding functions.", class: "lead mb-4"
        div class: "d-grid gap-2 d-sm-flex justify-content-sm-center" do
          link "Proceed as Guest", to: Task::ShowCreatePage, class: "btn btn-outline-secondary btn-lg px-4"
          link "Login", to: SignIns::New, class: "btn btn-primary btn-lg px-4 me-sm-3"
        end
      end
    end
  end
end
