[Git][reproducible-builds/reproducible-website][master] 2 commits: Drop unnecessary link to "home" on horizontal navigation buttons.

Chris Lamb (@lamby) gitlab at salsa.debian.org
Fri Nov 17 13:30:42 UTC 2023



Chris Lamb pushed to branch master at Reproducible Builds / reproducible-website


Commits:
25cd328b by Chris Lamb at 2023-11-17T13:27:12+00:00
Drop unnecessary link to "home" on horizontal navigation buttons.

- - - - -
2f50ba8a by Chris Lamb at 2023-11-17T13:30:19+00:00
Experiment with "hero" style homepage.

- - - - -


3 changed files:

- _includes/nav_buttons.html
- assets/styles/custom.scss
- index.md


Changes:

=====================================
_includes/nav_buttons.html
=====================================
@@ -1,4 +1,4 @@
 {% assign sorted_pages = site.pages | sort:"order" %}
 <p class="text-center">
-{% for page in sorted_pages %}{% if page.title and page.order > 0 %}<a class="btn btn-outline-primary m-2" href="{{ page.url | relative_url }}">{{ page.title }}</a>{% endif %}{% endfor %}
+{% for page in sorted_pages %}{% if page.title and page.order > 0 and page.url != "/" %}<a class="btn btn-outline-primary m-2" href="{{ page.url | relative_url }}">{{ page.title }}</a>{% endif %}{% endfor %}
 </p>


=====================================
assets/styles/custom.scss
=====================================
@@ -114,3 +114,29 @@ main {
     }
   }
 }
+
+.hero {
+  background-color: #1e5b96;
+  left: 50%;
+  margin-left: -50vw;
+  margin-right: -50vw;
+  margin-top: -3rem;
+  max-width: 100vw;
+  position: relative;
+  right: 50%;
+  width: 100vw;
+
+  padding-top: 8rem;
+  @media (min-width: 800px) {
+    padding-top: 19rem;
+    padding-bottom: 12rem !important;
+  }
+
+  .lead {
+    color: #ffffffde;
+
+    a {
+      color: inherit;
+    }
+  }
+}


=====================================
index.md
=====================================
@@ -6,20 +6,24 @@ order: 10
 permalink: /
 ---
 
-<div class="text-center mt-md-5 mb-4">
-    <a href="{{ "/" | relative_url }}">
-        <img class="img-fluid" src="{{ "/images/logos/rb.svg" | relative_url }}" alt="Reproducible Builds" style="height: 150px;" />
-    </a>
-
-    <p class="lead mt-3 mt-md-5 mx-md-5 px-md-5">
-        <strong>Reproducible builds</strong> are a set of software development
-        practices that create an independently-verifiable path from source
-        to binary code.
-
-        <small class="d-none d-sm-inline">
-            (<a href="{{ "/docs/definition/" | relative_url }}">more</a>)
-        </small>
-    </p>
+<div class="hero mb-4">
+    <div class="container text-center">
+        <div class="col-sm-8 offset-sm-2">
+            <a href="{{ "/" | relative_url }}">
+                <img class="mb-4 img-fluid" src="{{ "/assets/images/logo-text-white.png" | relative_url }}" alt="Reproducible Builds" />
+            </a>
+
+            <p class="lead mt-5 pt-5 pb-5">
+                <strong>Reproducible builds</strong> are a set of software development
+                practices that create an independently-verifiable path from source
+                to binary code.
+
+                <small class="d-none d-sm-inline">
+                    (<a href="{{ "/docs/definition/" | relative_url }}">more</a>)
+                </small>
+            </p>
+        </div>
+    </div>
 </div>
 
 {% include nav_buttons.html %}



View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/compare/d6eb16511b50bd3d873bebeef3d2e9bc1a88c928...2f50ba8a86cc54aa200ba383bb6bce226dddffd5

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/compare/d6eb16511b50bd3d873bebeef3d2e9bc1a88c928...2f50ba8a86cc54aa200ba383bb6bce226dddffd5
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20231117/63c68d8f/attachment.htm>


More information about the rb-commits mailing list