Skip to content

Commit c8683b6

Browse files
authored
feat: added footer (#125)
1 parent 9508e76 commit c8683b6

File tree

3 files changed

+102
-5
lines changed

3 files changed

+102
-5
lines changed

assets/css/v2/style.css

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
--color-background: #FFFFFF;
1717
--color-foreground: #000000;
1818
--color-shadow: #D2D2D2;
19+
--color-footer: #1D1D1D;
20+
--color-footer-text: #E2E2E2;
1921
--color-product-title: #8D8D8D;
2022

2123
--sidebar-margin: 3rem;
@@ -99,8 +101,51 @@ header {
99101

100102
/* footer */
101103
footer {
102-
background-color: #32302f;
103-
padding: 0.5rem;
104+
background-color: var(--color-footer);
105+
padding: 1rem;
106+
}
107+
108+
.footer-layout {
109+
display: grid;
110+
grid-template-columns: 1fr;
111+
font-size: 0.875rem;
112+
gap: 24px;
113+
}
114+
115+
.footer-f5-trademark {
116+
display: flex;
117+
flex-direction: column;
118+
justify-content: space-between;
119+
gap: 12px;
120+
}
121+
122+
.footer-f5-trademark p {
123+
margin: 0;
124+
color: var(--color-footer-text);
125+
}
126+
127+
.footer-useful-links {
128+
display: grid;
129+
grid-template-columns: repeat(2, 1fr);
130+
gap: 18px;
131+
}
132+
133+
.footer-useful-links a {
134+
color: var(--color-footer-text);
135+
text-decoration: none;
136+
}
137+
138+
@media (min-width: 814px) {
139+
.footer-layout {
140+
display: grid;
141+
grid-template-columns: 1fr 1fr;
142+
font-size: 0.875rem;
143+
}
144+
145+
.footer-useful-links {
146+
gap: 4px;
147+
}
148+
104149
}
105150

106151
/* breadcrumbs */

layouts/_default/baseof.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
});
5656

5757
// swap out v1 and v2 elements
58-
const v1ElementIds = ["sidebar", "toc"]
58+
const v1ElementIds = ["sidebar", "footer", "toc"]
5959

6060
v1ElementIds.forEach((elementId) => {
6161
const element = document.getElementById(elementId);
@@ -145,14 +145,20 @@
145145
</div>
146146
</section>
147147

148-
<footer>
148+
<footer id="footer">
149149

150150
{{ block "footer" . }}
151151
{{ partial "footer.html" . }}
152152
{{ end }}
153153

154154
</footer>
155-
155+
156+
<footer data-mf="true" id="footer-v2" style="display:none;">
157+
{{ block "footer-v2" . }}
158+
{{ partial "footer-v2.html" . }}
159+
{{ end }}
160+
</footer>
161+
156162
{{ partial "scripts.html" . }}
157163
<div id="consent_blackbar"></div>
158164
</body>

layouts/partials/footer-v2.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<footer id="footer">
2+
<div class="footer-layout">
3+
<div class="footer-f5-trademark">
4+
<img class="f5-logo-footer" src="{{ "/images/icons/Logo_F5.svg" | absURL }}" alt="F5 logo">
5+
<p>©2025 F5, Inc. All rights reserved. NGINX is a registered trademark of F5, Inc.</p>
6+
</div>
7+
<div class="footer-useful-links">
8+
<a
9+
href="https://www.f5.com/company/policies/trademarks"
10+
rel="noopener"
11+
target="_blank"
12+
>Trademarks
13+
</a>
14+
<a
15+
href="https://www.f5.com/company/policies"
16+
rel="noopener"
17+
target="_blank"
18+
>Policies
19+
</a>
20+
<a
21+
href="https://www.f5.com/company/policies/privacy-notice"
22+
rel="noopener"
23+
target="_blank"
24+
>Privacy
25+
</a>
26+
<a
27+
href="https://www.f5.com/company/policies/F5-California-privacy-summary"
28+
rel="noopener"
29+
target="_blank"
30+
>California Privacy
31+
</a>
32+
<a
33+
href="https://www.f5.com/company/policies/privacy-notice#no-sell"
34+
rel="noopener"
35+
target="_blank"
36+
>Do Not Sell My Personal Information
37+
</a>
38+
<a
39+
href="https://docs.nginx.com"
40+
rel="noopener"
41+
target="_blank"
42+
>Cookie Preference
43+
</a>
44+
</div>
45+
</div>
46+
</footer>

0 commit comments

Comments
 (0)