feat: add basic logo, favicon images
definitely should replace these at some point..
This commit is contained in:
parent
a505ef27fb
commit
70d13ee1e7
BIN
src/wuttaweb/static/img/favicon.ico
Normal file
BIN
src/wuttaweb/static/img/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
BIN
src/wuttaweb/static/img/logo.png
Normal file
BIN
src/wuttaweb/static/img/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
|
@ -151,10 +151,12 @@
|
||||||
|
|
||||||
<div class="navbar-brand">
|
<div class="navbar-brand">
|
||||||
<a class="navbar-item" href="${url('home')}">
|
<a class="navbar-item" href="${url('home')}">
|
||||||
|
<div style="display: flex; gap: 0.3rem; align-items: center;">
|
||||||
${base_meta.header_logo()}
|
${base_meta.header_logo()}
|
||||||
<div id="global-header-title">
|
<div id="global-header-title">
|
||||||
${base_meta.global_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">
|
||||||
<span aria-hidden="true"></span>
|
<span aria-hidden="true"></span>
|
||||||
|
|
|
@ -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()">
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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()}
|
||||||
|
|
Loading…
Reference in a new issue