diff --git a/package-lock.json b/package-lock.json index 75c10c2..5cbc6bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,7 @@ "web-vitals": "^2.1.4" }, "devDependencies": { + "@tailwindcss/forms": "^0.5.0", "autoprefixer": "^10.4.4", "postcss": "^8.4.12", "tailwindcss": "^3.0.23" @@ -3204,6 +3205,18 @@ "url": "https://github.com/sponsors/gregberge" } }, + "node_modules/@tailwindcss/forms": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.0.tgz", + "integrity": "sha512-KzWugryEBFkmoaYcBE18rs6gthWCFHHO7cAZm2/hv3hwD67AzwP7udSCa22E7R1+CEJL/FfhYsJWrc0b1aeSzw==", + "dev": true, + "dependencies": { + "mini-svg-data-uri": "^1.2.3" + }, + "peerDependencies": { + "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1" + } + }, "node_modules/@testing-library/dom": { "version": "8.12.0", "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.12.0.tgz", @@ -11162,6 +11175,15 @@ "url": "https://opencollective.com/webpack" } }, + "node_modules/mini-svg-data-uri": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz", + "integrity": "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==", + "dev": true, + "bin": { + "mini-svg-data-uri": "cli.js" + } + }, "node_modules/minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", @@ -18374,6 +18396,15 @@ "loader-utils": "^2.0.0" } }, + "@tailwindcss/forms": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.0.tgz", + "integrity": "sha512-KzWugryEBFkmoaYcBE18rs6gthWCFHHO7cAZm2/hv3hwD67AzwP7udSCa22E7R1+CEJL/FfhYsJWrc0b1aeSzw==", + "dev": true, + "requires": { + "mini-svg-data-uri": "^1.2.3" + } + }, "@testing-library/dom": { "version": "8.12.0", "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.12.0.tgz", @@ -24206,6 +24237,12 @@ } } }, + "mini-svg-data-uri": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz", + "integrity": "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==", + "dev": true + }, "minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", diff --git a/package.json b/package.json index d9ef06c..f86017b 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ ] }, "devDependencies": { + "@tailwindcss/forms": "^0.5.0", "autoprefixer": "^10.4.4", "postcss": "^8.4.12", "tailwindcss": "^3.0.23" diff --git a/src/pages/Dashboard.jsx b/src/pages/Dashboard.jsx index 92d1766..7768770 100644 --- a/src/pages/Dashboard.jsx +++ b/src/pages/Dashboard.jsx @@ -1,6 +1,8 @@ +import React, { useState } from "react" import Navbar from "../components/Navbar"; const UserDashboard = () => { + const [showModal, setShowModal] = useState(false); return (
@@ -44,6 +46,7 @@ const UserDashboard = () => { setShowModal(true)} > Create Feed @@ -84,6 +87,7 @@ const UserDashboard = () => { + 4
@@ -119,6 +123,7 @@ const UserDashboard = () => { + 4 @@ -162,6 +167,95 @@ const UserDashboard = () => { + + + {/* feed creation modal section starts */} + + <> + {showModal ? ( + <> +
+
+
+
+
Create new feed
+ +
+
+
+ + {/* feed title and Thematic areas */} +
+
+ + +
+ +
+ + +
+
+ + {/* feed Description */} +
+ + +
+ + {/* feed medias */} +
+
+ + +
+ + + +
+
+
+
+ + +
+
+
+
+ + ) : null} + + + {/* feed creation modal section ends */} ); }; diff --git a/tailwind.config.js b/tailwind.config.js index a8f2938..7f938c0 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -14,5 +14,7 @@ module.exports = { } }, }, - plugins: [], + plugins: [ + require('@tailwindcss/forms'), + ], }