Skip to content

Commit fa57e04

Browse files
committed
move showcase to footer
1 parent 73712e7 commit fa57e04

File tree

3 files changed

+141
-40
lines changed

3 files changed

+141
-40
lines changed

docs/assets/stylesheets/extra.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,34 @@ body {
154154
.md-source__facts {
155155
opacity: .8;
156156
}
157+
158+
.showcase {
159+
width: 100%;
160+
text-align: center;
161+
padding: 1rem;
162+
}
163+
164+
.showcase-link {
165+
display: inline-block;
166+
margin: 10px;
167+
}
168+
169+
.showcase-link img {
170+
width: 120px;
171+
transition: all .3s;
172+
box-shadow: 0 5px 15px rgba(0,0,0, 0.3);
173+
}
174+
175+
.showcase-link img:hover {
176+
box-shadow: 0 5px 25px rgba(0,0,0, 0.7);
177+
}
178+
179+
@media screen and (min-width: 60em) {
180+
.showcase {
181+
padding: 2rem;
182+
}
183+
184+
.showcase-link img {
185+
width: 200px;
186+
}
187+
}

theme/overrides/home.html

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -99,27 +99,6 @@
9999
color: var(--md-default-fg-color);
100100
}
101101

102-
.showcase {
103-
width: 100%;
104-
text-align: center;
105-
padding: 1rem;
106-
}
107-
108-
.showcase-link {
109-
display: inline-block;
110-
margin: 10px;
111-
}
112-
113-
.showcase-link img {
114-
width: 120px;
115-
transition: all .3s;
116-
box-shadow: 0 5px 15px rgba(0,0,0, 0.3);
117-
}
118-
119-
.showcase-link img:hover {
120-
box-shadow: 0 5px 25px rgba(0,0,0, 0.7);
121-
}
122-
123102
/* Hide table of contents */
124103
@media screen and (min-width: 60em) {
125104
.md-sidebar--secondary {
@@ -156,14 +135,6 @@
156135
.tx-hero .md-button {
157136
padding: .625em 2em;
158137
}
159-
160-
.showcase {
161-
padding: 2rem;
162-
}
163-
164-
.showcase-link img {
165-
width: 200px;
166-
}
167138
}
168139

169140
/* Hide navigation */
@@ -225,16 +196,5 @@ <h2>{{ config.site_description }}</h2>
225196
<!-- Application footer -->
226197
{% block footer %}
227198

228-
<div class="md-footer" style="background: #1e2129;">
229-
<div class="md-footer__inner md-grid">
230-
<section class="showcase">
231-
<a class="showcase-link glightbox" href="./assets/images/mountain.png" data-type="image" data-width="100%" data-height="auto" data-desc-position="bottom" data-gallery="showcase"><img alt="Image title" src="./assets/images/mountain.png"></a>
232-
<a class="showcase-link glightbox" href="./assets/images/sequence.png" data-type="image" data-width="100%" data-height="auto" data-desc-position="bottom" data-gallery="showcase"><img alt="Image title" src="./assets/images/sequence.png"></a>
233-
<a class="showcase-link glightbox" href="./assets/images/silk.png" data-type="image" data-width="100%" data-height="auto" data-desc-position="bottom" data-gallery="showcase"><img alt="Image title" src="./assets/images/silk.png"></a>
234-
<a class="showcase-link glightbox" href="./assets/images/leaves.png" data-type="image" data-width="100%" data-height="auto" data-desc-position="bottom" data-gallery="showcase"><img alt="Image title" src="./assets/images/leaves.png"></a>
235-
</section>
236-
</div>
237-
</div>
238-
239199
{% include "partials/footer.html" %}
240200
{% endblock %}

theme/partials/footer.html

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
<!--
2+
Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to
6+
deal in the Software without restriction, including without limitation the
7+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8+
sell copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in
12+
all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20+
IN THE SOFTWARE.
21+
-->
22+
23+
<!-- Footer -->
24+
<footer class="md-footer">
25+
26+
<div style="background: #1e2129;">
27+
<div class="md-footer__inner md-grid">
28+
<section class="showcase">
29+
<a class="showcase-link glightbox" href="/assets/images/mountain.png" data-type="image" data-width="100%" data-height="auto" data-desc-position="bottom" data-gallery="showcase"><img alt="Image title" src="/assets/images/mountain.png"></a>
30+
<a class="showcase-link glightbox" href="/assets/images/sequence.png" data-type="image" data-width="100%" data-height="auto" data-desc-position="bottom" data-gallery="showcase"><img alt="Image title" src="/assets/images/sequence.png"></a>
31+
<a class="showcase-link glightbox" href="/assets/images/silk.png" data-type="image" data-width="100%" data-height="auto" data-desc-position="bottom" data-gallery="showcase"><img alt="Image title" src="/assets/images/silk.png"></a>
32+
<a class="showcase-link glightbox" href="/assets/images/leaves.png" data-type="image" data-width="100%" data-height="auto" data-desc-position="bottom" data-gallery="showcase"><img alt="Image title" src="/assets/images/leaves.png"></a>
33+
</section>
34+
</div>
35+
</div>
36+
37+
38+
<!-- Link to previous and/or next page -->
39+
{% if "navigation.footer" in features %}
40+
{% if page.previous_page or page.next_page %}
41+
{% if page.meta and page.meta.hide %}
42+
{% set hidden = "hidden" if "footer" in page.meta.hide %}
43+
{% endif %}
44+
<nav
45+
class="md-footer__inner md-grid"
46+
aria-label="{{ lang.t('footer') }}"
47+
{{ hidden }}
48+
>
49+
50+
<!-- Link to previous page -->
51+
{% if page.previous_page %}
52+
{% set direction = lang.t("footer.previous") %}
53+
<a
54+
href="{{ page.previous_page.url | url }}"
55+
class="md-footer__link md-footer__link--prev"
56+
aria-label="{{ direction }}: {{ page.previous_page.title | e }}"
57+
>
58+
<div class="md-footer__button md-icon">
59+
{% set icon = config.theme.icon.previous or "material/arrow-left" %}
60+
{% include ".icons/" ~ icon ~ ".svg" %}
61+
</div>
62+
<div class="md-footer__title">
63+
<span class="md-footer__direction">
64+
{{ direction }}
65+
</span>
66+
<div class="md-ellipsis">
67+
{{ page.previous_page.title }}
68+
</div>
69+
</div>
70+
</a>
71+
{% endif %}
72+
73+
<!-- Link to next page -->
74+
{% if page.next_page %}
75+
{% set direction = lang.t("footer.next") %}
76+
<a
77+
href="{{ page.next_page.url | url }}"
78+
class="md-footer__link md-footer__link--next"
79+
aria-label="{{ direction }}: {{ page.next_page.title | e }}"
80+
>
81+
<div class="md-footer__title">
82+
<span class="md-footer__direction">
83+
{{ direction }}
84+
</span>
85+
<div class="md-ellipsis">
86+
{{ page.next_page.title }}
87+
</div>
88+
</div>
89+
<div class="md-footer__button md-icon">
90+
{% set icon = config.theme.icon.next or "material/arrow-right" %}
91+
{% include ".icons/" ~ icon ~ ".svg" %}
92+
</div>
93+
</a>
94+
{% endif %}
95+
</nav>
96+
{% endif %}
97+
{% endif %}
98+
99+
<!-- Further information -->
100+
<div class="md-footer-meta md-typeset">
101+
<div class="md-footer-meta__inner md-grid">
102+
{% include "partials/copyright.html" %}
103+
104+
<!-- Social links -->
105+
{% if config.extra.social %}
106+
{% include "partials/social.html" %}
107+
{% endif %}
108+
</div>
109+
</div>
110+
</footer>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy