Commits

Miki Tebeka  committed 39aeb70

More CSS

  • Participants
  • Parent commits e63f1e6

Comments (0)

Files changed (3)

File src/vodo.clj

   (html
     [:head
      (include-css "/static/vodo.css")
-     [:title "VODO - Voice TODO"]]
+     [:title "VODO - SMS TODO"]]
     [:body 
-     [:h1 "VODO - Voice TODO"]
+     [:h1 [:a {:href "/"} [:img {:src "/static/sms.png"}]] "VODO - SMS TODO"]
      content]))
 
 (defn format-time 
   (if (zero? (count memos))
     "No memos for you!"
     (for [memo memos]
-      [:div 
+      [:div {:class "memo"}
        "Time: " (format-time (:time memo)) [:br]
        "Text:" [:br]
-       (:text memo) [:hr]])))
+       (:text memo)])))
 
 (defn memos-page 
   "Show memos page for a given user"
   []
   (page
     (form-to [:post]
-        "Name:  " (text-field :name) [:br]
-        "Phone: " (text-field :phone) [:br]
+        [:table
+         [:tr [:td "Name:" ] [:td (text-field :name)]]
+         [:tr [:td "Phone:"] [:td (text-field :phone)]]]
         (submit-button "Register"))))
 
 (defn login-page []

File static/sms.png

Added
New image

File static/vodo.css

     border: 5px solid blue;
     margin: 20px;
     padding: 10px;
+    font-family: Georgia;
 }
+
+div.memo {
+    border: 1px dashed silver;
+}
+
+h1 > a > img {
+    border: none;
+    padding-right: 5px;
+}
+