File tree Expand file tree Collapse file tree 3 files changed +61
-10
lines changed Expand file tree Collapse file tree 3 files changed +61
-10
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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}
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+ }
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments