rlm@75: (ns laserkard.faq rlm@75: (:use (compojure.http request servlet session routes) rlm@75: (compojure.server jetty) rlm@75: (compojure control) rlm@75: (clojure.contrib prxml str-utils duck-streams seq-utils) rlm@75: (laserkard common))) rlm@75: rlm@75: (def faqs rlm@75: [ rlm@75: rlm@75: ["Will I have enough cards?"] rlm@75: ["We like to think of these cards as sniper bullets - throw your cheap paper business cards at everyone like shotgun rounds, but use your Laserkard when it really matters. Save these cards for the big boys - Laserkards will rock their world."] rlm@75: rlm@75: ["How thick are the cards? Will they fit in my wallet and Rolodex?"] rlm@75: ["Laserkards are 16 thousandths of an inch - a human hair thicker than a normal paper business card and about half as thick as a plastic credit card. They fit very well into your wallet and even better in your hand. They'll fit in a Rolodex, but they don't belong in one " [:a {:href "http://www.youtube.com/watch?v=4YBxeDN4tbk#t=1m23s"} ":)"]] rlm@75: rlm@75: ["How are they made?"] rlm@75: ["We start with aluminum blanks punched from a sheet of anodized aluminum. Then, we use a high power YAG laser to etch your custom text and designs. The resulting card looks as if your information is printed in silver on the colored aluminum."] rlm@75: rlm@75: ["Do they stay clean?"] rlm@75: ["Yes. They're waterproof and very scratch resistant. They last much longer than a paper business card."] rlm@75: rlm@75: ["Are the edges sharp?"] rlm@75: ["No. The edges are rounded and will not cut into skin."] rlm@75: rlm@75: ["How can I get my logo on the card? Can I get my own design onto the card?"] rlm@75: ["For custom designs, " [:a {:href "mailto:sales@laserkard.com"} "contact"] "us. We can work with you to have your cards in the mail to you within two weeks of your first email."] rlm@75: rlm@75: ["Who are the designers?"] rlm@75: ["Three MIT graduates are the heart, brains and soul behind Laserkard. We think you'll appreciate our product engineering and business backgrounds when you give out your own Laserkards."] rlm@75: rlm@75: rlm@75: ]) rlm@75: rlm@75: rlm@75: (def head rlm@75: [:head rlm@75: [:meta {:http-equiv "Content-Type" :content "text/html" :charset "UTF-8"}] rlm@78: [:link {:rel "stylesheet" :href "css/main.css" :type "text/css" :media "screen"}] rlm@78: [:link {:rel "stylesheet" :href "css/old_sexy.css" :type "text/css" :media "screen"}] rlm@78: [:link {:rel "stylesheet" :href "css/faq.css" :type "text/css" :media "screen"}] rlm@75: [:title "Laserkard | FAQ"] rlm@75: rlm@75: ]) rlm@75: rlm@75: rlm@75: (def filler rlm@75: [:div {:id "garbage"} " "]) rlm@75: rlm@75: rlm@75: (defn faq-wrap [vect] rlm@75: (apply vector (cons :div (map (fn [[index content]] rlm@75: (if rlm@75: (odd? index) rlm@75: (eval `(vector :p {:class "answer"} ~@content)) rlm@75: (eval `(vector :p {:class "question"} ~@content)))) rlm@75: (indexed vect))))) rlm@75: rlm@75: (defn faq [] rlm@75: (header) rlm@75: (re-gsub rlm@75: #">" ">\n" rlm@75: rlm@75: (pxml rlm@75: [:html rlm@75: head rlm@75: [:body {:id "faq"} rlm@75: [:raw! (slurp "/home/r/Desktop/web/laserkard/top_menu.include")] rlm@75: [:h1 "Frequently Asked Questions"] rlm@75: [:div {:class "whole"} rlm@75: [:div {:id "pokedex"} rlm@75: (faq-wrap faqs) rlm@75: ]] rlm@75: filler rlm@75: ]]))) rlm@75: rlm@75: rlm@75: rlm@75: