diff --git a/assets/images/themes/beige.png b/assets/images/themes/beige.png new file mode 100644 index 000000000..b7d998f8d Binary files /dev/null and b/assets/images/themes/beige.png differ diff --git a/assets/images/themes/black.png b/assets/images/themes/black.png new file mode 100644 index 000000000..7c3d8b801 Binary files /dev/null and b/assets/images/themes/black.png differ diff --git a/assets/images/themes/cream.png b/assets/images/themes/cream.png new file mode 100644 index 000000000..9c0fd2fee Binary files /dev/null and b/assets/images/themes/cream.png differ diff --git a/assets/images/themes/dark_grey.png b/assets/images/themes/dark_grey.png new file mode 100644 index 000000000..644517d6f Binary files /dev/null and b/assets/images/themes/dark_grey.png differ diff --git a/assets/images/themes/dark_slate_blue.png b/assets/images/themes/dark_slate_blue.png new file mode 100644 index 000000000..b68a317e9 Binary files /dev/null and b/assets/images/themes/dark_slate_blue.png differ diff --git a/assets/images/themes/default.png b/assets/images/themes/default.png new file mode 100644 index 000000000..af2bc9565 Binary files /dev/null and b/assets/images/themes/default.png differ diff --git a/assets/images/themes/high_contrast1.png b/assets/images/themes/high_contrast1.png new file mode 100644 index 000000000..33036c7b1 Binary files /dev/null and b/assets/images/themes/high_contrast1.png differ diff --git a/assets/images/themes/high_contrast2.png b/assets/images/themes/high_contrast2.png new file mode 100644 index 000000000..18737865f Binary files /dev/null and b/assets/images/themes/high_contrast2.png differ diff --git a/assets/images/themes/odi_madrid.png b/assets/images/themes/odi_madrid.png new file mode 100644 index 000000000..b196e310c Binary files /dev/null and b/assets/images/themes/odi_madrid.png differ diff --git a/assets/images/themes/oeg.png b/assets/images/themes/oeg.png new file mode 100644 index 000000000..1d79f9f67 Binary files /dev/null and b/assets/images/themes/oeg.png differ diff --git a/assets/images/themes/open_university.png b/assets/images/themes/open_university.png new file mode 100644 index 000000000..054670385 Binary files /dev/null and b/assets/images/themes/open_university.png differ diff --git a/assets/images/themes/pale_blue.png b/assets/images/themes/pale_blue.png new file mode 100644 index 000000000..2a895fdd0 Binary files /dev/null and b/assets/images/themes/pale_blue.png differ diff --git a/assets/images/themes/simple.png b/assets/images/themes/simple.png new file mode 100644 index 000000000..7f2602ed1 Binary files /dev/null and b/assets/images/themes/simple.png differ diff --git a/components/AddDeck/AddDeck.js b/components/AddDeck/AddDeck.js index fa35071d4..b5a27ca3f 100644 --- a/components/AddDeck/AddDeck.js +++ b/components/AddDeck/AddDeck.js @@ -20,6 +20,7 @@ import ImportModal from '../Import/ImportModal'; import LanguageDropdown from '../common/LanguageDropdown'; import {FormattedMessage, defineMessages} from 'react-intl'; import classNames from 'classnames'; +import ThemePreviewCarousel from './ThemePreviewCarousel'; //TODO: update link to terms of use; @@ -76,7 +77,7 @@ class AddDeck extends React.Component { const title = this.refs.input_title.value; const language = this.refs.div_languages.getSelected(); const description = this.refs.textarea_description.value; - const theme = this.refs.select_themes.value; + const theme = this.theme; // const license = this.refs.select_licenses.value; const license = 'CC BY-SA';//default license //const tags = this.refs.input_tags.value.split(', '); @@ -406,6 +407,10 @@ class AddDeck extends React.Component { } } + onThemeModalChanged(themeValue) { + this.theme = themeValue; + } + render() { //redirect to new deck if created if (this.props.AddDeckStore.redirectID !== 0) { @@ -464,36 +469,6 @@ class AddDeck extends React.Component { if (filename.length > 40) filename = filename.substr(0, 40) + ' ...'; - /* let themeOptions = ; - */ - let themeOptions = ; // let licenseOptions =