Skip to content

Commit ea70a31

Browse files
adopt Netlify OSS policy plan
1 parent f96c9f6 commit ea70a31

File tree

3 files changed

+61
-10
lines changed

3 files changed

+61
-10
lines changed

src/components/footer/footer.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,21 @@ export default class Footer extends HTMLElement {
66
connectedCallback() {
77
this.innerHTML = `
88
<footer class="${styles.footer}">
9-
<div class="${styles.logo}">
10-
${greenwoodLogo}
11-
</div>
9+
<div class="${styles.flexContainer}">
10+
<div class="${styles.logo}">
11+
${greenwoodLogo}
12+
</div>
13+
14+
<div class="${styles.netlifyBanner}">
15+
<a href="https://www.netlify.com/">This site is powered by Netlify</a>
16+
</div>
1217
13-
<app-social-tray></app-social-tray>
18+
<app-social-tray></app-social-tray>
19+
20+
<div class="${styles.netlifyBannerMobile}">
21+
<a href="https://www.netlify.com/">This site is powered by Netlify</a>
22+
</div>
23+
</div>
1424
</footer>
1525
`;
1626
}
Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
.footer {
22
background-color: var(--color-tertiary);
33
padding: var(--size-fluid-1);
4+
}
5+
6+
.flexContainer {
47
display: flex;
5-
flex-direction: row;
68
flex-wrap: wrap;
9+
align-items: center;
10+
justify-content: center;
711
}
812

913
.logo {
1014
padding-left: var(--size-fluid-1);
1115
display: flex;
1216
flex-direction: column;
13-
flex: 1;
17+
flex: 1 1 30%;
1418
justify-content: center;
1519
color: var(--color-gray);
1620
}
@@ -20,16 +24,53 @@
2024
fill: var(--color-gray);
2125
}
2226

27+
.netlifyBanner {
28+
display: none;
29+
flex-direction: column;
30+
flex: 1 1 30%;
31+
justify-content: center;
32+
text-align: center;
33+
34+
& a {
35+
color: var(--color-white);
36+
font-size: var(--font-size-1);
37+
}
38+
}
39+
40+
.netlifyBannerMobile {
41+
display: flex;
42+
margin: var(--size-1);
43+
44+
& a {
45+
color: var(--color-white);
46+
font-size: var(--font-size-1);
47+
}
48+
}
49+
2350
.footer app-social-tray {
24-
border: var(--border-size-1) solid var(--color-black);
25-
border-radius: var(--radius-6);
26-
padding: var(--size-2);
51+
flex: 1 1 30%;
52+
display: flex;
53+
align-items: right;
54+
justify-content: right;
55+
padding: 1px;
2756

2857
& ul {
2958
background-color: var(--color-secondary);
59+
border: var(--border-size-1) solid var(--color-black);
60+
border-radius: var(--radius-6);
3061
}
3162

3263
& svg {
3364
fill: var(--color-white);
3465
}
3566
}
67+
68+
@media (min-width: 720px) {
69+
.netlifyBanner {
70+
display: flex;
71+
}
72+
73+
.netlifyBannerMobile {
74+
display: none;
75+
}
76+
}

src/components/footer/footer.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe("Components/Footer", () => {
1818
});
1919

2020
it("should have the Greenwood logo", () => {
21-
const logo = footer.querySelectorAll("div svg");
21+
const logo = footer.querySelectorAll("div > svg");
2222

2323
expect(logo.length).equal(1);
2424
expect(logo[0]).not.equal(undefined);

0 commit comments

Comments
 (0)