diff --git a/src/assets/icons/reset.svg b/src/assets/icons/reset.svg new file mode 100644 index 0000000..2d64903 --- /dev/null +++ b/src/assets/icons/reset.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/App.js b/src/components/App.js index 96d5512..317afde 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,13 +1,12 @@ import React from 'react'; -import ConfigCover from './ConfigCover'; -import Navbar from './Navbar'; +import Editor from './Editor'; + class App extends React.Component { render() { return (
- {/* */} - +
); } diff --git a/src/components/ConfigCover.css b/src/components/ConfigCover.css deleted file mode 100644 index b7df92f..0000000 --- a/src/components/ConfigCover.css +++ /dev/null @@ -1,82 +0,0 @@ -body { - background-color: #f2f2f2; -} - - - - - -details{ - font-size: 1rem; - box-shadow: 0 10px 15px -5px #f2f2f2; - width: 100%; - background: #ffffff; - border-radius: 5px; - position: relative; - max-width: 400px; - padding:5px; - border: 2px solid #f2f2f2; - margin:4px; - justify-content: center; - align-items: center; - - -} - - -.flex-card{ - display: flex; - flex-direction:row; - justify-content: center; - align-items: center; - -} - - -.blog-cover { - display: flex; - flex-direction: column; - align-items: center; - margin: 60px; - } -label{ - margin: 5px; -} - - - - - -.input-color{ -padding:1px; - width:40px; - height:40px; -} - -.font-size{ - padding:2px; - width:50px; -} - -.input-md{ - width:100px; -} - - -.reset-btn { - margin-top: 20px; - font-size: 18px; - padding:6px; - -} - -@media screen and (max-width: 600px) { - .main-container { - display: flex; - flex-direction: column; - } - .config-container{width:auto;} - .blog-cover{margin:0px;} - .card{margin:10px;} - -} diff --git a/src/components/CoverImage.css b/src/components/CoverImage.css index 7c6c732..d598dc3 100644 --- a/src/components/CoverImage.css +++ b/src/components/CoverImage.css @@ -62,23 +62,6 @@ h1 { height: auto; } -button { - background-color: #634f7d; - font-weight: 600; - color: #ffffff; - border: none; - border-radius: 4px; - padding: 10px; - width: 150px; - margin-top: 20px; - text-align: center; - box-shadow: 4px 4px #cccccc; - -} - -button:hover { - background-color: #54466b; -} @media screen and (max-width:600px) { .cover { diff --git a/src/components/ConfigCover.js b/src/components/Editor.js similarity index 93% rename from src/components/ConfigCover.js rename to src/components/Editor.js index 9d2ccd5..6b63629 100644 --- a/src/components/ConfigCover.js +++ b/src/components/Editor.js @@ -1,9 +1,10 @@ import React from "react"; -import "./ConfigCover.css"; import CoverImage from "./CoverImage"; import ComponentToImg from "./ComponentToImg"; import Select from 'react-select'; import RandomTheme from './RandomTheme'; +import resetIcon from '../assets/icons/reset.svg' + const defaultSettings = { title: "How I built my first project with react", @@ -22,7 +23,7 @@ const devIconsUrl = "https://raw.githubusercontent.com/devicons/devicon/master/d // { value: 'javascript', label: 'Javascript' }, // { value: 'python', label: 'Python' }, -class ConfigCover extends React.Component { +class Editor extends React.Component { state = defaultSettings; componentDidMount() { @@ -41,7 +42,7 @@ class ConfigCover extends React.Component { render() { return ( -
+
{/*

🛠 Creating cover images for your blogs is now super easy

*/} @@ -151,8 +152,6 @@ class ConfigCover extends React.Component { - - {/*
Download As
*/} + {/* + + Reset + */}
-
+
@@ -185,4 +186,4 @@ class ConfigCover extends React.Component { } } -export default ConfigCover; +export default Editor;