From 3cfd9eff226a482b1d5f4b7a2edb02a844799b4b Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Thu, 28 Mar 2024 18:22:28 +0100 Subject: [PATCH] Fix footer --- assets/css/main.css | 13 +++++++++++++ onerc.el | 16 ++++++++++------ 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index ed3b60c..ee6e0e1 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -368,6 +368,19 @@ a:hover, border-top: 2px solid var(--color-brown); } +.footer_nav { + display: grid; + grid-template-columns: 1fr 1fr; + list-style: none; + padding: 0; +} + +@media (width < 600px) { + .footer_nav { + grid-template-columns: 1fr; + } +} + /* ------- '.one' classes used by 'one-ox' org backend ------- */ .one-hl { diff --git a/onerc.el b/onerc.el index f6f6ea7..98c95a2 100644 --- a/onerc.el +++ b/onerc.el @@ -108,12 +108,14 @@ (:a.button.nav-main__link (@ :href "/source-code/") "Source code")))))) ,tree-content (:footer.footer - (:p (:i (@ :aria-label "bug") "🪲") " Bugs: " (:a.link (@ :href "https://github.com/Django-LiveView/docs/blob/main/one.org" :target "_blank") "Documentation")) - (:p (:i (@ :aria-label "chat") "💬") " Get help: "(:a.link (@ :href "xmpp://django-liveview@conference.im.andros.dev?join" :target "_blank") "Jabber/XMPP group ")) - (:p (:i (@ :aria-label "chat") "🐘") " Follow me: " (:a.link (@ :href "https://hostux.social/@andros" :target "_blank") "ActivityPub/Fediverse ")) - (:p (:span (@ :aria-hidden "true") "💰 ") " Support the project: " (:a.link (@ :href "https://liberapay.com/androsfenollosa/" :target "_blank") "Libeapay")) - (:p "Created with " (:i (@ :aria-label "love") "❤️") " by " (:a.link (@ :href "https://andros.dev/" :target "_blank") "Andros Fenollosa") " with " (:a.link (@ :href "https://one.tonyaldon.com/" :target "_blank") "one.el")) - (:p "🐍 " ,(format-time-string "%Y")))))))) + (:div.container + (:ul.footer_nav + (:li (:i (@ :aria-label "bug") "🪲") " Bugs: " (:a.link (@ :href "https://github.com/Django-LiveView/docs/blob/main/one.org" :target "_blank") "Documentation")) + (:li (:i (@ :aria-label "chat") "💬") " Get help: "(:a.link (@ :href "xmpp://django-liveview@conference.im.andros.dev?join" :target "_blank") "Jabber/XMPP group ")) + (:li (:i (@ :aria-label "chat") "🐘") " Follow me: " (:a.link (@ :href "https://hostux.social/@andros" :target "_blank") "ActivityPub/Fediverse ")) + (:li (:span (@ :aria-hidden "true") "💰 ") " Support the project: " (:a.link (@ :href "https://liberapay.com/androsfenollosa/" :target "_blank") "Libeapay"))) + (:p "Created with " (:i (@ :aria-label "love") "❤️") " by " (:a.link (@ :href "https://andros.dev/" :target "_blank") "Andros Fenollosa") " with " (:a.link (@ :href "https://one.tonyaldon.com/" :target "_blank") "one.el")) + (:p "🐍 " ,(format-time-string "%Y"))))))))) (defun one-custom-default-page (page-tree pages _global) "Default render function by home page." @@ -180,6 +182,8 @@ (:a.nav-docs__link (@ :href "/docs/views/") "Views")) (:li.nav-docs__item (:a.nav-docs__link (@ :href "/docs/routing/") "Routing")) + (:li.nav-docs__item + (:a.nav-docs__link (@ :href "/docs/forms/") "Forms")) (:li.nav-docs__item (:a.nav-docs__link (@ :href "/docs/history/") "History")) (:li.nav-docs__item