Skip to content

Commit b843ddc

Browse files
committed
Fix footer layout on mobile
Signed-off-by: ansita20 <ansitasingh20@gmail.com>
1 parent ed42404 commit b843ddc

File tree

2 files changed

+23
-18
lines changed

2 files changed

+23
-18
lines changed

docs/layouts/partials/footer.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
<div class="{{ $bg_color }} row d-print-none">
99
<div class="container-fluid py-3 mx-sm-5">
1010
<div class="row">
11-
<div class="col-8 py-3 order-sm-2 {{ $text_color }}">
11+
<div class="col-12 col-sm-8 py-3 order-sm-2 {{ $text_color }} text-center text-sm-left">
1212
<a href="https://www.cncf.io/projects/pipecd/" target="_blank">
1313
<img src="{{ $cncf_logo }}" alt="cncf logo" width="250">
1414
<div class="py-2 {{ $text_color }}">PipeCD is a Cloud Native Computing Foundation sandbox project.</div>
1515
</a>
1616
</div>
17-
<div class="col-4 order-sm-3 d-flex align-items-center justify-content-center">
17+
<div class="col-12 col-sm-4 order-sm-3 d-flex align-items-center justify-content-center justify-content-sm-end flex-wrap mb-3 mb-sm-0">
1818
{{ with $links }}
1919
{{ with index . "developer"}}
20-
<ul class="list-inline mb-0">
20+
<ul class="list-inline mb-2 mb-sm-0">
2121
{{ range . }}
2222
<li class="list-inline-item mx-2 h3" data-toggle="tooltip" data-placement="top" title="{{ .name }}" aria-label="{{ .name }}">
2323
<a class="text-white" target="_blank" rel="noopener noreferrer" href="{{ .url }}">
Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
{{ $links := .Site.Params.links }}
2-
<footer class="bg-dark py-5 row d-print-none">
2+
<footer class="bg-dark py-5 d-print-none">
33
<div class="container-fluid mx-sm-5">
4-
<div class="row">
5-
<div class="col-6 col-sm-4 text-xs-center order-sm-2">
6-
{{ with $links }}
7-
{{ with index . "user"}}
8-
{{ template "footer-links-block" . }}
9-
{{ end }}
10-
{{ end }}
4+
<div class="row align-items-center">
5+
<div class="col-12 col-sm-6 text-center text-sm-left mb-3 mb-sm-0">
6+
<p class="text-white mb-2">
7+
PipeCD is a Cloud Native Computing Foundation sandbox project.
8+
</p>
119
</div>
12-
<div class="col-6 col-sm-4 text-right text-xs-center order-sm-3">
10+
<div class="col-12 col-sm-6 text-center text-sm-right">
1311
{{ with $links }}
14-
{{ with index . "developer"}}
15-
{{ template "footer-links-block" . }}
16-
{{ end }}
12+
{{ with index . "user" }}
13+
{{ template "footer-links-block" . }}
14+
{{ end }}
15+
{{ with index . "developer" }}
16+
{{ template "footer-links-block" . }}
17+
{{ end }}
1718
{{ end }}
1819
</div>
19-
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
20-
{{ with .Site.Params.copyright }}<small class="text-white">&copy; {{ now.Year}} {{ .}} {{ T "footer_all_rights_reserved" }}</small>{{ end }}
20+
</div>
21+
<div class="row mt-4">
22+
<div class="col-12 text-center">
23+
{{ with .Site.Params.copyright }}
24+
<small class="text-white">&copy; {{ now.Year }} {{ . }} {{ T "footer_all_rights_reserved" }}</small>
25+
{{ end }}
2126
{{ with .Site.Params.privacy_policy }}<small class="ml-1"><a href="{{ . }}" target="_blank" rel="noopener">{{ T "footer_privacy_policy" }}</a></small>{{ end }}
2227
{{ if not .Site.Params.ui.footer_about_disable }}
2328
{{ with .Site.GetPage "about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }}
@@ -36,4 +41,4 @@
3641
</li>
3742
{{ end }}
3843
</ul>
39-
{{ end }}
44+
{{ end }}

0 commit comments

Comments
 (0)