aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/genpass/core.cljs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/genpass/core.cljs b/src/genpass/core.cljs
index c65714f..186eaeb 100644
--- a/src/genpass/core.cljs
+++ b/src/genpass/core.cljs
@@ -5,16 +5,22 @@
(def password (r/atom (genpwd)))
-(defn home-page []
+(defn main-section []
[:div.columns>div.column
[:div.field>div.control>input.input.is-primary
{:type "text"
:value @password}]
[:div.field>div.control>input.button.is-primary
{:value "Generate"
- :type "button"
+ :type "button"
:on-click #(reset! password (genpwd))}]])
+(defn home-page []
+ [:div
+ [:section.section>div.container
+ (main-section)]
+ [:footer.footer>div.content.has-text-centered>p "Link"]])
+
(defn mount-root []
(r/render [home-page] (.getElementById js/document "app")))