aboutsummaryrefslogtreecommitdiffhomepage
path: root/pollen.rkt
diff options
context:
space:
mode:
Diffstat (limited to 'pollen.rkt')
-rw-r--r--pollen.rkt10
1 files changed, 10 insertions, 0 deletions
diff --git a/pollen.rkt b/pollen.rkt
index a18e169..5fb2194 100644
--- a/pollen.rkt
+++ b/pollen.rkt
@@ -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))