From d53ad7ea389105edeee73caaf4fd0b1aeb2bbcab Mon Sep 17 00:00:00 2001
From: SanjamSinghKalsi <80076219+SanjamSinghKalsi@users.noreply.github.com>
Date: Wed, 9 Jun 2021 20:49:07 +0530
Subject: [PATCH 09/84] Update LandingPage.css
---
src/components/LandingPage/LandingPage.css | 21 ++-------------------
1 file changed, 2 insertions(+), 19 deletions(-)
diff --git a/src/components/LandingPage/LandingPage.css b/src/components/LandingPage/LandingPage.css
index a167b18..d1a9f65 100644
--- a/src/components/LandingPage/LandingPage.css
+++ b/src/components/LandingPage/LandingPage.css
@@ -1,26 +1,9 @@
-/* * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
-} */
+
body {
width: 100%;
height: 100%;
- /* min-height: 100vh; */
- /* position: relative;
- height: auto;
- top: 0;
- width: 100%; */
- /* max-height: 120px;
- height: 100px; */
- /* overflow-x: hidden; */
-
- /* position: relative;
- width: 1920px;
- height: 5041px;
-
- background: #ffffff; */
+
}
.header {
position: absolute;
From 86caea2d6a024f6c0c451caffe61f730238a74de Mon Sep 17 00:00:00 2001
From: SanjamSinghKalsi <80076219+SanjamSinghKalsi@users.noreply.github.com>
Date: Thu, 10 Jun 2021 18:07:21 +0530
Subject: [PATCH 10/84] Create SurveyNew.js
This file will get executed when we will click on the Create survey button on our dashboard.
Inside we can render many forms so we will return the SurveyForm component inside it.
---
src/components/surveys/SurveyNew.js | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 src/components/surveys/SurveyNew.js
diff --git a/src/components/surveys/SurveyNew.js b/src/components/surveys/SurveyNew.js
new file mode 100644
index 0000000..f36204c
--- /dev/null
+++ b/src/components/surveys/SurveyNew.js
@@ -0,0 +1,15 @@
+//Survey new shows us SurveyForm and SurveyFormReview
+import React, { Component } from "react";
+
+import SurveyForm from "./SurveyForm";
+
+class SurveyNew extends Component {
+ render() {
+ return (
+
+
+
+ );
+ }
+}
+export default SurveyNew;
From c4b2c6b524834167db650d7528bc91d94853d403 Mon Sep 17 00:00:00 2001
From: SanjamSinghKalsi <80076219+SanjamSinghKalsi@users.noreply.github.com>
Date: Thu, 10 Jun 2021 18:08:26 +0530
Subject: [PATCH 11/84] Delete SurveyNew.js
This file was added to the folder called surveys inside the components folder.
---
src/components/SurveyNew.js | 2 --
1 file changed, 2 deletions(-)
delete mode 100644 src/components/SurveyNew.js
diff --git a/src/components/SurveyNew.js b/src/components/SurveyNew.js
deleted file mode 100644
index 4615935..0000000
--- a/src/components/SurveyNew.js
+++ /dev/null
@@ -1,2 +0,0 @@
-const SurveyNew = () => {};
-export default SurveyNew;
From ab3f458a6d2e0c0b85f1946e2a2d89b9b9cc974d Mon Sep 17 00:00:00 2001
From: SanjamSinghKalsi <80076219+SanjamSinghKalsi@users.noreply.github.com>
Date: Thu, 10 Jun 2021 18:18:24 +0530
Subject: [PATCH 12/84] Create SurveyForm.js
---
src/components/surveys/SurveyForm.js | 51 ++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
create mode 100644 src/components/surveys/SurveyForm.js
diff --git a/src/components/surveys/SurveyForm.js b/src/components/surveys/SurveyForm.js
new file mode 100644
index 0000000..8d7262b
--- /dev/null
+++ b/src/components/surveys/SurveyForm.js
@@ -0,0 +1,51 @@
+//it shows a form for a user to add input
+import React, { Component } from "react";
+import { reduxForm, Field } from "redux-form";
+import SurveyField from "./SurveyField";
+class SurveyForm extends Component {
+ renderFields() {
+ return (
+
+
+
+
+
+
+ );
+ }
+ render() {
+ return (
+
+
+
+ );
+ }
+}
+export default reduxForm({
+ form: "surveyForm",
+})(SurveyForm);
From 2444c6953b1a93956586328879fa9c40c03482a4 Mon Sep 17 00:00:00 2001
From: SanjamSinghKalsi <80076219+SanjamSinghKalsi@users.noreply.github.com>
Date: Thu, 10 Jun 2021 18:19:35 +0530
Subject: [PATCH 13/84] Create SurveyField.js
---
src/components/surveys/SurveyField.js | 10 ++++++++++
1 file changed, 10 insertions(+)
create mode 100644 src/components/surveys/SurveyField.js
diff --git a/src/components/surveys/SurveyField.js b/src/components/surveys/SurveyField.js
new file mode 100644
index 0000000..9947379
--- /dev/null
+++ b/src/components/surveys/SurveyField.js
@@ -0,0 +1,10 @@
+//this file will contain the logic to render a single label and text input
+import React from "react";
+export default ({ input, label }) => {
+ return (
+
+ {label}
+
+
+ );
+};
From aef4a59d21527026672af878a21bc355baa96016 Mon Sep 17 00:00:00 2001
From: SanjamSinghKalsi <80076219+SanjamSinghKalsi@users.noreply.github.com>
Date: Thu, 10 Jun 2021 18:20:39 +0530
Subject: [PATCH 14/84] Update Dashboard.js
Basic setup of Dashboard, will get updated more.
---
src/components/Dashboard.js | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/src/components/Dashboard.js b/src/components/Dashboard.js
index c01e2b5..9bdc86c 100644
--- a/src/components/Dashboard.js
+++ b/src/components/Dashboard.js
@@ -1,5 +1,26 @@
+import React from "react";
+import logo from "./LandingPage/images/favicon.png";
+import "./Dashboard.css";
+import { Link } from "react-router-dom";
+
const DashBoard = () => {
- return
Hi this is DashBoard
;
+ return (
+ <>
+
+
+
Create a Survey
+
+
Dashboard
+
Logout
+
+
+
Create a Survey
+
About Us
+
Contact Us
+
Pricing Us
+
Terms of Use
+ >
+ );
};
export default DashBoard;
From d2c8ef6de244fa8855e300c1025b902d43a179b1 Mon Sep 17 00:00:00 2001
From: SanjamSinghKalsi <80076219+SanjamSinghKalsi@users.noreply.github.com>
Date: Thu, 10 Jun 2021 18:21:54 +0530
Subject: [PATCH 15/84] Create Dashboard.css
---
src/components/Dashboard.css | 144 +++++++++++++++++++++++++++++++++++
1 file changed, 144 insertions(+)
create mode 100644 src/components/Dashboard.css
diff --git a/src/components/Dashboard.css b/src/components/Dashboard.css
new file mode 100644
index 0000000..26b82ec
--- /dev/null
+++ b/src/components/Dashboard.css
@@ -0,0 +1,144 @@
+.create-survey {
+ position: absolute;
+ width: 237px;
+ height: 76px;
+ left: 1149px;
+ top: 53px;
+ font-size: 22px;
+ background: #3362a8;
+ border: 1px solid #3362a8;
+ box-sizing: border-box;
+ border-radius: 5px;
+ color: white;
+}
+
+.head-logo {
+ position: absolute;
+ width: 215px;
+ height: 142px;
+ left: 140px;
+ top: 20px;
+}
+
+.dashboard-btn {
+ position: absolute;
+ width: 237px;
+ height: 76px;
+ left: 1426px;
+ top: 53px;
+
+ background: #ffffff;
+ border: 1px solid #3362a8;
+ box-sizing: border-box;
+ border-radius: 5px;
+ color: #3362a8;
+ font-size: 22px;
+}
+.logout {
+ position: absolute;
+ width: 77px;
+ height: 30px;
+ left: 1703px;
+ top: 76px;
+
+ font-family: Open Sans;
+ font-style: normal;
+ font-weight: bold;
+ font-size: 22px;
+ line-height: 30px;
+ color: #3362a8;
+}
+
+.footer {
+ position: absolute;
+ width: 1920px;
+ height: 243px;
+ left: 0px;
+ top: 1347px;
+
+ background: #f1f7ff;
+}
+
+.footer-logo {
+ position: absolute;
+ width: 215px;
+ height: 142px;
+ left: 140px;
+ top: 1398px;
+}
+
+.about-us {
+ position: absolute;
+ width: 101px;
+ height: 30px;
+ left: 1255px;
+ top: 1454px;
+
+ font-family: Open Sans;
+ font-style: normal;
+ font-weight: bold;
+ font-size: 22px;
+ line-height: 30px;
+ color: #3362a8;
+}
+
+.terms {
+ position: absolute;
+ width: 141px;
+ height: 30px;
+ left: 1639px;
+ top: 1454px;
+
+ font-family: Open Sans;
+ font-style: normal;
+ font-weight: bold;
+ font-size: 22px;
+ line-height: 30px;
+ color: #3362a8;
+}
+
+.pricing {
+ position: absolute;
+ width: 76px;
+ height: 30px;
+ left: 1533px;
+ top: 1454px;
+
+ font-family: Open Sans;
+ font-style: normal;
+ font-weight: bold;
+ font-size: 22px;
+ line-height: 30px;
+ color: #3362a8;
+}
+.contact-us {
+ position: absolute;
+ width: 117px;
+ height: 30px;
+ left: 1386px;
+ top: 1454px;
+
+ font-family: Open Sans;
+ font-style: normal;
+ font-weight: bold;
+ font-size: 22px;
+ line-height: 30px;
+ color: #3362a8;
+}
+
+.create-survey-anchor {
+ position: absolute;
+ width: 185px;
+ height: 30px;
+ left: 806px;
+ top: 1218px;
+
+ font-family: Open Sans;
+ font-style: normal;
+ font-weight: bold;
+ font-size: 22px;
+ line-height: 30px;
+ /* identical to box height */
+
+ color: #3362a8;
+}
From dc0375fc4d18ff55752d7c963be5ec0cdf474180 Mon Sep 17 00:00:00 2001
From: SanjamSinghKalsi <80076219+SanjamSinghKalsi@users.noreply.github.com>
Date: Thu, 10 Jun 2021 19:23:03 +0530
Subject: [PATCH 16/84] Update SurveyForm.js
---
src/components/surveys/SurveyForm.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/surveys/SurveyForm.js b/src/components/surveys/SurveyForm.js
index 8d7262b..82fe8b5 100644
--- a/src/components/surveys/SurveyForm.js
+++ b/src/components/surveys/SurveyForm.js
@@ -1,4 +1,4 @@
-//it shows a form for a user to add input
+
import React, { Component } from "react";
import { reduxForm, Field } from "redux-form";
import SurveyField from "./SurveyField";
From c8fdf09b2a217af4dc617100f6da036be999dbde Mon Sep 17 00:00:00 2001
From: SanjamSinghKalsi <80076219+SanjamSinghKalsi@users.noreply.github.com>
Date: Fri, 11 Jun 2021 00:49:19 +0530
Subject: [PATCH 17/84] Update SurveyForm.js
---
src/components/surveys/SurveyForm.js | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/components/surveys/SurveyForm.js b/src/components/surveys/SurveyForm.js
index 82fe8b5..ac4877b 100644
--- a/src/components/surveys/SurveyForm.js
+++ b/src/components/surveys/SurveyForm.js
@@ -1,4 +1,3 @@
-
import React, { Component } from "react";
import { reduxForm, Field } from "redux-form";
import SurveyField from "./SurveyField";
From 05d75718e3bb01565a9a0ab0ebd4f2b29a88682f Mon Sep 17 00:00:00 2001
From: SanjamSinghKalsi <80076219+SanjamSinghKalsi@users.noreply.github.com>
Date: Fri, 11 Jun 2021 00:54:54 +0530
Subject: [PATCH 18/84] Update SurveyNew.js
---
src/components/surveys/SurveyNew.js | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/components/surveys/SurveyNew.js b/src/components/surveys/SurveyNew.js
index f36204c..1c61753 100644
--- a/src/components/surveys/SurveyNew.js
+++ b/src/components/surveys/SurveyNew.js
@@ -1,6 +1,5 @@
//Survey new shows us SurveyForm and SurveyFormReview
import React, { Component } from "react";
-
import SurveyForm from "./SurveyForm";
class SurveyNew extends Component {
From bb71a961fd29ef92633e168bc6dc8c76c37a9bc7 Mon Sep 17 00:00:00 2001
From: SanjamSinghKalsi <80076219+SanjamSinghKalsi@users.noreply.github.com>
Date: Fri, 11 Jun 2021 18:54:50 +0530
Subject: [PATCH 19/84] Update package.json
---
package.json | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package.json b/package.json
index 66bd524..9e2ec43 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,9 @@
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"axios": "^0.21.1",
+ "http-proxy-middleware": "^2.0.0",
"install": "^0.13.0",
+ "lodash": "^4.17.21",
"materialize-css": "^1.0.0-rc.2",
"npm": "^7.16.0",
"react": "^17.0.2",
@@ -18,6 +20,7 @@
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.3",
"redux": "^4.1.0",
+ "redux-form": "^8.3.7",
"redux-thunk": "^2.3.0",
"web-vitals": "^1.1.2"
},
From 11ae2aed1c47836f8b7c57ed9b7b7790ec955f44 Mon Sep 17 00:00:00 2001
From: SanjamSinghKalsi <80076219+SanjamSinghKalsi@users.noreply.github.com>
Date: Fri, 11 Jun 2021 18:58:02 +0530
Subject: [PATCH 20/84] Update LandingPage.js
---
src/components/LandingPage/LandingPage.js | 47 +++++++++++------------
1 file changed, 23 insertions(+), 24 deletions(-)
diff --git a/src/components/LandingPage/LandingPage.js b/src/components/LandingPage/LandingPage.js
index 1a96f34..8a9f8b0 100644
--- a/src/components/LandingPage/LandingPage.js
+++ b/src/components/LandingPage/LandingPage.js
@@ -17,13 +17,11 @@ function LandingPage() {
-
+
-
-
- Login
-
-
+
+ Login
+
Register
@@ -40,7 +38,7 @@ function LandingPage() {
same.
-
+
@@ -60,12 +58,12 @@ function LandingPage() {