Skip to contentSkip to conversation

Small header/footer layout changes

PATCH Applied Daniel P. Berrangé 2 participants 8 messages Sep 8, 2021 – Sep 10, 2021

lore
Share & tools
lore
#0 lore raw

cover Small header/footer layout changes

I previously sent a large series to more fully re-design the website, especially the front page

https://lists.gnu.org/archive/html/qemu-devel/2020-10/msg08205.html

Paolo had some feedback on that which I want to take into account but playing with CSS / layout always takes me way too long. I figured it could still be beneficial to take some of the simpler patches in that series.

So essentially this small series is the part of that large series that changes the header and footer. The changes to the front page body content are cut out until I can get them working better.

In a slight change from the previous posting for the "edit page" link at the bottom, I've now used an icon to represent it and moved its position, such that the layout is more visually pleasant.

The slight downside with only taking the header/footer changes is that some of the links I removed from the footer, would have been added in the page body of the front page instead. I think that's probably ok not to have them regardless though, as they are just a single jump away in an obvious place from the navbar header.

Daniel P. Berrangé (6):
Compress the two front page headings into one Simplify copyright and integrate into footer Put a full SFC membership blurb in footer of every page Move wiki link from footer into the header navbar Simplify and restructure the page footer
Add link to "page source" for all pages

 _includes/copyright.html     |   8 -----
 _includes/footer.html        |  33 +++++++-----------
 _includes/nav.html           |   1 +
 _layouts/blog.html           |   1 -
 _layouts/home.html           |   1 -
 _layouts/page.html           |   1 -
 assets/css/style-desktop.css |  21 +-----------
 assets/css/style-mobile.css  |  22 +-----------
 assets/css/style.css         |  63 ++++++++++++++++++++++-------------
 assets/images/edit-page.png  | Bin 0 -> 4997 bytes
 index.html                   |   8 +----
 11 files changed, 56 insertions(+), 103 deletions(-)
 delete mode 100644 _includes/copyright.html
 create mode 100644 assets/images/edit-page.png
Signature · 1 line
2.31.1
#1 lore raw

PATCH 1/6 Compress the two front page headings into one

The current headings are repetative and waste vertical screen real estate which could hold more useful content.

---
 index.html | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
index.html +1 -5
index e52868d..ad7624f 100644
@@ -8,17 +8,13 @@ colorbox: True
 	<div id="header">
 		<div class="container">
 			<h1>QEMU</h1>
-			<span class="tag">the FAST! processor emulator</span>
+			<span class="tag">A generic and open source machine emulator and virtualizer</p>
 		</div>
 	</div>
 	
 <!-- Featured -->
 <div id="featured">
 	<div class="container">
-		<header>
-			<h2>What is QEMU?</h2>
-			<p>QEMU is a generic and open source machine emulator and virtualizer.</p>
-		</header>
 		<div class="row">
 			<section class="4u">
 				<div class="pennant">{% include screenshot.html offset=0 limit=1 %}</div>
Signature · 1 line
2.31.1
#2 lore raw

PATCH 2/6 Simplify copyright and integrate into footer

In reply to Daniel P. Berrangé

The copyright information is at the base of the page so logically part of the page footer structure.

---
 _includes/copyright.html    |  8 --------
 _includes/footer.html       |  3 +++
 _layouts/blog.html          |  1 -
 _layouts/home.html          |  1 -
 _layouts/page.html          |  1 -
 assets/css/style-mobile.css |  2 +-
 assets/css/style.css        | 28 ++++++++++++----------------
 7 files changed, 16 insertions(+), 28 deletions(-)
 delete mode 100644 _includes/copyright.html
_includes/copyright.html deleted +0 -8
deleted file mode 100644
index cdcd98f..0000000
@@ -1,8 +0,0 @@
-<div id="copyright">
-	<div id="copyright-inner">
-	  <div class="container">
-	    This site is made available under the terms of
-	    <a href="{{ relative_root }}/license.html">a number of licenses</a>.
-	  </div>
-	</div>
-</div>
_includes/footer.html +3 -0
index b614795..6e1b247 100644
@@ -27,4 +27,7 @@
 			<li><a href="https://xenproject.org">Xen</a></li>
 		</ul>
 	</div>
+	<div id="licenses">
+		<a href="{{ relative_root }}/license.html">Website licenses</a>
+	</div>
 </div>
_layouts/blog.html +0 -1
index b300636..b7fcdbf 100644
@@ -21,7 +21,6 @@ Released for free under the Creative Commons Attribution 3.0 license (templated.
 	
 	{% include sidebar.html %}
 	{% include footer.html %}
-	{% include copyright.html %}
 
 </body>
 </html>
_layouts/home.html +0 -1
index d94c9b0..f7b6931 100644
@@ -18,7 +18,6 @@ Released for free under the Creative Commons Attribution 3.0 license (templated.
 	{{ content }}
 
 	{% include footer.html %}
-	{% include copyright.html %}
 
 </body>
 </html>
_layouts/page.html +0 -1
index d650054..765d204 100644
@@ -23,7 +23,6 @@ Released for free under the Creative Commons Attribution 3.0 license (templated.
 	</div>
 	
 	{% include footer.html %}
-	{% include copyright.html %}
 
 </body>
 </html>
assets/css/style-mobile.css +1 -1
index 1bae7a2..213a3fb 100644
@@ -242,7 +242,7 @@
 /* Columns                                                                       */
 /*********************************************************************************/
 
-	#main, #footer-inner, #copyright-inner
+	#main, #footer-inner
 	{
 		margin-left: 0%;
 		width: 100%;
assets/css/style.css +12 -16
index bed0bf4..9daa18b 100644
@@ -428,7 +428,7 @@
 /* Columns                                                                       */
 /*********************************************************************************/
 
-	#main, #copyright-inner
+	#main
 	{
 		margin-left: 16.667%;
 		width: 66.667%;
@@ -525,23 +525,19 @@
 		margin: 0
 	}
 
-/*********************************************************************************/
-/* Copyright                                                                     */
-/*********************************************************************************/
-
-	#copyright
-	{
-		clear: left;
-		border-top: 1px solid #aaaaaa;
-		position: relative;
-		color: #aaaaaa;
-		background: #ffffff;
-		padding: 1em 0em;
+	#licenses {
+		padding: 0em;
+		padding-left: 1em;
+		padding-right: 1em;
+		font-size: smaller;
+		color: #401200;
+		background: #fff;
+		margin: 1em;
+		margin-top: 2em;
 	}
 
-	#copyright a
-	{
-		color: inherit;
+	#licenses {
+		float: right;
 	}
 
 /*********************************************************************************/
Signature · 1 line
2.31.1
#3 lore raw

PATCH 3/6 Put a full SFC membership blurb in footer of every page

In reply to Daniel P. Berrangé
---
 _includes/footer.html | 4 +++-
 assets/css/style.css  | 6 +++++-
 index.html            | 2 --
 3 files changed, 8 insertions(+), 4 deletions(-)
_includes/footer.html +3 -1
index 6e1b247..411ff55 100644
@@ -3,7 +3,6 @@
 		<ul class="style">
 			<li><a href="{{ relative_root }}/">Home</a></li>
 			<li><a href="{{ relative_root }}/download">Download</a></li>
-			<li><a href="{{ relative_root }}/conservancy/">Conservancy / Committee</a></li>
 			<li><a href="http://qemu-advent-calendar.org">QEMU advent calendar</a></li>
 		</ul>
 		<ul class="style">
@@ -27,6 +26,9 @@
 			<li><a href="https://xenproject.org">Xen</a></li>
 		</ul>
 	</div>
+	<div id="conservancy">
+		QEMU is a member of <a href="{{ relative_root }}/conservancy/">Software Freedom Conservancy</a>
+	</div>
 	<div id="licenses">
 		<a href="{{ relative_root }}/license.html">Website licenses</a>
 	</div>
assets/css/style.css +5 -1
index 9daa18b..0b4e043 100644
@@ -525,7 +525,7 @@
 		margin: 0
 	}
 
-	#licenses {
+	#licenses, #conservancy {
 		padding: 0em;
 		padding-left: 1em;
 		padding-right: 1em;
@@ -540,6 +540,10 @@
 		float: right;
 	}
 
+	#conservancy {
+		float: left;
+	}
+
 /*********************************************************************************/
 /* Featured                                                                      */
 /*********************************************************************************/
index.html +0 -2
index ad7624f..d72750c 100644
@@ -58,8 +58,6 @@ $('.colorbox').on("click.random-namespace", function() {
 </script>
 
 		</div>
-		<hr>
-		<p>QEMU is a member of <a href="{{ relative_root }}/conservancy/">Software Freedom Conservancy</a>.</p>
 	</div>
 </div>
 
Signature · 1 line
2.31.1
#4 lore raw

PATCH 4/6 Move wiki link from footer into the header navbar

In reply to Daniel P. Berrangé

The wiki is important enough that it should be presented more prominently in the page header navbar, rather than the footer.

---
 _includes/footer.html | 1 -
 _includes/nav.html    | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
_includes/footer.html +0 -1
index 411ff55..6e5bef7 100644
@@ -16,7 +16,6 @@
 			<li><a href="{{ relative_root }}/documentation">Documentation</a></li>
 			<li><a href="https://www.qemu.org/docs/master/">Main docs</a></li>
 			<li><a href="https://wiki.qemu.org/Category:Developer_documentation">Developer docs</a></li>
-			<li><a href="https://wiki.qemu.org/">Wiki</a></li>
 		</ul>
 		<ul class="style">
 			<li><a href="https://planet.virt-tools.org/">virt tools planet</a></li>
_includes/nav.html +1 -0
index c66ee92..73b39b3 100644
@@ -7,6 +7,7 @@
 			</li><li {% if current[1] == 'support' %}class='current'{% endif %}><a href="{{ relative_root }}/support">Support</a>
 			</li><li {% if current[1] == 'contribute' %}class='current'{% endif %}><a href="{{ relative_root }}/contribute">Contribute</a>
 			</li><li {% if current[1] == 'documentation' %}class='current'{% endif %}><a href="{{ relative_root }}/documentation">Docs</a>
+			</li><li><a href="https://wiki.qemu.org">Wiki</a>
 			</li><li {% if current[1] == 'blog' %}class='current'{% endif %}><a href="{{ relative_root }}/blog">Blog</a></li>
 		</ul>
 	</nav>
Signature · 1 line
2.31.1
#5 lore raw

PATCH 5/6 Simplify and restructure the page footer

In reply to Daniel P. Berrangé

The footer is not an effective place to locate frequently needed site navigation links. Some of the links are already present in the top navigation bar, while others are just one jump away on the subsequent page in a fairly obvious place.

This removes all the local site navigation links from the footer and leaves it as a place for external project links, along with the website license and SFC information.

---
 _includes/footer.html        | 22 +++-------------------
 assets/css/style-desktop.css | 21 +--------------------
 assets/css/style-mobile.css  | 22 +---------------------
 assets/css/style.css         | 26 +++++++++++++++++---------
 4 files changed, 22 insertions(+), 69 deletions(-)
_includes/footer.html +3 -19
index 6e5bef7..5adc569 100644
@@ -1,24 +1,8 @@
 <div id="footer">
-	<div id="footer-inner">
+	<div id="external-links">
 		<ul class="style">
-			<li><a href="{{ relative_root }}/">Home</a></li>
-			<li><a href="{{ relative_root }}/download">Download</a></li>
-			<li><a href="http://qemu-advent-calendar.org">QEMU advent calendar</a></li>
-		</ul>
-		<ul class="style">
-			<li><a href="{{ relative_root }}/contribute">Contribute</a></li>
-			<li><a href="{{ relative_root }}/contribute/report-a-bug">Reporting a bug</a></li>
-			<li><a href="https://wiki.qemu.org/Documentation/GettingStartedDevelopers">New contributors</a></li>
-			<li><a href="https://wiki.qemu.org/Contribute/SubmitAPatch">Submitting a patch</a></li>
-			<li><a href="https://wiki.qemu.org/Contribute/FAQ">Contributor FAQ</a></li>
-		</ul>
-		<ul class="style">
-			<li><a href="{{ relative_root }}/documentation">Documentation</a></li>
-			<li><a href="https://www.qemu.org/docs/master/">Main docs</a></li>
-			<li><a href="https://wiki.qemu.org/Category:Developer_documentation">Developer docs</a></li>
-		</ul>
-		<ul class="style">
-			<li><a href="https://planet.virt-tools.org/">virt tools planet</a></li>
+			<li><a href="http://qemu-advent-calendar.org">Advent calendar</a></li>
+			<li><a href="https://planet.virt-tools.org/">Blog planet</a></li>
 			<li><a href="https://www.linux-kvm.org/">KVM</a></li>
 			<li><a href="http://libguestfs.org/">Libguestfs</a></li>
 			<li><a href="https://libvirt.org/">Libvirt</a></li>
assets/css/style-desktop.css +1 -20
index 2beb58d..90a154d 100644
@@ -104,26 +104,7 @@
 
 	#footer
 	{
-		padding: 1em 0em;
-	}
-
-	#footer-inner
-	{
-		width: 95%;
-		display: table;
-		margin: auto;
-	}
-
-	#footer ul
-	{
-		width: 25%;
-		display: table-cell;
-		padding-left: 2em;
-	}
-
-	#footer ul:first-child
-	{
-		padding-left: 0px;
+		clear: both;
 	}
 
 /*********************************************************************************/
assets/css/style-mobile.css +1 -21
index 213a3fb..5c9d11b 100644
@@ -242,7 +242,7 @@
 /* Columns                                                                       */
 /*********************************************************************************/
 
-	#main, #footer-inner
+	#main
 	{
 		margin-left: 0%;
 		width: 100%;
@@ -277,26 +277,6 @@
 		font-size: 1.6em;
 	}
 
-/*********************************************************************************/
-/* Footer                                                                        */
-/*********************************************************************************/
-
-	#footer
-	{
-		padding: 1em;
-	}
-
-	#footer ul
-	{
-		padding: 0.6em 0px;
-		border-top: 1px solid white;
-	}
-
-	#footer ul:first-child
-	{
-		border-top: 0px;
-	}
-
 /*********************************************************************************/
 /* Featured                                                                      */
 /*********************************************************************************/
assets/css/style.css +17 -9
index 0b4e043..37bd333 100644
@@ -504,9 +504,6 @@
 	#footer
 	{
 		position: relative;
-		clear: left;
-		background: #401200;
-		color: #FFF;
 	}
 
 	#footer a
@@ -516,13 +513,24 @@
 
 	#footer ul
 	{
-		vertical-align: top;
+		margin: 0em;
 	}
 
-	#footer ul, #footer ul > li
-	{
-		padding: 0;
-		margin: 0
+	#external-links {
+		padding: 0em;
+		padding-top: 0.3em;
+		padding-bottom: 0.3em;
+		background: #401200;
+		color: #FFF;
+		text-align: center;
+	}
+
+	#external-links li {
+		display: inline;
+	}
+
+	#external-links li a {
+		padding-left: 1em;
 	}
 
 	#licenses, #conservancy {
@@ -533,7 +541,7 @@
 		color: #401200;
 		background: #fff;
 		margin: 1em;
-		margin-top: 2em;
+		margin-top: 1em;
 	}
 
 	#licenses {
Signature · 1 line
2.31.1
#6 lore raw

PATCH 6/6 Add link to "page source" for all pages

In reply to Daniel P. Berrangé

The link takes the user directly to the source markdown file in gitlab. This gives them guidance as to what file should be editted to make changes to the content. The link text is replaced by an icon in normal rendering.

---
 _includes/footer.html       |   3 +++
 assets/css/style.css        |  13 +++++++++++--
 assets/images/edit-page.png | Bin 0 -> 4997 bytes
 3 files changed, 14 insertions(+), 2 deletions(-)
 create mode 100644 assets/images/edit-page.png
_includes/footer.html +3 -0
index 5adc569..1a0b960 100644
@@ -9,6 +9,9 @@
 			<li><a href="https://xenproject.org">Xen</a></li>
 		</ul>
 	</div>
+	<div id="edit-page">
+		<a href="https://gitlab.com/qemu-project/qemu-web/-/blob/master/{{page.path}}">page source</a>
+	</div>
 	<div id="conservancy">
 		QEMU is a member of <a href="{{ relative_root }}/conservancy/">Software Freedom Conservancy</a>
 	</div>
assets/css/style.css +11 -2
index 37bd333..88f7e85 100644
@@ -533,7 +533,7 @@
 		padding-left: 1em;
 	}
 
-	#licenses, #conservancy {
+	#licenses, #conservancy, #edit-page {
 		padding: 0em;
 		padding-left: 1em;
 		padding-right: 1em;
@@ -544,7 +544,7 @@
 		margin-top: 1em;
 	}
 
-	#licenses {
+	#licenses, #edit-page {
 		float: right;
 	}
 
@@ -552,6 +552,15 @@
 		float: left;
 	}
 
+	#edit-page a {
+		overflow: hidden;
+		background: url(../images/edit-page.png);
+		display: inline-block;
+		width: 24px;
+		height: 24px;
+		padding-left: 24px;
+	}
+
 /*********************************************************************************/
 /* Featured                                                                      */
 /*********************************************************************************/
assets/images/edit-page.png new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..63fb4a4b1137a0a0b509dc38d3ecc687c55f6b5f
GIT binary patch
Signature · 1 line
2.31.1
#7 lore raw
In reply to Daniel P. Berrangé
Quoted 19 lines · Daniel P. Berrangé

I previously sent a large series to more fully re-design the website, especially the front page

   https://lists.gnu.org/archive/html/qemu-devel/2020-10/msg08205.html

Paolo had some feedback on that which I want to take into account but playing with CSS / layout always takes me way too long. I figured it could still be beneficial to take some of the simpler patches in that series.

So essentially this small series is the part of that large series that changes the header and footer. The changes to the front page body content are cut out until I can get them working better.

In a slight change from the previous posting for the "edit page" link at the bottom, I've now used an icon to represent it and moved its position, such that the layout is more visually pleasant.

Quoted 6 lines

The slight downside with only taking the header/footer changes is that some of the links I removed from the footer, would have been added in the page body of the front page instead. I think that's probably ok not to have them regardless though, as they are just a single jump away in an obvious place from the navbar header.

Yeah, some of them may be useful for easier access to contribution information and documentation, but it's okay to remove them for now.

I merged this part, thanks!

Paolo