+
+
+
-
- {!noReply &&
-
setReply(!reply)}
- >
- {reply ? 'cancel' : 'reply'}
-
}
- {reply &&
setReply(replyOpen || false)} cacheId={cacheId} />}
- {children}
-
- {item.comments && !noComments
- ? item.comments.map((item) => (
-
- ))
- : null}
+
+ {item.text}
- >
+
+ {!noReply &&
+
setReply(!reply)}
+ >
+ {reply ? 'cancel' : 'reply'}
+
}
+ {reply &&
+
+ setReply(replyOpen || false)} cacheId={cacheId} />
+
}
+ {children}
+
+ {item.comments && !noComments
+ ? item.comments.map((item) => (
+
+ ))
+ : null}
+
+
+
)
}
diff --git a/components/comment.module.css b/components/comment.module.css
index bb95a262..4a560d8f 100644
--- a/components/comment.module.css
+++ b/components/comment.module.css
@@ -3,7 +3,7 @@
}
.upvote {
- margin-top: .3rem;
+ margin-top: 9px;
}
.text {
@@ -13,19 +13,17 @@
.reply {
font-weight: bold;
cursor: pointer;
- text-decoration: underline;
+ padding-bottom: .5rem;
}
.children {
- margin-top: .4rem;
+ margin-top: .25rem;
}
.comments {
- margin-left: 16px;
- margin-top: .5rem;
+ margin-left: -1rem;
}
-
.skeleton .hunk {
width: 100%;
}
@@ -33,4 +31,22 @@
.skeleton .text {
height: 100px;
border-radius: .4rem;
+}
+
+.comment {
+ background-color: rgba(0, 0, 0, 0.03);
+ border-radius: .4rem;
+ padding-top: .5rem;
+ padding-left: .2rem;
+}
+
+.comment:not(:last-child) {
+ border-bottom-left-radius: 0;
+ border-bottom-right-radius: 0;
+}
+
+.comment:not(:first-child) {
+ padding-top: .25rem;
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
}
\ No newline at end of file
diff --git a/components/comments.js b/components/comments.js
index b1b82e9c..0d339f26 100644
--- a/components/comments.js
+++ b/components/comments.js
@@ -3,9 +3,7 @@ import Comment, { CommentSkeleton } from './comment'
export default function Comments ({ comments, ...props }) {
return comments.map(item => (
-
-
-
+
))
}
@@ -13,9 +11,7 @@ export function CommentsSkeleton () {
const comments = new Array(3).fill(null)
return comments.map((_, i) => (
-
-
-
+
))
}
diff --git a/components/header.js b/components/header.js
index b40130d4..4892e42c 100644
--- a/components/header.js
+++ b/components/header.js
@@ -5,6 +5,7 @@ import Link from 'next/link'
import styles from './header.module.css'
import { useRouter } from 'next/router'
import { Container } from 'react-bootstrap'
+import Price from './price'
export default function Header () {
const [session, loading] = useSession()
@@ -54,6 +55,9 @@ export default function Header () {
jobs
+
+
+
diff --git a/components/item.js b/components/item.js
index d9d59b47..5b4e03b6 100644
--- a/components/item.js
+++ b/components/item.js
@@ -57,7 +57,7 @@ export function ItemSkeleton ({ rank, children }) {
{rank}