diff options
author | Beat Hagenlocher | 2024-06-30 22:47:37 +0200 |
---|---|---|
committer | Beat Hagenlocher | 2024-06-30 22:47:37 +0200 |
commit | 29a54f1f753ebe55fdffaec3965b0acf4c04ae3b (patch) | |
tree | 4e44cbab24d64ff8628abf4098d0ecbf8455e00f /pollen.rkt | |
parent | a4ba0549ff5a9ad303d89c4fcb86db20e5eb7b2f (diff) |
Add badges, adjust style
Diffstat (limited to 'pollen.rkt')
-rw-r--r-- | pollen.rkt | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -12,14 +12,14 @@ (provide (all-defined-out)) (define (badge topic) - `(li ([class "mr-1.5 mb-2"]) - (div ([class ,"flex items-center rounded-full bg-[@{celadon}]/10 px-3 py-1 text-xs font-medium leading-5 text-[@{celadon}]"]) ,topic))) + `(div ([class "mr-1.5 mb-2"]) + (div ([class ,"flex items-center rounded-full bg-[@{celadon}]/10 px-4 py-2 text-sm font-medium leading-5 text-[@{celadon}]"]) ,topic))) ; (->badges "Haskell, Nix, Racket") (define (->badges topics) (let ([top-list (map (curry string-trim #:left? #t) (string-split topics ","))]) - `(ul ([class "flex flex-wrap justify-center"] [aria-label "Tools/Techniques used"]) + `(div ([class "flex flex-wrap justify-center"] [aria-label "Tools/Techniques used"]) ,(for/splice ([topic top-list]) (badge topic))))) (define (link text url) |