diff --git a/src/components/Editor.js b/src/components/Editor.js index ddb0058..00024eb 100644 --- a/src/components/Editor.js +++ b/src/components/Editor.js @@ -35,12 +35,6 @@ const defaultSettings = { }; const devIconsUrl = "https://raw.githubusercontent.com/devicons/devicon/master/devicon.json" -// const devIconOptions = [ -// { value: 'None', label: 'None' }, -// { value: 'javascript', label: 'Javascript' }, -// { value: 'python', label: 'Python' }, -// ] - class Editor extends React.Component { @@ -77,30 +71,21 @@ class Editor extends React.Component { render() { return ( -
+
-
+
-
+
- - - - - - - - - - - +
+
Blog Title @@ -227,56 +212,11 @@ class Editor extends React.Component { Reset All - +
- -
-

Themes

-
- - -
-
- -
- - basic theme this.setState({ theme: "background" })} - className=" cursor-pointer border border-gray-100 hover:border-gray-200 hover:scale-105 duration-300 m-2" - /> - basic theme this.setState({ theme: "basic" })} - className=" cursor-pointer border-gray-100 hover:scale-105 duration-300 hover:border-gray-200 border m-2 " - /> - basic theme this.setState({ theme: "modern" })} - className="cursor-pointer border-gray-100 hover:scale-105 hover:border-gray-200 duration-300 border m-2 " - /> - basic theme this.setState({ theme: "stylish" })} - className=" cursor-pointer border border-gray-100 hover:border-gray-200 hover:scale-105 duration-300 m-2" - /> - - basic theme this.setState({ theme: "outline" })} - className=" cursor-pointer border border-gray-100 hover:border-gray-200 hover:scale-105 duration-300 m-2" - /> - - basic theme this.setState({ theme: "preview" })} - className=" cursor-pointer border border-gray-100 hover:border-gray-200 hover:scale-105 duration-300 m-2" - /> - basic theme this.setState({ theme: "mobile" })} - className=" cursor-pointer border border-gray-100 hover:border-gray-200 hover:scale-105 duration-300 m-2" - /> -
- - -
- +
@@ -292,17 +232,68 @@ class Editor extends React.Component {
*/} - -
-
+ {/* cover image preview */} + +
+ {/* themes section */} + +
+
+ +
+

Themes

+
+ + +
+
+ +
+ + basic theme this.setState({ theme: "background" })} + className=" cursor-pointer border border-gray-100 hover:border-gray-200 hover:scale-105 duration-300 " + /> + basic theme this.setState({ theme: "basic" })} + className=" cursor-pointer border-gray-100 hover:scale-105 duration-300 hover:border-gray-200 border" + /> + basic theme this.setState({ theme: "modern" })} + className="cursor-pointer border-gray-100 hover:scale-105 hover:border-gray-200 duration-300 border " + /> + basic theme this.setState({ theme: "stylish" })} + className=" cursor-pointer border border-gray-100 hover:border-gray-200 hover:scale-105 duration-300" + /> + + basic theme this.setState({ theme: "outline" })} + className=" cursor-pointer border border-gray-100 hover:border-gray-200 hover:scale-105 duration-300" + /> + + basic theme this.setState({ theme: "preview" })} + className=" cursor-pointer border border-gray-100 hover:border-gray-200 hover:scale-105 duration-300" + /> + basic theme this.setState({ theme: "mobile" })} + className=" cursor-pointer border border-gray-100 hover:border-gray-200 hover:scale-105 duration-300" + /> +
+ + +
+
+
diff --git a/src/components/RandomTheme.css b/src/components/RandomTheme.css index c8172db..f49d8f9 100644 --- a/src/components/RandomTheme.css +++ b/src/components/RandomTheme.css @@ -1,12 +1,12 @@ .shuffle-btn:active{ - transform: rotate(360deg); - transition: all 0.2s ease-out; + transform: rotate(720deg); + transition: all 0.6s ease-out; } .bi-shuffle{ - height: 30px; - width: 30px; + height: 20px; + width: 20px; opacity: 0.6; } diff --git a/src/components/RandomTheme.js b/src/components/RandomTheme.js index b4e1b65..bb74639 100644 --- a/src/components/RandomTheme.js +++ b/src/components/RandomTheme.js @@ -108,8 +108,8 @@ class RandomTheme extends React.Component { render() { return (
-
- +
+