From e330f45adcc8539d0f35a7e6c942b77aaa89f6c9 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Wed, 5 May 2021 12:53:24 +0530 Subject: [PATCH] style: fixed the footer --- community/install.py | 13 +++++++++ community/public/css/style.less | 20 +++++++++++++ community/public/images/fossunited-logo.svg | 29 +++++++++++++++++++ .../includes/footer/footer_info.html | 14 +++++++++ .../footer/footer_logo_extension.html | 12 ++++++++ 5 files changed, 88 insertions(+) create mode 100644 community/public/images/fossunited-logo.svg create mode 100644 community/templates/includes/footer/footer_info.html create mode 100644 community/templates/includes/footer/footer_logo_extension.html diff --git a/community/install.py b/community/install.py index ad627c67..6593b3ea 100644 --- a/community/install.py +++ b/community/install.py @@ -6,6 +6,7 @@ import frappe def after_install(): set_app_name() disable_signup() + add_footer_items() def set_app_name(): app_name = os.getenv("FRAPPE_APP_NAME") @@ -14,3 +15,15 @@ def set_app_name(): def disable_signup(): frappe.db.set_value("Website Settings", None, "disable_signup", 1) + +def add_footer_items(): + items = [ + {"label": "About", "url": "/about"}, + {"label": "Blog", "url": "/blog"}, + {"label": "Github", "url": "https://github.com/fossunited/community"} + ] + doc = frappe.get_doc("Website Settings", None) + doc.update({ + "footer_items": items + }) + doc.save() diff --git a/community/public/css/style.less b/community/public/css/style.less index 2676fb0a..ffafb8c3 100644 --- a/community/public/css/style.less +++ b/community/public/css/style.less @@ -102,3 +102,23 @@ section.lightgray { width: 40%; display: inline-block; } + +.footer-grouped-links { + display: none; +} + +.footer-info { + border-top: 0px; + margin-top: 0px; + + .footer-col-right { + padding-top: 1.8rem; + } +} + +.web-footer { + border-top: 1px solid #E2E6E9; + padding: 0px; + padding: 2rem 0px; + margin-top: 2rem; +} diff --git a/community/public/images/fossunited-logo.svg b/community/public/images/fossunited-logo.svg new file mode 100644 index 00000000..d5e8198d --- /dev/null +++ b/community/public/images/fossunited-logo.svg @@ -0,0 +1,29 @@ + + + + Group 2 + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/community/templates/includes/footer/footer_info.html b/community/templates/includes/footer/footer_info.html new file mode 100644 index 00000000..26b1cc8a --- /dev/null +++ b/community/templates/includes/footer/footer_info.html @@ -0,0 +1,14 @@ + + diff --git a/community/templates/includes/footer/footer_logo_extension.html b/community/templates/includes/footer/footer_logo_extension.html new file mode 100644 index 00000000..073ef7ec --- /dev/null +++ b/community/templates/includes/footer/footer_logo_extension.html @@ -0,0 +1,12 @@ +