11import styled , { DefaultTheme } from 'styled-components' ;
2- import { ml , mb , px , py , pt , pb , mr , mt , p } from 'styled-components-spacing' ;
2+ import { ml , mb , px , py , pt , pb , mr , p } from 'styled-components-spacing' ;
33import breakpoint from 'styled-components-breakpoint' ;
44import { Paragraph } from '../paragraph/Paragraph' ;
55import { Link } from '../link/Link' ;
6+ import { SocialMediaList } from '../social-media-icons/styles' ;
67
78export const HeaderWrapper = styled . header `
89 font-family: ${ ( { theme } ) => theme . fonts . secondaryHeading } ;
@@ -73,7 +74,7 @@ export const LogoLink = styled(Link)`
7374 display: flex;
7475 align-items: center;
7576 &:hover {
76- color: ${ ( { theme } ) => theme . colors . lightGreen } ;
77+ color: ${ ( { theme } ) => theme . colors . brandPrimary } ;
7778 }
7879` ;
7980
@@ -99,14 +100,14 @@ export const NavItem = styled.li`
99100 ` } ;
100101
101102 & > a:hover {
102- color: ${ ( { theme } ) => theme . colors . brightLavender } ;
103+ color: ${ ( { theme } ) => theme . colors . brandPrimary } ;
103104 }
104105
105106 & > a {
106107 border-radius: 3px;
107108 &.activeNavItem {
108109 color: ${ ( { theme } : { theme : DefaultTheme } ) =>
109- theme . colors . brightLavender } ;
110+ theme . colors . brandPrimary } ;
110111 text-decoration: underline;
111112 text-underline-offset: 0.3rem;
112113 }
@@ -148,7 +149,7 @@ export const ThemeToggleSwitchWrapper = styled.div`
148149 ` } ;
149150` ;
150151
151- // Footer and its component styles
152+ // Footer styles
152153export const FooterContainer = styled . div `
153154 font-size: ${ ( { theme } ) => theme . fontSizes . medium } ;
154155 font-family: ${ ( { theme } ) => theme . fonts . secondaryHeading } ;
@@ -159,8 +160,6 @@ export const FooterContainer = styled.div`
159160export const FooterContentWrapper = styled . div `
160161 display: flex;
161162 flex-direction: column;
162- justify-content: center;
163- align-items: center;
164163 margin: 0 auto;
165164 ${ pt ( 8 ) } ;
166165 ${ pb ( 6 ) } ;
@@ -173,18 +172,38 @@ export const FooterContentWrapper = styled.div`
173172 ${ breakpoint ( 'xxl' ) `
174173 width: 70rem;
175174 ` } ;
175+ ` ;
176+
177+ export const FooterRow = styled . div `
178+ display: flex;
179+ justify-content: space-between;
180+ align-items: center;
181+ ${ mb ( 3 ) } ;
182+
183+ ${ Nav } {
184+ gap: 2rem;
185+ justify-content: flex-start;
176186
177- ${ NavMenuWrapper } {
178- ${ mr ( 0 ) }
187+ ${ NavItem } {
188+ &:not(:first-child) {
189+ margin-left: 0;
190+ }
191+ }
179192 }
193+
194+ ${ breakpoint ( 'xs' , 'md' ) `
195+ flex-direction: column;
196+ align-items: flex-start;
197+ gap: 1.5rem;
198+ ` }
180199` ;
181200
182201export const SocialMediaLinksWrapper = styled . div `
183- ${ mb ( 4 ) } ;
184- ${ mt ( 6 ) } ;
185- ${ breakpoint ( 'xs' , 'lg' ) `
186- ${ mt ( 5 ) } ;
187- ` } ;
202+ ${ breakpoint ( 'xs' , 'md' ) `
203+ ${ SocialMediaList } {
204+ justify-content: flex-start;
205+ }
206+ ` }
188207` ;
189208
190209export const StyledParagraph = styled ( Paragraph ) `
@@ -194,7 +213,5 @@ export const StyledParagraph = styled(Paragraph)`
194213 ? theme . colors . secondaryText
195214 : theme . colors . primaryText } ;
196215 font-size: ${ ( { theme } ) => theme . fontSizes . small } ;
197- ${ mb ( 1 ) } ;
198216 }
199- text-align: center;
200217` ;
0 commit comments