Use Twitter Bootstrap

This commit is contained in:
Nicholas Kariniemi 2013-07-24 22:43:26 +03:00
parent ea0439af6c
commit 247050e96f
10 changed files with 9594 additions and 6 deletions

1109
public/css/bootstrap-responsive.css vendored Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

6167
public/css/bootstrap.css vendored Normal file

File diff suppressed because it is too large Load diff

9
public/css/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

2280
public/js/bootstrap.js vendored Normal file

File diff suppressed because it is too large Load diff

6
public/js/bootstrap.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -7,7 +7,7 @@
[compojure.route :as route] [compojure.route :as route]
[hiccup [hiccup
[page :refer [html5]] [page :refer [html5]]
[page :refer [include-js]]])) [page :refer [include-js include-css]]]))
@ -22,11 +22,19 @@
:body "Long polling?"})))) :body "Long polling?"}))))
(defn index-page [] (defn index-page []
(html5 (html5
[:head [:head
[:title "Hello World"] [:title "Grub"]
(include-js "/js/main.js")] [:meta {:name "viewport" :content "width=device-width, initial-scale=1.0"}]
(include-css "/css/bootstrap.css")
(include-css "/css/bootstrap-responsive.css")]
[:body [:body
[:h3 "Grub"]])) [:div.container
[:div.row-fluid
[:div.span8.offset2
[:h3 "Grub"]]]]
(include-js "http://code.jquery.com/jquery.js")
(include-js "/js/bootstrap.js")
(include-js "/js/main.js")]))
(defroutes routes (defroutes routes
(GET "/ws" [] async-handler) (GET "/ws" [] async-handler)

View file

@ -1,3 +1,3 @@
(ns grub-client.core) (ns grub-client.core)
(js/alert "Hello from ClojureScript!") (.log js/console "ClojureScript running")