Update first view
This commit is contained in:
parent
ebfb0c6c87
commit
65e09d2335
7 changed files with 28 additions and 16 deletions
BIN
public/fv.jpg
BIN
public/fv.jpg
Binary file not shown.
Before ![]() (image error) Size: 89 KiB After ![]() (image error) Size: 114 KiB ![]() ![]() |
11
src/components/footer.lisp
Normal file
11
src/components/footer.lisp
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
(defpackage #:hp/components/footer
|
||||||
|
(:use #:cl
|
||||||
|
#:hsx)
|
||||||
|
(:export #:page-footer))
|
||||||
|
(in-package #:hp/components/footer)
|
||||||
|
|
||||||
|
(defcomp page-footer ()
|
||||||
|
(hsx
|
||||||
|
(footer :class "fixed bottom-0 w-full"
|
||||||
|
(div :class "container py-6 flex justify-end"
|
||||||
|
(p "© 2025 skyizwhite")))))
|
|
@ -8,7 +8,7 @@
|
||||||
(let ((links '(("Home" "/")
|
(let ((links '(("Home" "/")
|
||||||
("About" "/about")
|
("About" "/about")
|
||||||
("Work" "/work")
|
("Work" "/work")
|
||||||
("Blog" "/blog")
|
("Article" "/article")
|
||||||
("Contact" "/contact"))))
|
("Contact" "/contact"))))
|
||||||
(hsx
|
(hsx
|
||||||
(header :class "fixed top-0 w-full"
|
(header :class "fixed top-0 w-full"
|
||||||
|
@ -22,5 +22,5 @@
|
||||||
(loop
|
(loop
|
||||||
:for (content href) :in links :collect
|
:for (content href) :in links :collect
|
||||||
(li :class "flex items-center"
|
(li :class "flex items-center"
|
||||||
(a :href href :class "text-xl font-bold pl-6 hover:text-orange-600"
|
(a :href href :class "text-lg hover:text-orange-600"
|
||||||
content)))))))))
|
content)))))))))
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
(in-package #:hp/env)
|
(in-package #:hp/env)
|
||||||
|
|
||||||
(defmacro defenv (name env &key default parser)
|
(defmacro defenv (name env &key default parser)
|
||||||
(let ((env-val (gensym "val")))
|
(let ((env-val (gensym "env-val")))
|
||||||
`(defparameter ,name
|
`(defparameter ,name
|
||||||
(let ((,env-val (uiop:getenv ,env)))
|
(let ((,env-val (uiop:getenv ,env)))
|
||||||
(if ,env-val
|
(if ,env-val
|
||||||
|
|
|
@ -7,8 +7,7 @@
|
||||||
(:import-from #:hsx/element
|
(:import-from #:hsx/element
|
||||||
#:element)
|
#:element)
|
||||||
(:local-nicknames (#:env #:hp/env))
|
(:local-nicknames (#:env #:hp/env))
|
||||||
(:import-from #:hp/components/header
|
(:local-nicknames (#:cmp #:hp/components/*)))
|
||||||
#:page-header))
|
|
||||||
(in-package #:hp/renderer)
|
(in-package #:hp/renderer)
|
||||||
|
|
||||||
(defun bust-cache (url)
|
(defun bust-cache (url)
|
||||||
|
@ -43,9 +42,10 @@
|
||||||
:hx-ext "head-support, response-targets"
|
:hx-ext "head-support, response-targets"
|
||||||
:hx-boost "true" :hx-target-404 "body" :hx-target-5* "body"
|
:hx-boost "true" :hx-target-404 "body" :hx-target-5* "body"
|
||||||
:class "h-[100svh] flex flex-col"
|
:class "h-[100svh] flex flex-col"
|
||||||
(page-header)
|
(cmp:page-header)
|
||||||
(main :class "flex-1 h-full"
|
(main :class "flex-1 h-full"
|
||||||
children)))))
|
children)
|
||||||
|
(cmp:page-footer)))))
|
||||||
|
|
||||||
(defmethod jg:process-response ((app jg:app) result)
|
(defmethod jg:process-response ((app jg:app) result)
|
||||||
(jg:set-response-header :content-type "text/html; charset=utf-8")
|
(jg:set-response-header :content-type "text/html; charset=utf-8")
|
||||||
|
|
|
@ -6,14 +6,15 @@
|
||||||
|
|
||||||
(defcomp page ()
|
(defcomp page ()
|
||||||
(hsx
|
(hsx
|
||||||
(section :class "h-[100svh] bg-[url('/fv.jpg')] bg-cover bg-center flex items-end pb-12"
|
(section
|
||||||
(div :class "container flex justify-between items-end"
|
; first view
|
||||||
(h1 :class "flex flex-col text-6xl font-bold italic leading-normal"
|
(div :class "h-[100svh] bg-[url('/fv.jpg')] bg-cover bg-center flex"
|
||||||
(span :class "block"
|
(div :class "container flex items-end justify-between"
|
||||||
"Bridging Minds,")
|
(h1 :class "flex flex-col text-6xl font-bold italic leading-normal pb-10"
|
||||||
(span :class "block"
|
(span :class "block"
|
||||||
"Building Futures."))
|
"Beyond Differences,")
|
||||||
(p "© 2025 skyizwhite")))))
|
(span :class "block"
|
||||||
|
"Shaping Tomorrow")))))))
|
||||||
|
|
||||||
(defun handle-get (params)
|
(defun handle-get (params)
|
||||||
(declare (ignore params))
|
(declare (ignore params))
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
(defcomp page ()
|
(defcomp page ()
|
||||||
(hsx
|
(hsx
|
||||||
(section :class "container flex flex-col justify-center items-center h-full gap-4"
|
(section :class "container flex flex-col justify-center items-center h-full gap-10"
|
||||||
(h1 :class "text-2xl text-red-600"
|
(h1 :class "text-2xl text-red-600"
|
||||||
(getf *metadata* :title))
|
(getf *metadata* :title))
|
||||||
(p (getf *metadata* :description))
|
(p (getf *metadata* :description))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue