- {question.user ? (
-
+
+ {question.user ? (
+
+
+
+ ) :
+ 'User deleted profile :('
+ }
+
+
+
+
+ {question.likes.length}
+
+
+ {question.answers.length}
+
)
})}
@@ -46,53 +55,24 @@ class AllQuestions extends Component {
const Card = styled.div`
display: flex;
- padding: 12px 8px;
- border-bottom: 1px solid ${lighterblack};
- color: ${black};
-
- .likes {
- padding-right: 30px;
+
+ .card {
+ &__heading {
+ margin-right: auto;
+ }
- &_value {
- text-align: center;
+ &__user {
+
}
- }
- .summary {
- flex: 1 auto;
- width: auto;
- float: none;
- margin: 0;
- overflow: hidden;
+ &__rating {
- h3 {
- font-weight: 400;
- margin: 0 0 .35em 0;
- line-height: 1.3;
+ &-likes {
- a {
- text-decoration: none;
- color: ${black};
}
- a:hover {
- color: ${primary}
- }
- }
+ &-answers {
- .started {
- width: auto;
- line-height: inherit;
- padding-top: 4px;
- float: right;
-
- a {
- text-decoration: none;
- color: ${primary};
-
- &:hover {
- color: ${darken(0.2, primary)};
- }
}
}
}