    [hand]
    [legend]]
   [:div#flyingCards]
-  [:section#start
-   [:form#startForm {:action "#"}
-    [:div.input.start
-     [:label "Your name"]
-     [:input {:type "text"}]]
-    [:div.cb.h20]
-    [:div.button.start
-     [:input {:value "Play", :type "submit"}]]]])
+  [login-form])
 
 (reagent/render-component [game] (.getElementById js/document "app"))
-
-(defn client-ws-handler []
-  (go
-    (let [{:keys [ws-channel error]} (<! (ws-ch "ws://localhost:8080/ws"))]
-      (if error
-        (js/alert (pr-str error))
-        (loop []
-          (<! (timeout 1000))
-          (>! ws-channel "Hello world!")
-          (recur))))))
-
-(set! (.-onload js/window)
-      client-ws-handler)

(defn legend []
  [:div.legend])

(defn game []
  [:section#game
   [opponent-field]

            [reagent.core :as reagent :refer [atom]])
  (:require-macros [cljs.core.async.macros :refer [go go-loop]]))

(defn init-ws-connection! []
  (go
    (let [{:keys [ws-channel error]} (<! (ws-ch "ws://localhost:8080/ws"
                                                {:format :json-kw}))]
      (if-not error
        ws-channel
        (js/alert "Error:" (pr-str error))))))

;; (defn client-ws-handler []
;;   (go
;;     (let [{:keys [ws-channel error]} (<! ws)]
;;       (if error
;;         (js/alert (pr-str error))
;;         (loop []
;;           (<! (timeout 1000))
;;           (recur))))))

;; (set! (.-onload js/window)
;;       client-ws-handler)

(defn opponent-field []
  [:div.opponent-field])

(defn field []
  [:div.field])
