diff --git a/src/assets/icons/reset.svg b/src/assets/icons/reset.svg deleted file mode 100644 index 2d64903..0000000 --- a/src/assets/icons/reset.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/components/Editor.js b/src/components/Editor.js index a31f500..8deb28b 100644 --- a/src/components/Editor.js +++ b/src/components/Editor.js @@ -3,7 +3,6 @@ import CoverImage from "./CoverImage"; import ComponentToImg from "./ComponentToImg"; import Select from 'react-select'; import RandomTheme from './RandomTheme'; -import resetIcon from '../assets/icons/reset.svg' import { ImgProvider } from '../utils/ImgContext' import Header from "./Header"; import { Tab } from '@headlessui/react' diff --git a/src/components/Themes/BasicTheme.js b/src/components/Themes/BasicTheme.js index 30999f1..9e980a3 100644 --- a/src/components/Themes/BasicTheme.js +++ b/src/components/Themes/BasicTheme.js @@ -5,7 +5,7 @@ const BasicTheme = ({ config }) => { const { title, bgColor, pattern, author, icon, font, customIcon,platform } = config; return ( -
+
diff --git a/src/components/Themes/ModernTheme.js b/src/components/Themes/ModernTheme.js index edc1c83..07b098d 100644 --- a/src/components/Themes/ModernTheme.js +++ b/src/components/Themes/ModernTheme.js @@ -6,7 +6,7 @@ const ModernTheme = ({ config }) => { const { title, bgColor, pattern, author, icon, font, customIcon, platform } = config; return ( -
+
{ const { title, bgColor, pattern, author, icon, font, customIcon, platform } = config; return ( -
+
{ const [image, setImage] = useState() return ( -
+
{ - const { title, author, font, icon, customIcon, platform } = config; + const { title, author, font, icon, customIcon, platform,bgColor } = config; // const [image, setImage] = useState({}) @@ -18,7 +18,8 @@ const StylishTheme = ({ config }) => { .getPhotos({ query: searchText, page: 1, - per_page: 25 + per_page: 25, + orientation:'portrait' }) @@ -68,11 +69,11 @@ const StylishTheme = ({ config }) => {
-
-
+
@@ -98,12 +99,14 @@ const StylishTheme = ({ config }) => { {unsplashImage ? -
+
-
- preview - -
+
+ + + preview +
+