From bb925b1e7411fa9069b4b0c426e14812c629399f Mon Sep 17 00:00:00 2001 From: Thel Seraphim Date: Fri, 13 Mar 2015 21:14:23 -0700 Subject: [PATCH] nothing broken but nothing happening either, now with more css --- resources/pronouns.css | 5 +++++ src/pronouns/pages.clj | 4 +++- src/pronouns/web.clj | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 resources/pronouns.css diff --git a/resources/pronouns.css b/resources/pronouns.css new file mode 100644 index 0000000..cd738e0 --- /dev/null +++ b/resources/pronouns.css @@ -0,0 +1,5 @@ +.about { + font: large cursive + border:1px solid #060606 + background-color:#F6CEFC +} diff --git a/src/pronouns/pages.clj b/src/pronouns/pages.clj index 3132dbe..73ba2f4 100644 --- a/src/pronouns/pages.clj +++ b/src/pronouns/pages.clj @@ -72,7 +72,9 @@ [subject object possessive-determiner possessive-pronoun reflexive] (html [:html - [:head ""] + [:head + [:title "Pronoun examples"] + [:link {:rel "stylesheet" :href "/pronouns.css"}]] [:body (examples-block subject object possessive-determiner possessive-pronoun reflexive) (about-block) diff --git a/src/pronouns/web.clj b/src/pronouns/web.clj index ef6e666..2189038 100644 --- a/src/pronouns/web.clj +++ b/src/pronouns/web.clj @@ -28,6 +28,11 @@ :headers {"Content-Type" "text/html"} :body (pages/pronouns (:* params) pronouns-table)}) + (GET "/pronouns.css" {params :params} + {:status 200 + :headers {"Content-Type" "text/css"} + :body (slurp (io/resource "pronouns.css"))}) + (ANY "*" [] (route/not-found (slurp (io/resource "404.html")))))