diff options
Diffstat (limited to 'pollen.rkt')
-rw-r--r-- | pollen.rkt | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -22,3 +22,13 @@ `(ul ([class "flex flex-wrap justify-center"] [aria-label "Tools/Techniques used"]) ,(for/splice ([topic top-list]) (badge topic))))) +(define (link text url) + `(a ([class ,"text-[@{jordy}] hover:underline decoration-2 underline-offset-2 decoration-[@{jordy}] hover:text-[@{jordy}]"] [rel "noreferrer noopener"] [target "_blank"] [href ,url]) + ,text)) + +(define (id-ify text) + (string-replace (string-downcase text) " " "-")) + +(define (heading text) + `(h1 ([id ,(id-ify text)] [class ,"text-3xl font-fira-code text-[@{jordy}] tracking-tighter leading-snug"]) + ,text)) |