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

Commit 67c3752

Browse files
authored
refactor(meetups): mock adjust (#1202)
* chore(footer): adjust for meetup * refactor(meetups): adjust mock * refactor(meetups): add a note
1 parent 15829e9 commit 67c3752

File tree

19 files changed

+233
-83
lines changed

19 files changed

+233
-83
lines changed

config/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"//--- contact configs ---//": "",
6363
"EMAIL_SUPPORT": "coderplanets@outlook.com",
6464
"// GRAPHQL_ENDPOINT": "https://api.coderplanets.com/graphiql",
65-
"BUILD_VERSION": "v0.8.2",
65+
"BUILD_VERSION": "v2.0.10",
6666
"// 1000 * 60 * 10 = 10 mins": "",
6767
"SSR_CACHE_TIME": 60000
6868
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { FC, memo } from 'react'
2+
3+
import Linker from '@/widgets/Linker'
4+
5+
import { Wrapper } from './styles/about'
6+
7+
const About: FC = () => {
8+
return (
9+
<Wrapper>
10+
小聚(Meetups)版块部分功能还在编写完善中,所展示的 UI/UX
11+
部分为的目前设计的产品形态,后期可能会有所调整,如果你有任何建议和反馈,欢迎。
12+
<Linker
13+
src="/feedback"
14+
external={false}
15+
text="来这里讨论"
16+
inline
17+
left={4}
18+
right={4}
19+
/>
20+
</Wrapper>
21+
)
22+
}
23+
24+
export default memo(About)

src/containers/content/MeetupsContent/FilterBar/index.tsx

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,21 @@ import { FC } from 'react'
22

33
import type { TFiltersMenuItems } from '@/spec'
44

5-
import { mockFilterMenuTags } from '@/utils/mock'
5+
import { mockMeetupsFilterTags } from '@/utils/mock'
66

77
import BrandTitle from '@/widgets/BrandTitle'
88
import Sticky from '@/widgets/Sticky'
99
import Button from '@/widgets/Buttons/Button'
1010
import FiltersMenu from '@/widgets/FiltersMenu'
1111
import DotDivider from '@/widgets/DotDivider'
12-
import { Br } from '@/widgets/Common'
1312

14-
import { Wrapper, NaviFooter, Terms, TermItem } from '../styles/filter_bar'
13+
import {
14+
Wrapper,
15+
FilterWrapper,
16+
NaviFooter,
17+
Terms,
18+
TermItem,
19+
} from '../styles/filter_bar'
1520

1621
type TProps = {
1722
filtersItems: TFiltersMenuItems
@@ -20,23 +25,24 @@ type TProps = {
2025
const FilterBar: FC<TProps> = ({ filtersItems }) => {
2126
return (
2227
<Wrapper>
28+
<BrandTitle
29+
title="Meetups"
30+
fontSize={23}
31+
mBottom={25}
32+
desc="来和志同道合的伙伴们一起聊聊吧 !"
33+
/>
2334
<Sticky offsetTop={26}>
24-
<Br top={12} />
25-
<BrandTitle
26-
title="Meetups"
27-
fontSize={23}
28-
mBottom={45}
29-
desc="来和志同道合的朋友们一起聊聊?"
30-
/>
31-
<FiltersMenu tags={mockFilterMenuTags()} revert />
35+
<FilterWrapper>
36+
<FiltersMenu tags={mockMeetupsFilterTags()} revert />
37+
</FilterWrapper>
3238
<NaviFooter>
3339
<Button type="primary" size="small" ghost>
3440
+ 发起小聚
3541
</Button>
3642

3743
<Terms>
38-
<TermItem>关于</TermItem> <DotDivider radius={3} />{' '}
39-
<TermItem>建议</TermItem> <DotDivider radius={3} />{' '}
44+
<TermItem>关于</TermItem> <DotDivider space={6} radius={3} />{' '}
45+
<TermItem>建议</TermItem> <DotDivider space={6} radius={3} />{' '}
4046
<TermItem>举报</TermItem>
4147
</Terms>
4248
</NaviFooter>

src/containers/content/MeetupsContent/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import { FC } from 'react'
88

99
import type { TMetric } from '@/spec'
10-
import { ASSETS_ENDPOINT } from '@/config'
11-
import { GALLERY } from '@/constant'
1210
import { buildLog } from '@/utils/logger'
1311
import { pluggedIn } from '@/utils/mobx'
1412

@@ -20,11 +18,10 @@ import type { TStore } from './store'
2018

2119
import FilterBar from './FilterBar'
2220
import DateSelector from './DateSelector'
23-
// import ActivityCard from './ActivityCard'
2421
import Card from './Card'
22+
import About from './About'
2523

2624
import filtersItems from './fakeFiltersItems'
27-
// import meetups from './fakeMeetups'
2825

2926
import { Wrapper, InnerWrapper, ContentWrapper, CardsWrapper } from './styles'
3027
import { useInit } from './logic'
@@ -47,8 +44,6 @@ const MeetupsContentContainer: FC<TProps> = ({
4744

4845
const { pagedMeetupsData } = store
4946

50-
console.log('## pagedMeetupsData: ', pagedMeetupsData.entries)
51-
5247
return (
5348
<Wrapper testid={testid}>
5449
<InnerWrapper metric={metric}>
@@ -62,6 +57,7 @@ const MeetupsContentContainer: FC<TProps> = ({
6257
))}
6358
</MasonryCards>
6459
</CardsWrapper>
60+
<About />
6561

6662
<Pagi margin={{ top: '60px', bottom: '80px' }} />
6763
</ContentWrapper>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import styled from 'styled-components'
2+
3+
import type { TMetric } from '@/spec'
4+
import { theme } from '@/utils/themes'
5+
import css from '@/utils/css'
6+
7+
export const Wrapper = styled.div`
8+
width: 100%;
9+
color: ${theme('thread.articleDigest')};
10+
font-size: 15px;
11+
margin-top: 50px;
12+
border-top: 1px solid #104352;
13+
padding-top: 20px;
14+
padding-right: 20%;
15+
`
16+
export const InnerWrapper = styled.div<{ metric: TMetric }>`
17+
${css.flex()};
18+
margin-top: 40px;
19+
${({ metric }) => css.fitContentWidth(metric)};
20+
`

src/containers/content/MeetupsContent/styles/card/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ export const Wrapper = styled.div`
1717
margin-bottom: 20px;
1818
1919
color: ${theme('thread.articleDigest')};
20-
border-top: 2px solid;
21-
border-top-color: transparent;
20+
border: 1px solid;
21+
border-top: 3px solid;
22+
border-color: transparent;
2223
2324
background: #0d3644;
2425
2526
&:hover {
26-
border-top-color: #2380aa;
27+
border-color: ${theme('button.primary')};
2728
}
28-
transition: border-top 0.1s;
29+
transition: all 0.1s;
2930
`
3031
export const ContentsWrapper = styled.div`
3132
${css.flexColumn()};

src/containers/content/MeetupsContent/styles/filter_bar/index.ts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,41 @@
11
import styled from 'styled-components'
22

3-
import Img from '@/Img'
43
import { theme } from '@/utils/themes'
54
import css from '@/utils/css'
65

76
export const Wrapper = styled.div`
87
${css.flexColumn()};
98
margin-right: 25px;
109
/* width of filter bar */
11-
min-width: 145px;
10+
min-width: 150px;
11+
width: 150px;
1212
`
13-
export const MeetupIcon = styled(Img)`
14-
fill: ${theme('thread.articleTitle')};
15-
height: 70px;
16-
width: 100px;
17-
display: block;
18-
margin-top: -17px;
13+
14+
export const FilterWrapper = styled.div`
15+
margin-left: -5px;
1916
`
17+
2018
export const NaviFooter = styled.div`
2119
${css.flexColumn('align-start')};
2220
border-top: 1px solid;
2321
border-top-color: #0d4353;
24-
padding-top: 20px;
22+
margin-left: -5px;
23+
padding-top: 25px;
2524
color: ${theme('thread.articleDigest')};
26-
margin-left: 10px;
25+
padding-left: 5px;
2726
margin-top: 20px;
2827
`
2928
export const Terms = styled.div`
3029
${css.flex('align-center')};
31-
margin-top: 12px;
30+
margin-top: 16px;
3231
`
3332
export const TermItem = styled.div`
3433
font-weight: bold;
3534
opacity: 0.8;
35+
color: ${theme('thread.articleDigest')};
3636
3737
&:hover {
38+
color: ${theme('thread.articleTitle')};
3839
opacity: 1;
3940
cursor: pointer;
4041
}

src/containers/content/MeetupsContent/styles/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ export const CardsWrapper = styled.div`
2424
${css.flex('align-center')};
2525
flex-wrap: wrap;
2626
width: 100%;
27+
margin-top: 12px;
2728
`

src/containers/thread/ThreadSidebar/ClassicLayout/DynamicPart.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ const ClassicLayout: FC<TProps> = ({
5151
</BadgeWrapper>
5252
<TagsBarWrapper>
5353
<TagsBar onSelect={() => send(EVENT.REFRESH_ARTICLES)} />
54-
{/* <FiltersMenu tags={mockFilterMenuTags()} revert /> */}
5554
</TagsBarWrapper>
5655
</Sticky>
5756
)

src/containers/unit/Footer/DesktopView/HomeLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const HomeView: FC<TProps> = ({ metric, layout }) => {
131131
</Column>
132132

133133
<Column>
134-
<Title>Brand</Title>
134+
<Title>品牌</Title>
135135
<Body>
136136
<LinkItem href={`${ROUTE.MEMBERSHIP}`} {...linkColors}>
137137
价值观

0 commit comments

Comments
 (0)