1
0
Fork 0

feat: add basic logo, favicon images

definitely should replace these at some point..
This commit is contained in:
Lance Edgar 2024-08-05 08:44:02 -05:00
parent a505ef27fb
commit 70d13ee1e7
6 changed files with 17 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View file

@ -151,9 +151,11 @@
<div class="navbar-brand"> <div class="navbar-brand">
<a class="navbar-item" href="${url('home')}"> <a class="navbar-item" href="${url('home')}">
${base_meta.header_logo()} <div style="display: flex; gap: 0.3rem; align-items: center;">
<div id="global-header-title"> ${base_meta.header_logo()}
${base_meta.global_title()} <div id="global-header-title">
${base_meta.global_title()}
</div>
</div> </div>
</a> </a>
<a role="button" class="navbar-burger" data-target="navbar-menu" aria-label="menu" aria-expanded="false"> <a role="button" class="navbar-burger" data-target="navbar-menu" aria-label="menu" aria-expanded="false">

View file

@ -7,11 +7,15 @@
<%def name="extra_styles()"></%def> <%def name="extra_styles()"></%def>
<%def name="favicon()"> <%def name="favicon()">
## <link rel="icon" type="image/x-icon" href="${config.get('tailbone', 'favicon_url', default=request.static_url('wuttaweb:static/img/favicon.ico'))}" /> <link rel="icon" type="image/x-icon" href="${config.get('wuttaweb.favicon_url', default=request.static_url('wuttaweb:static/img/favicon.ico'))}" />
</%def> </%def>
<%def name="header_logo()"> <%def name="header_logo()">
## ${h.image(config.get('wuttaweb.header_image_url', default=request.static_url('wuttaweb:static/img/logo.png')), "Header Logo", style="height: 49px;")} ${h.image(config.get('wuttaweb.header_logo_url', default=request.static_url('wuttaweb:static/img/favicon.ico')), "Header Logo", style="height: 49px;")}
</%def>
<%def name="full_logo()">
${h.image(config.get('wuttaweb.logo_url', default=request.static_url('wuttaweb:static/img/logo.png')), f"{app.get_title()} logo")}
</%def> </%def>
<%def name="footer()"> <%def name="footer()">

View file

@ -9,11 +9,9 @@
</%def> </%def>
<%def name="page_content()"> <%def name="page_content()">
<div style="height: 100%; display: flex; align-items: center; justify-content: center;"> <div style="height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;">
<div class="logo"> <div>${base_meta.full_logo()}</div>
## ${h.image(image_url, "{} logo".format(capture(base_meta.app_title)))} <h1 class="is-size-1">Welcome to ${app.get_title()}</h1>
<h1 class="is-size-1">Welcome to ${base_meta.app_title()}</h1>
</div>
</div> </div>
</%def> </%def>

View file

@ -1,5 +1,6 @@
## -*- coding: utf-8; -*- ## -*- coding: utf-8; -*-
<%inherit file="/form.mako" /> <%inherit file="/form.mako" />
<%namespace name="base_meta" file="/base_meta.mako" />
<%def name="title()">Login</%def> <%def name="title()">Login</%def>
@ -8,7 +9,8 @@
</%def> </%def>
<%def name="page_content()"> <%def name="page_content()">
<div style="height: 100%; display: flex; align-items: center; justify-content: center;"> <div style="height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;">
<div>${base_meta.full_logo()}</div>
<div class="card"> <div class="card">
<div class="card-content"> <div class="card-content">
${form.render_vue_tag()} ${form.render_vue_tag()}