Update hsx to v0.4.0
This commit is contained in:
parent
ba67f59737
commit
2e325fbc06
7 changed files with 27 additions and 24 deletions
src/components
|
@ -1,10 +1,10 @@
|
|||
(defpackage #:hp/components/header
|
||||
(:use #:cl
|
||||
#:hsx)
|
||||
(:export #:page-header))
|
||||
(:export #:~header))
|
||||
(in-package #:hp/components/header)
|
||||
|
||||
(defcomp page-header ()
|
||||
(defcomp ~header ()
|
||||
(let ((links '(("Home" "/")
|
||||
("About" "/about")
|
||||
("Work" "/work")
|
||||
|
@ -20,7 +20,8 @@
|
|||
:class "w-52 h-auto")))
|
||||
(ul :class "flex flex-col gap-4"
|
||||
(loop
|
||||
:for (content href) :in links :collect
|
||||
(li :class "flex items-center"
|
||||
(a :href href :class "text-lg hover:text-orange-600"
|
||||
content)))))))))
|
||||
:for (title href) :in links :collect
|
||||
(hsx
|
||||
(li :class "flex items-center"
|
||||
(a :href href :class "text-lg hover:text-orange-600"
|
||||
title))))))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue