(ns auto-ap.views.pages.error)

(defn error-page []
  [:div.container
   [:section.is-fullheight.hero
    [:div.hero-body
     [:div.container
      [:div.column.is-8.is-offset-2.has-text-centered
       
       [:div.box.slideInFromBelow
        [:img {:src "/img/logo.png"}]
        [:div.notification.is-danger.is-light "An unexpected error has occured. "
         [:div [:a {:on-click (fn []
                               (.removeItem js/localStorage "last-client-id" nil)
                               (.removeItem js/localStorage "last-selected-clients" nil)
                               (.reload (.-location js/document ) true)) } "Click here"]
          " to try again."]
         [:div "If the error continues, please try " [:a {:href "/login"} "logging in"] " again."]]]
       [:p.has-text-gray
        "Copyright Integreat 2020"]]]]]]
  )
