Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 5052be5

Browse files
committed
fix(community-page): center align center
1 parent e4d897d commit 5052be5

File tree

4 files changed

+24
-12
lines changed

4 files changed

+24
-12
lines changed

containers/CommunityBanner/styles/digest_view.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ export const Wrapper = styled(BaseBanner)`
1111
min-height: 125px;
1212
`
1313
export const InnerWrapper = styled.div`
14-
max-width: ${cs.MEDIA_MAX_WIDTH};
14+
${cs.flex('justify-center')};
1515
width: 100%;
16+
max-width: ${cs.MAX_CONTENT_WIDTH};
1617
`
1718
export const BaseBannerContent = styled.div`
1819
${cs.flex('align-center')};
20+
width: 100%;
21+
padding: 0 6vw;
1922
20-
margin-left: 8%;
21-
margin-right: 7%;
2223
margin-top: -2rem;
24+
2325
${cs.media.mobile`
2426
margin-left: 0;
2527
margin-right: 3%;

containers/CommunityBanner/styles/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { theme, cs } from '@utils'
44

55
export const BaseBanner = styled.nav`
66
${cs.flexColumn('justify-center')};
7-
align-items: center;
8-
97
position: relative;
8+
9+
align-items: center;
1010
min-height: 140px;
1111
background: ${theme('banner.bg')};
1212
border-bottom: 1px solid;
@@ -24,6 +24,7 @@ export const BaseTabber = styled.div`
2424
width: 80vw;
2525
overflow-x: auto;
2626
overflow-y: hidden;
27+
2728
${cs.media.tablet`
2829
left: 10px;
2930
width: 100%;

containers/CommunityContent/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import JobsThread from '@containers/JobsThread'
1717
import UsersThread from '@containers/UsersThread'
1818
import CheatsheetThread from '@containers/CheatsheetThread'
1919

20-
import { Wrapper } from './styles'
20+
import { Wrapper, InnerWrapper } from './styles'
2121
import { useInit } from './logic'
2222

2323
/* eslint-disable-next-line */
@@ -56,7 +56,9 @@ const CommunityContentContainer = ({ communityContent }) => {
5656

5757
return (
5858
<Wrapper testid="community-content">
59-
<ComunityContent curRoute={curRoute} />
59+
<InnerWrapper>
60+
<ComunityContent curRoute={curRoute} />
61+
</InnerWrapper>
6062
</Wrapper>
6163
)
6264
}

containers/CommunityContent/styles/index.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,21 @@ export const Wrapper = styled.div.attrs(props => ({
1616
border: 1px solid;
1717
border-color: ${theme('content.border')};
1818
border-radius: 6px;
19-
padding: 1em;
19+
padding: 1em 0;
20+
2021
${cs.media.tablet`
21-
width: 100%;
22-
margin: 0;
22+
width: 100%;
23+
margin: 0;
2324
margin-top: 10px;
2425
padding: .6em;
2526
padding-right: 0;
2627
`};
2728
`
28-
29-
export const holder = 1
29+
export const InnerWrapper = styled.div`
30+
width: 100%;
31+
max-width: ${cs.MAX_CONTENT_WIDTH};
32+
padding: 0 5vw;
33+
${cs.media.desktop`
34+
padding: 0 3vw;
35+
`};
36+
`

0 commit comments

Comments
 (0)