-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpaper.js
More file actions
63 lines (62 loc) · 1.29 KB
/
paper.js
File metadata and controls
63 lines (62 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import {
AccordionItem,
AccordionButton,
AccordionPanel,
AccordionIcon,
Box,
Text,
Link,
Stack,
} from '@chakra-ui/react'
export const Paper = ({
title,
published_info,
authors,
doi,
abstract,
number,
}) => {
return (
<AccordionItem
my={4}
borderWidth={1}
borderColor='gray.200'
borderRadius='md'
overflow='hidden'
>
<h2>
<AccordionButton>
<AccordionIcon mx={8} />
<Stack direction='column'>
<Box as='b' textAlign='left'>
{title}
</Box>
<Box textAlign='left'>{authors}</Box>
<Box as='i' textAlign='left'>
{published_info}
</Box>
<Link
textAlign='left'
href={doi}
color='blue.500'
isExternal
onClick={(e) => {
e.stopPropagation()
}}
>
View paper
</Link>
{number && (
<Box as='i' color='gray.500' textAlign='left'>
Article #{number}
</Box>
)}
</Stack>
</AccordionButton>
</h2>
<AccordionPanel pb={4}>
<Text>{abstract}</Text>
</AccordionPanel>
</AccordionItem>
)
}