Skip to content

Commit ac8e0b3

Browse files
authored
Merge pull request #31 from stackabletech/feat/23-footer
Adding a footer
2 parents c0ad3dd + 220e26a commit ac8e0b3

18 files changed

+8146
-8
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Bundle
1+
name: Build Bundle. Includes linting.
22

33
on:
44
pull_request:
@@ -21,4 +21,4 @@ jobs:
2121
${{ runner.OS }}-node-
2222
${{ runner.OS }}-
2323
- run: npm ci
24-
- run: node_modules/.bin/gulp bundle
24+
- run: npm run bundle

gulp.d/tasks/build.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ module.exports = (src, dest, preview) => () => {
103103
.src(['css/site.css', 'css/vendor/*.css'], { ...opts, sourcemaps })
104104
.pipe(postcss((file) => ({ plugins: postcssPlugins, options: { file } }))),
105105
vfs.src('font/*.{ttf,woff*(2)}', opts),
106+
vfs.src('webfonts/*.{ttf,woff*(2)}', opts),
106107
vfs.src('img/**/*.{gif,ico,jpg,png,svg}', opts).pipe(
107108
preview
108109
? through()

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const serverConfig = { host: '0.0.0.0', port: 5252, livereload }
1717
const task = require('./gulp.d/tasks')
1818
const glob = {
1919
all: [srcDir, previewSrcDir],
20-
css: `${srcDir}/css/**/*.css`,
20+
css: [`${srcDir}/css/**/*.css`, `!${srcDir}/css/vendor/**/*.css`],
2121
js: ['gulpfile.js', 'gulp.d/**/*.js', `${srcDir}/{helpers,js}/**/*.js`],
2222
}
2323

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"type": "git",
88
"url": "https://gitlab.com/antora/antora-ui-default.git"
99
},
10+
"scripts": {
11+
"lint": "gulp lint",
12+
"bundle": "gulp bundle",
13+
"preview": "gulp preview"
14+
},
1015
"engines": {
1116
"node": ">= 8.0.0"
1217
},

src/css/footer.css

Lines changed: 99 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,103 @@ footer.footer {
1010
margin: 0.5rem 0;
1111
}
1212

13-
.footer a {
14-
color: var(--footer-link-font-color);
13+
.footer-info {
14+
display: flex;
15+
gap: 24px;
16+
}
17+
18+
@media screen and (max-width: 720px) {
19+
.footer-info {
20+
flex-direction: column;
21+
}
22+
}
23+
24+
@media screen and (min-width: 720px) {
25+
.footer-info {
26+
flex-direction: row;
27+
}
28+
}
29+
30+
.footer-info-item-large {
31+
flex-grow: 3;
32+
}
33+
34+
.footer-info-item {
35+
flex-grow: 1;
36+
}
37+
38+
.footer-info-item h2 {
39+
margin-top: 0;
40+
}
41+
42+
.footer-link-list {
43+
list-style-type: none;
44+
padding: 0;
45+
margin: 0;
46+
}
47+
48+
.footer-link-list li a {
49+
color: var(--footer-font-color);
50+
}
51+
52+
.footer-link-list li a:hover {
53+
text-decoration: none;
54+
color: var(--color-brand-primary);
55+
}
56+
57+
.c-and-socials {
58+
display: flex;
59+
gap: 24px;
60+
align-items: center;
61+
justify-content: space-between;
62+
}
63+
64+
@media screen and (max-width: 720px) {
65+
.c-and-socials {
66+
flex-direction: column;
67+
}
68+
}
69+
70+
@media screen and (min-width: 720px) {
71+
.c-and-socials {
72+
flex-direction: row;
73+
}
74+
}
75+
76+
.footer-container {
77+
display: flex;
78+
flex-direction: column;
79+
gap: 24px;
80+
}
81+
82+
.social-icons-container {
83+
display: flex;
84+
flex-direction: row;
85+
gap: 10px;
86+
}
87+
88+
.social-icon {
89+
background-color: var(--footer-font-color);
90+
color: var(--body-font-color);
91+
border-radius: 50%;
92+
display: inline-flex;
93+
align-items: center;
94+
justify-content: center;
95+
font-size: 20px;
96+
height: 36px;
97+
width: 36px;
98+
cursor: pointer;
99+
transition: all 0.3s;
100+
}
101+
102+
.social-icon:hover {
103+
background-color: var(--color-brand-primary);
104+
color: var(--footer-font-color);
105+
text-decoration: none;
106+
}
107+
108+
.footer-seperator {
109+
width: 100%;
110+
height: 1px;
111+
background-color: var(--footer-font-color);
15112
}

src/css/site.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@
1717
@import "highlight.css";
1818
@import "print.css";
1919
@import "landing.css";
20+
@import "vendor/fontawesome.css";

src/css/vars.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@
116116
--toc-line-height: 1.2;
117117
/* footer */
118118
--footer-line-height: var(--doc-line-height);
119-
--footer-background: var(--color-smoke-90);
120-
--footer-font-color: var(--color-gray-70);
121-
--footer-link-font-color: var(--color-jet-80);
119+
--footer-background: var(--color-jet-70);
120+
--footer-font-color: var(--color-white);
121+
--footer-link-font-color: var(--color-smoke-70);
122122
/* dimensions and positioning */
123123
--navbar-height: calc(73 / var(--rem-base) * 1rem);
124124
--toolbar-height: calc(45 / var(--rem-base) * 1rem);

0 commit comments

Comments
 (0)