Browse Source

new header with logo - sitename in a row

pull/2/head
putro 1 year ago
parent
commit
f5644f1cfc
2 changed files with 22 additions and 1 deletions
  1. +10
    -0
      static/css/style.css
  2. +12
    -1
      templates/base.html

+ 10
- 0
static/css/style.css View File

@@ -12,6 +12,16 @@ body {
margin-right: 33%;
}

.sitebanner {
position: relative;
top: 20px;
}

.siteimage {
float: left;
width: 120px;
}

a:link { color: #003399; text-decoration: none; }
a:visited { color: #336699; text-decoration: none; }
a:hover { color: #003399; background: #ff8c19; text-decoration: none; }

+ 12
- 1
templates/base.html View File

@@ -34,8 +34,19 @@

<body id="index" class="home">
<header id="banner" class="body">
<h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1>
<!-- site image -->
{% if SITELOGO %}
<div class= "siteimage">
<a href={{ SITELOGO }}>
<img width="85" height="85" src={{ SITELOGO }}>
</a>
</div>
{% endif %}
<div class = "sitebanner">
<h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1>
</div>
</header><!-- /#banner -->
<br /><br />
<nav id="menu"><ul>
{% for title, link in MENUITEMS %}
<li><a href="{{ link }}">{{ title }}</a></li>

Loading…
Cancel
Save