File tree Expand file tree Collapse file tree 2 files changed +38
-36
lines changed Expand file tree Collapse file tree 2 files changed +38
-36
lines changed Original file line number Diff line number Diff line change @@ -33,27 +33,27 @@ const StoryPreview = ({ story }: StoryPreviewProps) => {
33
33
return (
34
34
< ErrorBoundary FallbackComponent = { ErrorFallback } >
35
35
< div className = "my-8 mr-2 flex flex-col bg-white dark:bg-dark-700 rounded-md" >
36
- < div >
37
- { data . thumbnail ? (
38
- < img className = "cover-image" src = { data . thumbnail } alt = "" / >
39
- ) : (
40
- < div className = "image-placeholder bg-gray-100 dark:bg-dark-500" > </ div >
41
- ) }
42
- </ div >
43
- < div className = "px-4 pb-4" >
44
- < div className = "flex flex-row justify-between" >
45
- < UserSnippet user = { data . createdBy } / >
46
- < GoKebabVertical className = "mt-4" / >
47
- </ div >
48
- < div className = "prose dark:text-gray-100" >
49
- < Link href = { `/story/ ${ data . id } ___ ${ data . urlSuffix } ` } >
50
- < a >
36
+ < Link href = { `/story/ ${ data . id } ___ ${ data . urlSuffix } ` } >
37
+ < a >
38
+ < div >
39
+ { data . thumbnail ? (
40
+ < img className = "cover-image" src = { data . thumbnail } alt = "" / >
41
+ ) : (
42
+ < div className = "image-placeholder bg-gray-100 dark:bg-dark-500" > </ div >
43
+ ) }
44
+ </ div >
45
+ < div className = "px-4 pb-4" >
46
+ < div className = "flex flex-row justify-between" >
47
+ < UserSnippet user = { data . createdBy } / >
48
+ < GoKebabVertical className = "mt-4" / >
49
+ </ div >
50
+ < div className = "prose dark:text-gray-100" >
51
51
< h3 className = "dark:text-gray-200" > { data . title } </ h3 >
52
- </ a >
53
- </ Link >
54
- < p className = "abstract-content" > { data . abstractContent } </ p >
55
- </ div >
56
- </ div >
52
+ < p className = "abstract-content" > { data . abstractContent } </ p >
53
+ </ div >
54
+ </ div >
55
+ </ a >
56
+ </ Link >
57
57
< StoryPreviewFooter story = { data } />
58
58
< style jsx >
59
59
{ `
Original file line number Diff line number Diff line change @@ -25,22 +25,24 @@ const UserSnippet = ({ user }: UserSnippetProps) => {
25
25
26
26
return (
27
27
< div className = "flex flex-col" >
28
- < div className = "flex min-h-32" >
29
- < img
30
- src = { data . avatar }
31
- alt = { `${ data . handle } 's avatar` }
32
- className = "w-16 h-16 rounded-full -mt-8 border-4 dark:border-dark-700 bg-white dark:bg-dark-500"
33
- />
34
- < div className = "flex flex-row mt-2" >
35
- < Link href = { `/@${ data . handle } ` } >
36
- < a className = " font-bold" > { `@${ data . handle } ` } </ a >
37
- </ Link >
38
- < span className = "bg-sky-400/20 text-sky-600 px-2 ml-2 mb-2 rounded-md text-sm font-bold leading-6" >
39
- { getCompactNumber ( data . reputation . value ) }
40
- </ span >
41
- </ div >
42
- </ div >
43
- < span className = " text-sm" > { data . bio } </ span >
28
+ < Link href = { `/@${ data . handle } ` } >
29
+ < a className = " font-bold" >
30
+ < div className = "flex min-h-32" >
31
+ < img
32
+ src = { data . avatar }
33
+ alt = { `${ data . handle } 's avatar` }
34
+ className = "w-16 h-16 rounded-full -mt-8 border-4 dark:border-dark-700 bg-white dark:bg-dark-500"
35
+ />
36
+ < div className = "flex flex-row mt-2" >
37
+ { `@${ data . handle } ` }
38
+ < span className = "bg-sky-400/20 text-sky-600 px-2 ml-2 mb-2 rounded-md text-sm font-bold leading-6" >
39
+ { getCompactNumber ( data . reputation . value ) }
40
+ </ span >
41
+ </ div >
42
+ </ div >
43
+ < span className = " text-sm" > { data . bio } </ span >
44
+ </ a >
45
+ </ Link >
44
46
</ div >
45
47
)
46
48
}
You can’t perform that action at this time.
0 commit comments