File tree Expand file tree Collapse file tree 9 files changed +15
-11
lines changed Expand file tree Collapse file tree 9 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ function MainView(props: { queryRef: PreloadedQuery<HomeQuery> }) {
55
55
let leftSidebar = < Login />
56
56
if ( data . viewer ) {
57
57
leftSidebar = (
58
- < Card >
58
+ < Card classes = "p-4" >
59
59
< UserDetails user = { data . viewer } />
60
60
</ Card >
61
61
)
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export function Issues(props: { queryRef: PreloadedQuery<IssuesQuery> }) {
63
63
< Layout
64
64
sidebarContentRight = { < > UserPage right sidebar</ > }
65
65
sidebarContentLeft = {
66
- < Card >
66
+ < Card classes = "p-4" >
67
67
< UserDetails user = { data . viewer } />
68
68
</ Card >
69
69
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export default function RootLayout({
6
6
children : React . ReactNode
7
7
} ) {
8
8
return (
9
- < html lang = "en" >
9
+ < html lang = "en" className = "dark" >
10
10
< head />
11
11
< body > { children } </ body >
12
12
</ html >
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ function User(props: { queryRef: PreloadedQuery<UserPageQuery> }) {
58
58
< Layout
59
59
sidebarContentRight = { < > UserPage right sidebar</ > }
60
60
sidebarContentLeft = {
61
- < Card >
61
+ < Card classes = "p-4" >
62
62
< UserDetails user = { data . user } />
63
63
</ Card >
64
64
}
Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ export default function Card({
9
9
} ) {
10
10
return (
11
11
< div
12
- className = { ` ${ classes || '' } p-4 bg-white dark:bg-dark-700 rounded-md` }
12
+ className = { ` ${
13
+ classes || ''
14
+ } rounded-lg shadow-lg hover:shadow-md bg-white dark:bg-dark-700`}
13
15
>
14
16
{ children }
15
17
</ div >
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const BadgeList = ({ user }: { user: BadgeList_user$key }) => {
31
31
}
32
32
33
33
return (
34
- < div className = "space-y-4" >
34
+ < div className = "flex flex-col space-y-4" >
35
35
{ data . badges . edges . map (
36
36
( badge ) => badge && < Badge key = { badge . node . id } badge = { badge . node } />
37
37
) }
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { GoKebabVertical } from '@react-icons/all-files/go/GoKebabVertical'
6
6
import Link from 'next/link'
7
7
import { ErrorBoundary } from 'react-error-boundary'
8
8
import ErrorFallback from '../ErrorFallback'
9
+ import Card from '../Card'
9
10
10
11
type StoryPreviewProps = {
11
12
story : StoryPreview_node$key
@@ -32,7 +33,7 @@ const StoryPreview = ({ story }: StoryPreviewProps) => {
32
33
33
34
return (
34
35
< ErrorBoundary FallbackComponent = { ErrorFallback } >
35
- < div className = "my-8 mr-2 flex flex-col bg-white dark:bg-dark-700 rounded-md " >
36
+ < Card classes = "my-8 mr-2 flex flex-col " >
36
37
< Link href = { `/story/${ data . id } ___${ data . urlSuffix } ` } >
37
38
< div >
38
39
{ data . thumbnail ? (
@@ -78,7 +79,7 @@ const StoryPreview = ({ story }: StoryPreviewProps) => {
78
79
}
79
80
` }
80
81
</ style >
81
- </ div >
82
+ </ Card >
82
83
</ ErrorBoundary >
83
84
)
84
85
}
Original file line number Diff line number Diff line change 1
1
import { graphql , useFragment } from 'react-relay'
2
2
import { Issue_node$key } from '__generated__/Issue_node.graphql'
3
+ import Card from '../Card'
3
4
4
5
export type IssueProps = {
5
6
issue : Issue_node$key
@@ -20,7 +21,7 @@ const Issue = ({ issue }: IssueProps) => {
20
21
issue
21
22
)
22
23
return (
23
- < div className = "w-96 flex flex-col p-6 rounded-lg shadow-lg hover:shadow-md bg-white dark:bg-dark-700 " >
24
+ < Card classes = "w-96 flex flex-col p-6" >
24
25
< a href = { data . url } target = "_blank" rel = "noopener noreferrer" >
25
26
< div className = "flex flex-row" >
26
27
< img
@@ -50,7 +51,7 @@ const Issue = ({ issue }: IssueProps) => {
50
51
< div className = "mt-2" >
51
52
< span className = "text-l dark:text-gray-300" > { data . title } </ span >
52
53
</ div >
53
- </ div >
54
+ </ Card >
54
55
)
55
56
}
56
57
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const HamburgerMenu = ({
9
9
isOpen,
10
10
setIsOpen,
11
11
} : HamburgerMenuProps ) => {
12
- const genericHamburgerLine = `h-1 w-6 my-0.5 rounded-full bg-black transition ease transform duration-300`
12
+ const genericHamburgerLine = `h-1 w-6 my-0.5 rounded-full bg-black dark:bg-white transition ease transform duration-300`
13
13
14
14
return (
15
15
< button
You can’t perform that action at this time.
0 commit comments