diff --git a/.gitignore b/.gitignore index 17db863..8bf2c5c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ src/**/*.html src/**/*.css -src/compiled/* \ No newline at end of file +**/compiled/* \ No newline at end of file diff --git a/src/fonts/century-supra/Century Supra T3 Bold Italic.otf b/src/fonts/century-supra/Century Supra T3 Bold Italic.otf new file mode 100644 index 0000000..1090b9f Binary files /dev/null and b/src/fonts/century-supra/Century Supra T3 Bold Italic.otf differ diff --git a/src/fonts/century-supra/Century Supra T3 Bold Italic.ttf b/src/fonts/century-supra/Century Supra T3 Bold Italic.ttf new file mode 100644 index 0000000..8771bc9 Binary files /dev/null and b/src/fonts/century-supra/Century Supra T3 Bold Italic.ttf differ diff --git a/src/fonts/century-supra/Century Supra T3 Bold.otf b/src/fonts/century-supra/Century Supra T3 Bold.otf new file mode 100644 index 0000000..adb6f2f Binary files /dev/null and b/src/fonts/century-supra/Century Supra T3 Bold.otf differ diff --git a/src/fonts/century-supra/Century Supra T3 Bold.ttf b/src/fonts/century-supra/Century Supra T3 Bold.ttf new file mode 100644 index 0000000..74d0457 Binary files /dev/null and b/src/fonts/century-supra/Century Supra T3 Bold.ttf differ diff --git a/src/fonts/century-supra/Century Supra T3 Italic.otf b/src/fonts/century-supra/Century Supra T3 Italic.otf new file mode 100644 index 0000000..694f1ab Binary files /dev/null and b/src/fonts/century-supra/Century Supra T3 Italic.otf differ diff --git a/src/fonts/century-supra/Century Supra T3 Italic.ttf b/src/fonts/century-supra/Century Supra T3 Italic.ttf new file mode 100644 index 0000000..771e982 Binary files /dev/null and b/src/fonts/century-supra/Century Supra T3 Italic.ttf differ diff --git a/src/fonts/century-supra/Century Supra T3 Regular.otf b/src/fonts/century-supra/Century Supra T3 Regular.otf new file mode 100644 index 0000000..673c38a Binary files /dev/null and b/src/fonts/century-supra/Century Supra T3 Regular.otf differ diff --git a/src/fonts/century-supra/Century Supra T3 Regular.ttf b/src/fonts/century-supra/Century Supra T3 Regular.ttf new file mode 100644 index 0000000..002c52a Binary files /dev/null and b/src/fonts/century-supra/Century Supra T3 Regular.ttf differ diff --git a/src/fonts/century-supra/century_supra_t3_bold.woff b/src/fonts/century-supra/century_supra_t3_bold.woff new file mode 100644 index 0000000..5a91692 Binary files /dev/null and b/src/fonts/century-supra/century_supra_t3_bold.woff differ diff --git a/src/fonts/century-supra/century_supra_t3_bold_italic.woff b/src/fonts/century-supra/century_supra_t3_bold_italic.woff new file mode 100644 index 0000000..ecd91b2 Binary files /dev/null and b/src/fonts/century-supra/century_supra_t3_bold_italic.woff differ diff --git a/src/fonts/century-supra/century_supra_t3_italic.woff b/src/fonts/century-supra/century_supra_t3_italic.woff new file mode 100644 index 0000000..1356314 Binary files /dev/null and b/src/fonts/century-supra/century_supra_t3_italic.woff differ diff --git a/src/fonts/century-supra/century_supra_t3_regular.woff b/src/fonts/century-supra/century_supra_t3_regular.woff new file mode 100644 index 0000000..f485ab2 Binary files /dev/null and b/src/fonts/century-supra/century_supra_t3_regular.woff differ diff --git a/src/index.html.pm b/src/index.html.pm index 3433ba2..1f333b7 100644 --- a/src/index.html.pm +++ b/src/index.html.pm @@ -1,6 +1,8 @@ #lang pollen -◊image[#:src "images/jeremy.jpg" #:width "300px"] +◊title{Jeremy Dormitzer} + +◊image[#:class "float-left" #:src "images/jeremy.jpg" #:height "512px"] Hi! I’m Jeremy Dormitzer. I’m a full-stack software engineer from Boston, MA. diff --git a/src/pollen.rkt b/src/pollen.rkt index 9b01f81..c186f4f 100644 --- a/src/pollen.rkt +++ b/src/pollen.rkt @@ -3,14 +3,19 @@ (provide (all-defined-out)) (define (root . elements) - (txexpr 'root - empty + (txexpr 'div + '((class "content")) (decode-elements elements #:txexpr-elements-proc decode-paragraphs))) (define (zip-kws kws kw-args) (map list (map string->symbol (map keyword->string kws)) kw-args)) +(define title + (make-keyword-procedure + (lambda (kws kw-args . elements) + (txexpr 'h1 (zip-kws kws kw-args) elements)))) + (define link (make-keyword-procedure (lambda (kws kw-args . elements) diff --git a/src/stylesheet.css.pp b/src/stylesheet.css.pp new file mode 100644 index 0000000..a1965bc --- /dev/null +++ b/src/stylesheet.css.pp @@ -0,0 +1,63 @@ +#lang pollen + +◊(define navbar-height 60) +◊(define serif-font-stack "'Century Supra', 'Palatino Linotype', Palatino, Palladio, 'URW Palladio L', 'Book Antiqua', Baskerville, 'Bookman Old Style', 'Bitstream Charter', 'Nimbus Roman No9 L', Garamond, 'Apple Garamond', 'ITC Garamond Narrow', 'New Century Schoolbook', 'Century Schoolbook', 'Century Schoolbook L', Georgia, serif") +◊(define body-color "#404040") +◊(define link-color "royalblue") +◊(define link-hover-color "midnightblue") +◊(define link-visited-color "purple") + +body { + height: 100%; + display: flex; + flex-direction: column; + justify-content: space-between; + font-size: 21px; + font-family: ◊|serif-font-stack|; + color: ◊|body-color|; + line-height: 1.5; + margin: 0; + font-feature-settings: 'kern' 1; + text-rendering: optimizeLegibility; +} + +footer { + text-align: center; + padding: 1em 0 1em 0; +} + +h1, h2, h3, h4, h5 { + font-size: 21px; + font-weight: bold; +} + +a { + color: ◊|link-color|; + text-decoration: none; +} + +a:visited { + color: ◊|link-visited-color|; +} + +a:hover { + color: ◊|link-hover-color|; +} + +.main { + display: grid; + grid-template-columns: repeat(12, 1fr); + grid-auto-rows: auto; + grid-gap: 1rem; +} + +.content { + margin-top: ◊|navbar-height|px; + grid-column: 4 / 10; + hyphens: auto; +} + +.float-left { + float: left; + margin-right: 1em; +} diff --git a/src/template.html.p b/src/template.html.p new file mode 100644 index 0000000..f904543 --- /dev/null +++ b/src/template.html.p @@ -0,0 +1,16 @@ + +
+ +