-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
155784a
commit e444549
Showing
8 changed files
with
123 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,51 @@ | ||
.App { | ||
text-align: center; | ||
height: 300px; | ||
} | ||
|
||
.App-logo { | ||
height: 40vmin; | ||
pointer-events: none; | ||
.b-list-item { | ||
padding: 0.5em !important; | ||
display: flex !important; | ||
} | ||
|
||
@media (prefers-reduced-motion: no-preference) { | ||
.App-logo { | ||
animation: App-logo-spin infinite 20s linear; | ||
} | ||
.b-list-item-header { | ||
font-family: inherit !important; | ||
} | ||
|
||
.App-header { | ||
background-color: #282c34; | ||
min-height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: calc(10px + 2vmin); | ||
color: white; | ||
.b-list-item-content { | ||
display: flex !important; | ||
flex-direction: column !important; | ||
justify-content: space-around; | ||
} | ||
|
||
.App-link { | ||
color: #61dafb; | ||
.thumb-container { | ||
width: 74px; | ||
height: 74px; | ||
position: relative; | ||
vertical-align: top; | ||
|
||
margin-right: 0.5em; | ||
} | ||
|
||
.thumb { | ||
width: 74px; | ||
height: 74px; | ||
aspect-ratio: auto 74 / 74; | ||
|
||
border-radius: 36%; | ||
background-size: 74px 74px; | ||
} | ||
|
||
@keyframes App-logo-spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
/* radius를 비선형적으로 깎는 방법 (안드로이드 앱 아이콘 같이) */ | ||
/* bg가 감싸지는 원리는 모르겠음 */ | ||
/* 출처: 네이버 카페 모바일 페이지 CSS */ | ||
.thumb-container::after { | ||
background-image: url(https://ca-fe.pstatic.net/web-mobile/static/img/ios-cover-mask-47.svg?e93387ec0d01d47c3139b99acbd95cf3https://ca-fe.pstatic.net/web-mobile/static/img/io…over-mask-47.svg?e93387ec0d01d47c3139b99acbd95cf3); | ||
opacity: 100%; | ||
background-size: 74px 74px; | ||
content: ''; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import { List } from 'semantic-ui-react'; | ||
|
||
const WantedList = ({ list }) => { | ||
return ( | ||
<List divided relaxed> | ||
{list.map(({ id, thumbnailImage, authorName, messageBody, beginAt }) => { | ||
return ( | ||
<List.Item className="b-list-item" key={id}> | ||
<div className="thumb-container"> | ||
<img src={thumbnailImage} className="thumb" alt="thumbnail" /> | ||
</div> | ||
<List.Content className="b-list-item-content"> | ||
<List.Header className="b-list-item-header"> | ||
{authorName} | ||
</List.Header> | ||
<div>{messageBody}</div> | ||
<List.Description>{beginAt}</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
); | ||
})} | ||
</List> | ||
); | ||
}; | ||
|
||
export default WantedList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters