-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Johnny Choudhury-Lucas
committed
Dec 23, 2017
1 parent
d7094c4
commit 0d04222
Showing
7 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react' | ||
// Third Party Components | ||
import Modal from 'react-modal' | ||
|
||
const OptionModal = (props) => ( | ||
<Modal | ||
isOpen={!!props.selectedOption} | ||
contentLabel="Selected Option" | ||
|
||
> | ||
<h3>Selected Option</h3> | ||
<p>{props.selectedOption}</p> | ||
</Modal> | ||
) | ||
|
||
export default OptionModal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.add-option { | ||
display: flex; | ||
padding: $m-size; | ||
} | ||
.add-option__input { | ||
color: $off-white; | ||
background: $dark-blue; | ||
border: none; | ||
border-bottom: .3rem solid darken($color: $dark-blue, $amount: 10); | ||
flex-grow: 1; | ||
margin-right: $s-size; | ||
padding: $s-size; | ||
} | ||
|
||
.add-option-error { | ||
color: $off-white; | ||
font-style: italic; | ||
padding: 0 $m-size; | ||
margin-top: $m-size; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.option { | ||
border-bottom: 1px solid lighten($color: $light-blue, $amount: 10); | ||
display: flex; | ||
justify-content: space-between; | ||
padding: $l-size $m-size; | ||
} | ||
|
||
.option__text { | ||
color: white; | ||
font-weight: 500; | ||
font-size: 2rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Setup | ||
@import './base/settings'; | ||
@import './base/base'; | ||
// Partials | ||
@import './components/add-option'; | ||
@import './components/button'; | ||
@import './components/container'; | ||
@import './components/header'; | ||
@import './components/button'; | ||
@import './components/option'; | ||
@import './components/widget'; |