From cc47e2b66cb88bca1c30f97797d4255ce009f9b5 Mon Sep 17 00:00:00 2001 From: Aadil Date: Wed, 8 Mar 2023 12:49:49 +0530 Subject: [PATCH 1/2] Updating category and headterm list --- .../src/components/AddWord/index.js | 18 ++++++++++++------ com-dict-client/src/constants/categories.js | 9 +++++++++ com-dict-client/src/constants/index.js | 1 + 3 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 com-dict-client/src/constants/categories.js diff --git a/com-dict-client/src/components/AddWord/index.js b/com-dict-client/src/components/AddWord/index.js index 77dde09..5231d0c 100644 --- a/com-dict-client/src/components/AddWord/index.js +++ b/com-dict-client/src/components/AddWord/index.js @@ -19,8 +19,11 @@ import { addWord, addHeadTerm } from "../../store/actions"; import { useSelector } from "react-redux"; import { languages } from "../../constants"; +import { categories } from "../../constants"; import { toTitleCase } from "../../utils.js/toTitleCase"; + + const { Text } = Typography; // var optionText; @@ -59,7 +62,7 @@ function WordForm() { user_id: user.uid, uname: user.displayName, createdAt: new Date().getTime(), - alphabatical: headTerm[0].toUpperCase(), + // alphabatical: headTerm[0].toUpperCase(), word_of_the_day: null, pronunciation: null, trending_factor: 0, @@ -68,7 +71,7 @@ function WordForm() { return addWord(data)(firestore); }; - const categories = useSelector((state) => state.firestore.ordered.categories); + // const categories = useSelector((state) => state.firestore.ordered.categories); const headTerms = useSelector((state) => state.firestore.ordered.headTerms); @@ -219,16 +222,19 @@ function WordForm() { /> - + diff --git a/com-dict-client/src/constants/categories.js b/com-dict-client/src/constants/categories.js new file mode 100644 index 0000000..2ee8460 --- /dev/null +++ b/com-dict-client/src/constants/categories.js @@ -0,0 +1,9 @@ +export const categories = [ + "Food", + "College", + "Religion", + "Work", + "Sports", + "Internet", + "Music", +]; \ No newline at end of file diff --git a/com-dict-client/src/constants/index.js b/com-dict-client/src/constants/index.js index 5245a9e..d01730d 100644 --- a/com-dict-client/src/constants/index.js +++ b/com-dict-client/src/constants/index.js @@ -1 +1,2 @@ export { languages } from "./languages"; +export { categories } from "./categories"; \ No newline at end of file From d405989582ae55889261b8729dc6d85d5e020464 Mon Sep 17 00:00:00 2001 From: Aadil Date: Sat, 11 Mar 2023 21:23:59 +0530 Subject: [PATCH 2/2] Added contacUs page --- .../src/components/ContactUS/index.js | 245 + .../src/components/Footer/FooterPage.js | 6 +- .../src/components/Footer/index.js | 7 +- .../src/containers/contactUs/contactUs.css | 37172 ++++++++++++++++ .../src/containers/contactUs/contactUs.js | 27 + .../containers/contactUs/contactUs.test.js | 0 com-dict-client/src/routes.js | 5 +- 7 files changed, 37455 insertions(+), 7 deletions(-) create mode 100644 com-dict-client/src/components/ContactUS/index.js create mode 100644 com-dict-client/src/containers/contactUs/contactUs.css create mode 100644 com-dict-client/src/containers/contactUs/contactUs.js create mode 100644 com-dict-client/src/containers/contactUs/contactUs.test.js diff --git a/com-dict-client/src/components/ContactUS/index.js b/com-dict-client/src/components/ContactUS/index.js new file mode 100644 index 0000000..bcf4846 --- /dev/null +++ b/com-dict-client/src/components/ContactUS/index.js @@ -0,0 +1,245 @@ +import React from 'react' +import { Row, Col, Card, Typography } from "antd"; +import contact from "../../images/pablo-contact.png"; +import sports from "../../images/pablo-sports.png"; +const { Text } = Typography; +const { Title } = Typography; + +function Contact_Us(props) { + console.log(props.data); + return ( +
+
+ + {/*

Contact Us

*/} + + +
+ + Contact Us + +
+ +
+ + + {/* + 1 + */} + + + {/* + {cats["Sports"] && + cats["Sports"].map((val, i) => ( + + + + + ))} + */} + + + + + + + + + + + +

+

+ {/*
*/} + + +
+
+
+
+

Thank you for your interest in SCoReLab Community Dictionary.

+

+ Don't forget to check our FAQ Pages before asking a question.They have answers + to many commonly asked questions. +

+

If you can't find the answer to your question on our FAQ Pages, feel free to use the + form below to send us your comment or question. Please remember to select the + appropriate topic so we can assist you more efficiently!

+
+
+ {/*Intro text*/} +
Contact Form
+ {/*Actual form*/} +
+ +
+ +
+ +
+
    +
+
+ +
+ +
+
    +
+
+ +
+ +
+
    +
+
+ +
+