diff --git a/src/components/ComponentToImg.js b/src/components/ComponentToImg.js index 38bce69..faa7b9a 100644 --- a/src/components/ComponentToImg.js +++ b/src/components/ComponentToImg.js @@ -1,4 +1,4 @@ -import React,{useEffect} from "react"; +import React from "react"; import { exportComponentAsPNG } from "react-component-export-image"; import "./CoverImage.css"; diff --git a/src/components/Editor.js b/src/components/Editor.js index 8173493..09f83c1 100644 --- a/src/components/Editor.js +++ b/src/components/Editor.js @@ -7,7 +7,7 @@ import RandomTheme from './RandomTheme'; const defaultSettings = { title: "How I built my first project with react", - bgColor: "#dcd6f7", + bgColor: "#fee856", pattern: "", download: "PNG", author: 'Rutik Wankhade', @@ -115,6 +115,12 @@ class Editor extends React.Component { + + + + + +
@@ -242,10 +248,10 @@ class Editor extends React.Component {
-

Coverview

+

Coverview

+ -
star diff --git a/src/components/Themes/BasicTheme.js b/src/components/Themes/BasicTheme.js index 13d5b0b..2663aa6 100644 --- a/src/components/Themes/BasicTheme.js +++ b/src/components/Themes/BasicTheme.js @@ -14,7 +14,7 @@ const BasicTheme = ({ config }) => {
-

{title}

+

{title}

@@ -25,8 +25,8 @@ const BasicTheme = ({ config }) => { img
: -
- +
+
} diff --git a/src/components/Themes/ModernTheme.js b/src/components/Themes/ModernTheme.js index 9eaf15b..d8a518b 100644 --- a/src/components/Themes/ModernTheme.js +++ b/src/components/Themes/ModernTheme.js @@ -26,7 +26,7 @@ const ModernTheme = ({ config }) => {
-

{title}

+

{title}

{author}

diff --git a/src/components/Themes/OutlineTheme.js b/src/components/Themes/OutlineTheme.js index 4573d39..52e54b4 100644 --- a/src/components/Themes/OutlineTheme.js +++ b/src/components/Themes/OutlineTheme.js @@ -11,25 +11,25 @@ const OutlineTheme = ({ config }) => { > -
+
-

{title}

+

{title}

-
+
{ customIcon ?
img
: -
- +
+
}

{author}

diff --git a/src/index.css b/src/index.css index bd6213e..d784381 100644 --- a/src/index.css +++ b/src/index.css @@ -1,3 +1,9 @@ @tailwind base; @tailwind components; -@tailwind utilities; \ No newline at end of file +@tailwind utilities; + +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap'); + +@import url('https://fonts.googleapis.com/css2?family=Anek+Latin:wght@400;500;600;700&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800&display=swap'); \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index 1a2e5cc..434b45e 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,9 +1,20 @@ module.exports = { - content: [ + content: [ "./src/**/*.{js,jsx,ts,tsx}", ], theme: { - extend: {}, + extend: { + fontFamily: { + Inter: ['Inter', 'sans-serif'], + Poppins: ['Poppins', 'sans-serif'], + Anek: ['Anek Latin', 'sans-serif'], + Nunito: ['Nunito', 'sans-serif'] + + + + } + }, }, plugins: [], + }