tangled
alpha
login
or
join now
bwc9876.dev
/
website
0
fork
atom
Files for my website
bwc9876.dev
0
fork
atom
overview
issues
pulls
pipelines
Add Footer
bwc9876.dev
2 years ago
b19cdcfe
6c0bf8ec
+34
-2
2 changed files
expand all
collapse all
unified
split
src
layouts
Layout.astro
pages
index.astro
+33
-1
src/layouts/Layout.astro
···
61
61
<link rel="canonical" href={canonical} />
62
62
<link rel="icon" href="/favicon.png" />
63
63
</head>
64
64
-
<body>
64
64
+
<body id="top">
65
65
<nav class="container">
66
66
<ul>
67
67
<li>
···
99
99
<main class="container">
100
100
<slot />
101
101
</main>
102
102
+
<footer class="container">
103
103
+
<p><a href="#top">Back To Top</a></p>
104
104
+
<p class="copyright">© Ben C 2023</p>
105
105
+
<Socials labelPlacement="top" />
106
106
+
</footer>
102
107
</body>
103
108
</html>
104
109
···
120
125
.container {
121
126
padding: 0 calc(var(--spacing) * 2) !important;
122
127
}
128
128
+
}
129
129
+
130
130
+
footer {
131
131
+
display: flex;
132
132
+
flex-direction: column;
133
133
+
flex-wrap: wrap;
134
134
+
align-content: center;
135
135
+
margin-top: calc(var(--spacing) * 5) !important;
136
136
+
}
137
137
+
138
138
+
footer p {
139
139
+
text-align: center;
140
140
+
}
141
141
+
142
142
+
footer p.copyright {
143
143
+
color: var(--muted-color);
144
144
+
}
145
145
+
146
146
+
footer ul {
147
147
+
display: flex;
148
148
+
gap: calc(var(--spacing) * 3);
149
149
+
list-style: none;
150
150
+
flex-direction: row;
151
151
+
}
152
152
+
153
153
+
footer ul li {
154
154
+
list-style: none;
123
155
}
124
156
125
157
nav .mobile-socials {
+1
-1
src/pages/index.astro
···
33
33
34
34
<style>
35
35
.view-more {
36
36
-
margin-top: var(--spacing);
36
36
+
margin-top: calc(var(--spacing) * 3);
37
37
display: flex;
38
38
justify-content: center;
39
39
width: 100%;