Skip to content

Commit

Permalink
extra details
Browse files Browse the repository at this point in the history
  • Loading branch information
RalphKemp committed Feb 5, 2019
1 parent 5a342e8 commit eb83096
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/components/Results.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import uuidv1 from "uuid/v1";
const MainResultsDiv = styled.div`
min-height: 50vh;
width: 100vw;
background-color: blue;
background-color: #001b5a;
color: white;
display: flex;
@media (min-width: 600px) {
Expand Down Expand Up @@ -40,12 +40,16 @@ const LadderStep = styled.div`
`;

const Blob = styled.div`
background-color: green;
padding: 10px;
margin-bottom: 10px;
background-color: #c2c537;
color: black;
`;

const InputtedWord = styled(Blob)`
background-color: red;
background-color: green;
color: white;
font-size: 25px;
`;

class Results extends Component {
Expand All @@ -67,17 +71,12 @@ class Results extends Component {
<LadderStep key={x}>
{x.map(y => (
<div key={uuidv1()}>
{!Array.isArray(y) ? (
<Blob>{y}</Blob>
{Array.isArray(y) ? (
y.map(thing => {
return <Blob>{thing}</Blob>;
})
) : (
<Blob
style={{
backgroundColor: "green",
marginBottom: "20px"
}}
>
{y}
</Blob>
<Blob>{y}</Blob>
)}
</div>
))}
Expand Down

0 comments on commit eb83096

Please sign in to comment.