Add some fonts

This commit is contained in:
Jeremy Dormitzer 2018-04-09 08:41:14 -04:00
parent 22abc6b217
commit 3fb149d151
No known key found for this signature in database
GPG Key ID: 04F17C0F5A32C320
12 changed files with 74 additions and 11 deletions

View File

@ -0,0 +1,61 @@
@font-face {
font-family: 'Input Sans';
font-style: normal;
font-weight: 400;
src: url('/fonts/input-sans/Input-Regular_(InputSans-Regular).ttf');
}
@font-face {
font-family: 'Input Sans';
font-style: italic;
font-weight: 400;
src: url('/fonts/input-sans/Input-Italic_(InputSans-Italic).ttf');
}
@font-face {
font-family: 'Input Sans';
font-style: normal;
font-weight: 700;
src: url('/fonts/input-sans/Input-Bold_(InputSans-Bold).ttf');
}
@font-face {
font-family: 'Input Sans';
font-style: italic;
font-weight: 700;
src: url('/fonts/input-sans/Input-BoldItalic_(InputSans-BoldItalic).ttf');
}
@font-face {
font-family: 'Input Serif';
font-style: normal;
font-weight: 400;
src: url('/fonts/input-serif/Input-Regular_(InputSerif-Regular).ttf');
}
@font-face {
font-family: 'Input Serif';
font-style: italic;
font-weight: 400;
src: url('/fonts/input-serif/Input-Italic_(InputSerif-Italic).ttf');
}
@font-face {
font-family: 'Input Serif';
font-style: normal;
font-weight: 700;
src: url('/fonts/input-serif/Input-Bold_(InputSerif-Bold).ttf');
}
@font-face {
font-family: 'Input Serif';
font-style: italic;
font-weight: 700;
src: url('/fonts/input-serif/Input-BoldItalic_(InputSerif-BoldItalic).ttf');
}

View File

@ -49,6 +49,7 @@
(GET "/:sketch" [sketch] (GET "/:sketch" [sketch]
(let [sketch-item ((keyword sketch) sketches/sketches)] (let [sketch-item ((keyword sketch) sketches/sketches)]
(views/sketch-page (:title sketch-item) sketch))) (views/sketch-page (:title sketch-item) sketch)))
(route/resources "/")
(route/not-found "Not Found")) (route/not-found "Not Found"))
(def app (def app

View File

@ -8,16 +8,16 @@
:large "21px" :large "21px"
:huge "28px"}) :huge "28px"})
(defn sketch-thumbnail-styles (def fonts
"Styles for sketch thumbnails" {:input-sans ["'Input Sans'" "'Helvetica Neue'" "sans-serif"]
[] :input-serif ["'Input Serif'" "'Times New Roman'" "serif"]})
[:h3.sketch-thumbnail-title
{:font-size (:small sizes)
:margin-bottom 0
:text-transform "uppercase"}])
(def stylesheet-css
(css (sketch-thumbnail-styles)))
(defn stylesheet [] (defn stylesheet []
stylesheet-css) (css
[:h1 :h2 :h3 :h4 :h5
{:font-family (:input-serif fonts)}]
[:h3.sketch-thumbnail-title
{:font-size (:small sizes)
:font-weight "normal"
:margin-bottom 0
:text-transform "uppercase"}]))

View File

@ -7,6 +7,7 @@
[& body] [& body]
`(html5 `(html5
[:head [:head
(include-css "/css/fonts.css")
(include-css "stylesheet")] (include-css "stylesheet")]
[:body ~@body])) [:body ~@body]))