-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
footer.html
107 lines (102 loc) · 3.49 KB
/
footer.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html lang="en">
<head>
{{> head }}
</head>
<body>
{{> navbar }}
<main>
{{> intro}}
<div class="container">
<div class="row">
<div class="s12 m8 offset-m1 xl7 offset-xl1">
<!-- Footer Section-->
<div id="footer" class="section scrollspy">
<p class="caption">
Footers are a great way to organize a lot of site navigation and information at the end of a page. This is where the user will look once they have finished
scrolling through the current page or are looking for additional information about your website.
</p>
<h3 class="header">Introduction</h3>
<p>
Note: We use flexbox to structure our html so that the footer is always on the bottom of the page. It is important to keep the structure of your page within the 3
HTML5 tags:
<code class="language-html">header</code>, <code class="language-html">main</code>,
<code class="language-html">footer</code>
</p>
<div class="row">
<div class="s12">
<pre style="padding-top: 0px">
<span class="copyMessage">Copied!</span>
<i class="material-icons copyButton">content_copy</i>
<code class="language-html">
<xmp>
<footer class="page-footer">
<div class="container">
<div class="row">
<div class="l6 s12">
<h5>Footer Content</h5>
<p>You can use rows and columns here to organize your footer content.</p>
</div>
<div class="l4 offset-l8 s12">
<h5>Links</h5>
<ul>
<li><a href="#!">Link 1</a></li>
<li><a href="#!">Link 2</a></li>
<li><a href="#!">Link 3</a></li>
<li><a href="#!">Link 4</a></li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2014 Copyright Text
<a class="right" href="#!">More Links</a>
</div>
</div>
</footer>
</xmp>
</code>
</pre>
</div>
</div>
</div>
<!-- End of footer section -->
<div id="sticky-footer" class="section scrollspy">
<h3 class="header">Sticky Footer</h3>
<p>
A sticky footer always stays on the bottom of the page regardless of how little content is on the page. However, this footer will be pushed down if there is a lot
of content, so it is different from a fixed footer. Add the following code to your CSS file.
</p>
<p>Note: This may cause issues in Internet Explorer which has weak support for flexbox.</p>
</div>
<pre style="padding-top: 0px">
<span class="copyMessage">Copied!</span>
<i class="material-icons copyButton">content_copy</i>
<code class="language-css copiedText">body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
main {
flex: 1 0 auto;
}
</code></pre>
</div>
<div class="hide-on-small-only m3 xl3">
<div class="toc-wrapper">
<div style="height: 1px">
<ul class="section table-of-contents">
<li><a href="#footer">Footer</a></li>
<li><a href="#sticky-footer">Sticky Footer</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</main>
{{> footer }}
<script type="module" src="/src/main.ts"></script>
</body>
</html>