Skip to content

Instantly share code, notes, and snippets.

@reset
Last active February 12, 2019 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reset/cc0781ec1cf45dc20f7238a98eaf0030 to your computer and use it in GitHub Desktop.
Save reset/cc0781ec1cf45dc20f7238a98eaf0030 to your computer and use it in GitHub Desktop.
(ns my-app.pages.core
(:require [my-app.components.login-panel :as login-panel]
(defn active []
[:div.container
[:div.row
[:div.col
[login-panel/component]]]])
(ns my-app.components.login-panel)
(defn component []
[:div.container
[:div.d-flex.justify-content-center.h-100
[:div.card
[:div.card-header
[:h3 "Sign In"]]
[:div.card-body
[:form
[:div.input-group.form-group
[:div.input-group-prepend
[:span.input-group-text
[:i.fas.fa-user]]
[:input {:type "text" :class "form-control" :placeholder "username"}]]]
[:div.input-group.form-group
[:div.input-group-prepend
[:span.input-group-text
[:i.fas.fa-key]]
[:input {:type "password" :class "form-control" :placeholder "password"}]]]
[:div.form-group
[:input {:type "submit" :value "Login" :class "btn float-right login-btn"}]]]]
[:card-footer
[:div.d-flex.justify-content-center.links
"Don't have an account?" [:a {:href "#"} "Sign Up"]]
[:div.d-flex.justify-content-center.links
[:a {:href "#"} "Forgot your password?"]]]]]])
(ns my-app.web.core
(:require [my-app.pages.core :as pages]
[reagent.core :as r]))
(defn- start! []
(r/render [pages/active] (.getElementById js/document "app-container")))
(start!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment