[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-web PATCH v2 10/16] Use two column layout to display screenshots a
From: |
Daniel P . Berrangé |
Subject: |
[qemu-web PATCH v2 10/16] Use two column layout to display screenshots and releases |
Date: |
Tue, 27 Oct 2020 13:20:09 +0000 |
Now that the screenshots are using a carousel, they don't consume the
full width of the page. This enables switching to a two column layout
with information about the latest release placed in one column, and
screenshots in the other. This means release information is no longer
hidden off the bottom of the page.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
assets/css/style-desktop.css | 13 +++++++++
assets/css/style-mobile.css | 10 -------
assets/css/style.css | 56 +++++++++++++++++++++++++++++++++---
index.html | 33 ++++++++++++---------
4 files changed, 85 insertions(+), 27 deletions(-)
diff --git a/assets/css/style-desktop.css b/assets/css/style-desktop.css
index b7e403a..2b25532 100644
--- a/assets/css/style-desktop.css
+++ b/assets/css/style-desktop.css
@@ -133,6 +133,8 @@
#featured
{
padding: 3em 0em 1em 0em;
+ width: 50%;
+ float: left;
}
#featured p
@@ -153,6 +155,17 @@
.\31 1u img { height: 66vw; }
.\31 2u img { height: 72vw; }
+/*********************************************************************************/
+/* Quickstart
*/
+/*********************************************************************************/
+
+ #quickstart
+ {
+ padding-top: 5em;
+ width: 50%;
+ float: right;
+ }
+
/*********************************************************************************/
/* Horizontal menu
*/
/*********************************************************************************/
diff --git a/assets/css/style-mobile.css b/assets/css/style-mobile.css
index d045d84..5dab41c 100644
--- a/assets/css/style-mobile.css
+++ b/assets/css/style-mobile.css
@@ -49,20 +49,10 @@
background-attachment: fixed;
}
- #featured
- {
- padding-top: 250px;
- }
- @media (min-width:500px) {
- body
- {
- background-image:
url(../images/qemu_head_400_faint.png);
- }
#featured
{
padding-top: 50px;
}
- }
section,
article
diff --git a/assets/css/style.css b/assets/css/style.css
index a12a9e3..6308084 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -548,11 +548,17 @@
#featured
{
position: relative;
- background: rgba(0,0,0,0.05);
text-align: center;
margin-bottom: 2em;
}
+ #featured .container
+ {
+ max-width: 500px;
+ margin-let: auto;
+ margin-right: auto;
+ }
+
#featured header
{
border-bottom: 1px solid #333333;
@@ -576,9 +582,6 @@
#featured .screenshots .pennant
{
font-size: 4em;
- width: 40%;
- margin-left: auto;
- margin-right: auto;
}
#featured .screenshots .pennant img
@@ -593,3 +596,48 @@
{
margin-top: 1.5em;
}
+
+
+/*********************************************************************************/
+/* Quickstart
*/
+/*********************************************************************************/
+
+ #quickstart
+ {
+ margin: 0em;
+ padding: 3em 0em 1em 0em;
+ }
+
+ #quickstart .container
+ {
+ max-width: 500px;
+ margin-let: auto;
+ margin-right: auto;
+ }
+
+ #quickstart ul, #quickstart p
+ {
+ margin: 0em;
+ padding-left: 0.5em;
+ }
+
+ #quickstart ul > li
+ {
+ list-style: none;
+ display: block;
+ padding-bottom: 2em;
+ }
+
+ #quickstart ul > li > strong
+ {
+ list-style: none;
+ display: block;
+ font-size: 2em;
+ margin-bottom: 0.2em;
+ }
+
+ #quickstart li span
+ {
+ display: inline-block;
+ padding-left: 1.5em;
+ }
diff --git a/index.html b/index.html
index 4501811..d057a87 100644
--- a/index.html
+++ b/index.html
@@ -12,11 +12,29 @@ bxslider: True
<span class="tag">A generic and open source machine
emulator and virtualizer</p>
</div>
</div>
-
+
+<!-- Main -->
+<div id="quickstart">
+ <div class="container">
+ <ul>
+{% for release in site.data.releases offset: 0 limit: 1 %}
+ <li><strong>Latest release: <a
+
href="https://download.qemu.org/qemu-{{release.branch}}.{{release.patch}}.tar.xz">{{release.branch}}.{{release.patch}}</a></strong>
+ <span>{{release.date}} </span>
+ <span><a
href="https://download.qemu.org/qemu-{{release.branch}}.{{release.patch}}.tar.xz.sig">signature</a></span>
+ <span><a
href="https://wiki.qemu.org/ChangeLog/{{release.branch}}">changes</a></span>
+ <br>
+ <span><a href="{{ relative_root }}/download">Other
releases</a></span>
+ </li>
+{% endfor %}
+ </ul>
+ </div>
+</div>
+
<!-- Featured -->
<div id="featured">
<div class="container">
- <div class="row slider screenshots">
+ <div class="slider screenshots">
{% include screenshot.html %}
</div>
@@ -56,17 +74,6 @@ $(document).ready(function(){
</div>
</div>
-<!-- Main -->
- <div id="releases">
- <header>
- <h2>Latest releases</h2>
- </header>
- <div class="container">
- {% include releases.html %}
- </div>
- </div>
-
-
<script>
$(window).on("scroll", function() {
isScroll = window.scrollY < 120;
--
2.26.2
- [qemu-web PATCH v2 00/16] Re-design the QEMU home page to better present information, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 02/16] gitlab: introduce a CI job to publish the site content, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 04/16] Make page header nav narrower, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 03/16] make all links be relative to the root, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 01/16] Convert files to UNIX line endings, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 06/16] Rework display of screenshots to use a carousel slider, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 05/16] Introduce support for "bxslider" jquery add on, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 07/16] Compress the two front page headings into one, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 08/16] Simplify copyright and integrate into footer, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 09/16] Put a full SFC membership blurb in footer of every page, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 10/16] Use two column layout to display screenshots and releases,
Daniel P . Berrangé <=
- [qemu-web PATCH v2 11/16] Bring contribution links out of the footer into the home page, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 12/16] Add recent blog posts to the front page featured content, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 13/16] Move wiki link from footer into the header navbar, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 14/16] Simplify and restructure the page footer, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 15/16] Add link to "page source" for all pages, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 16/16] Add a CONTRIBUTING.md file as guidance for contributors, Daniel P . Berrangé, 2020/10/27