Put together page template/style

This commit is contained in:
Jeremy Dormitzer 2019-05-28 17:32:47 -04:00
parent 665f9b3030
commit b2016ffded
17 changed files with 90 additions and 4 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
src/**/*.html
src/**/*.css
src/compiled/*
**/compiled/*

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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! Im Jeremy Dormitzer. Im a full-stack software engineer from Boston, MA.

View File

@ -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)

63
src/stylesheet.css.pp Normal file
View File

@ -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;
}

16
src/template.html.p Normal file
View File

@ -0,0 +1,16 @@
<html>
<head>
<meta charset="utf-8">
<title>(or (select 'h1 doc) "Jeremy Dormitzer")</title>
<link rel="stylesheet" type="text/css" href="fonts/century-supra/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
<body>
<div class="main">
(->html doc)
</div>
<footer>
© Jeremy Dormitzer 2019
</footer>
</body>
</html>