Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit09a339a

Browse files
committed
refactor(meetups): card style wip
1 parentcacb73d commit09a339a

File tree

5 files changed

+48
-6
lines changed

5 files changed

+48
-6
lines changed

‎src/containers/content/MeetupsContent/Card/index.js‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
importReactfrom'react'
22

3-
import{ICON_CMD}from'@/config'
3+
import{ICON_CMD,ASSETS_ENDPOINT}from'@/config'
44
importDotDividerfrom'@/components/DotDivider'
55

66
importDatefrom'./Date'
@@ -10,7 +10,9 @@ import {
1010
ContentsWrapper,
1111
Label,
1212
Title,
13+
Body,
1314
Desc,
15+
PreviewImg,
1416
BodyWrapper,
1517
LocationWrapper,
1618
Company,
@@ -24,9 +26,12 @@ const Card = ({ item }) => {
2426
<ContentsWrapper>
2527
<Label>前端</Label>
2628
<Title>Groupher 从构想到实现</Title>
27-
<Desc>
28-
GNU计划有多反资本家呢?他们甚至,此协议 规定不得阻止用户再分发。
29-
</Desc>
29+
<Body>
30+
<Desc>
31+
GNU计划有多反资本家呢?他们甚至,此协议 规定不得阻止用户再分发。
32+
</Desc>
33+
<PreviewImgsrc={`${ASSETS_ENDPOINT}/works/market1.jpeg`}/>
34+
</Body>
3035
<BodyWrapper>
3136
<Company>{item.company}</Company>
3237
<DotDividerradius="3px"space="7px"/>

‎src/containers/content/MeetupsContent/index.js‎

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ import { useInit } from './logic'
2424
/* eslint-disable-next-line */
2525
constlog=buildLog('C:CoolGuideContent')
2626

27+
// const GALLERY_TYPES = [
28+
// {
29+
// icon: GALLERY.MAIN_COLUMN,
30+
// key: '0',
31+
// },
32+
// {
33+
// icon: GALLERY.MASONRY_COLUMN,
34+
// key: '1',
35+
// },
36+
// ]
37+
2738
constMeetupsContentContainer=({meetupsContent:store})=>{
2839
useInit(store)
2940

@@ -39,7 +50,15 @@ const MeetupsContentContainer = ({ meetupsContent: store }) => {
3950
// <ActivityCard key={item.id} item={item} />
4051
))}
4152
</CardsWrapper>
42-
<Pagimargin={{top:'40px',bottom:'60px'}}/>
53+
54+
<Pagimargin={{top:'60px',bottom:'80px'}}>
55+
{/* <PagiOptionSwitcher
56+
activeKey={activeGalleryType}
57+
title="显示模式"
58+
items={GALLERY_TYPES}
59+
onChange={item => console.log(item.key)}
60+
/> */}
61+
</Pagi>
4362
</ContentWrapper>
4463
</InnerWrapper>
4564
</Wrapper>

‎src/containers/content/MeetupsContent/styles/card/index.js‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export const Wrapper = styled.div`
1010
padding: 20px 5px;
1111
border-bottom: 1px solid #054353;
1212
color:${theme('thread.articleDigest')};
13+
&:hover {
14+
background: #04303c;
15+
}
16+
transition: all 0.25s;
1317
`
1418
exportconstContentsWrapper=styled.div`
1519
${cs.flexColumn()};
@@ -24,12 +28,24 @@ export const Title = styled.div`
2428
color:${theme('thread.articleTitle')};
2529
font-size: 16px;
2630
margin-bottom: 10px;
31+
cursor: pointer;
32+
`
33+
exportconstBody=styled.div`
34+
${cs.flex()};
2735
`
2836
exportconstDesc=styled.div`
2937
font-size: 13px;
3038
color:${theme('thread.articleDigest')};
3139
opacity: 0.8;
3240
margin-bottom: 18px;
41+
cursor: pointer;
42+
`
43+
exportconstPreviewImg=styled(Img)`
44+
width: 80px;
45+
height: 50px;
46+
border-radius: 4px;
47+
display: block;
48+
margin-left: 10px;
3349
`
3450
exportconstBodyWrapper=styled.div`
3551
${cs.flex('align-center')}

‎src/containers/content/MeetupsContent/styles/date_selector/cell.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export const Wrapper = styled.div`
1212
padding-left: 3px;
1313
background:${({ active})=>(active ?'#003b4c' :'#04303c')};
1414
border-top-color:${({ active})=>(active ?'#3680AD' :'#004354')};
15+
@media (max-width: 1400px) {
16+
width:${({ isLeapMonth})=>(isLeapMonth ?'52px' :'56px')};
17+
}
1518
@media (max-width: 1255px) {
1619
width: 50px;
1720
}

‎src/containers/content/MeetupsContent/styles/date_selector/index.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export const Wrapper = styled.div`
77
${cs.flex()};
88
margin-left: 8px;
99
`
10-
1110
exportconstCellsWrapper=styled.div`
1211
${cs.flexColumn('align-center')};
1312
color:${theme('thread.articleDigest')};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp