From 9db69cebcbb3e421031473e5de4f4326e38c70bc Mon Sep 17 00:00:00 2001 From: kanhaiya04 Date: Sun, 16 Apr 2023 03:15:58 +0530 Subject: [PATCH 1/2] terms and conditions page created --- .../src/components/Footer/FooterPage.js | 2 +- .../src/components/Terms&Conditions/index.js | 39 +++++++++++++++++++ .../terms&conditions/terms&conditions.css | 4 ++ .../terms&conditions/terms&conditions.js | 25 ++++++++++++ .../terms&conditions/terms&conditions.test.js | 0 com-dict-client/src/routes.js | 2 + 6 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 com-dict-client/src/components/Terms&Conditions/index.js create mode 100644 com-dict-client/src/containers/terms&conditions/terms&conditions.css create mode 100644 com-dict-client/src/containers/terms&conditions/terms&conditions.js create mode 100644 com-dict-client/src/containers/terms&conditions/terms&conditions.test.js diff --git a/com-dict-client/src/components/Footer/FooterPage.js b/com-dict-client/src/components/Footer/FooterPage.js index 1a4af6a..e64b7f0 100644 --- a/com-dict-client/src/components/Footer/FooterPage.js +++ b/com-dict-client/src/components/Footer/FooterPage.js @@ -55,7 +55,7 @@ function Footer() { - + Terms and Conditions diff --git a/com-dict-client/src/components/Terms&Conditions/index.js b/com-dict-client/src/components/Terms&Conditions/index.js new file mode 100644 index 0000000..a15ef57 --- /dev/null +++ b/com-dict-client/src/components/Terms&Conditions/index.js @@ -0,0 +1,39 @@ +import React from 'react' + +const TermsConditions = () => { + return ( + <> +

Terms&Conditions

+ + + ) +} + +export default TermsConditions; \ No newline at end of file diff --git a/com-dict-client/src/containers/terms&conditions/terms&conditions.css b/com-dict-client/src/containers/terms&conditions/terms&conditions.css new file mode 100644 index 0000000..2c6a497 --- /dev/null +++ b/com-dict-client/src/containers/terms&conditions/terms&conditions.css @@ -0,0 +1,4 @@ +.termscondtionsContent{ + padding: 2% 25%; + background-color: #ffffff; +} \ No newline at end of file diff --git a/com-dict-client/src/containers/terms&conditions/terms&conditions.js b/com-dict-client/src/containers/terms&conditions/terms&conditions.js new file mode 100644 index 0000000..be4b101 --- /dev/null +++ b/com-dict-client/src/containers/terms&conditions/terms&conditions.js @@ -0,0 +1,25 @@ +import { Layout } from "antd"; +import React from "react"; + +import TitleBar from "../../components/Header"; +import FooterPage from "../../components/Footer/FooterPage"; +import TermsConditions from "../../components/Terms&Conditions"; +import "./terms&conditions.css"; +const { Header, Footer, Content } = Layout; +function TermsAndConditions() { + return ( + +
+ +
+ + + +
+ +
+
+ ); +} + +export default TermsAndConditions; diff --git a/com-dict-client/src/containers/terms&conditions/terms&conditions.test.js b/com-dict-client/src/containers/terms&conditions/terms&conditions.test.js new file mode 100644 index 0000000..e69de29 diff --git a/com-dict-client/src/routes.js b/com-dict-client/src/routes.js index 10a0924..44d1a4e 100644 --- a/com-dict-client/src/routes.js +++ b/com-dict-client/src/routes.js @@ -10,6 +10,7 @@ import Categories from "./containers/categories/categories"; import CommentWord from "./containers/comment/comment"; import Report from "./containers/reportWord/reportWord"; import Search from "./containers/search/search"; +import TermsAndConditions from "./containers/terms&conditions/terms&conditions"; import { useSelector } from "react-redux"; // import { auth } from "./config"; @@ -27,6 +28,7 @@ export default function Routes() { + ); } From 3662d3c771485bda5d82119eb053ab00bb8f207c Mon Sep 17 00:00:00 2001 From: kanhaiya04 Date: Sun, 16 Apr 2023 13:13:00 +0530 Subject: [PATCH 2/2] made terms and conditions page responsive --- .../src/components/Terms&Conditions/index.js | 2 +- .../terms&conditions/terms&conditions.css | 20 +++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/com-dict-client/src/components/Terms&Conditions/index.js b/com-dict-client/src/components/Terms&Conditions/index.js index a15ef57..c46f483 100644 --- a/com-dict-client/src/components/Terms&Conditions/index.js +++ b/com-dict-client/src/components/Terms&Conditions/index.js @@ -3,7 +3,7 @@ import React from 'react' const TermsConditions = () => { return ( <> -

Terms&Conditions

+

Terms & Conditions

  • Users are responsible for the accuracy and appropriateness of the entries they submit to the Community Dictionary.

    diff --git a/com-dict-client/src/containers/terms&conditions/terms&conditions.css b/com-dict-client/src/containers/terms&conditions/terms&conditions.css index 2c6a497..4e2a3e2 100644 --- a/com-dict-client/src/containers/terms&conditions/terms&conditions.css +++ b/com-dict-client/src/containers/terms&conditions/terms&conditions.css @@ -1,4 +1,16 @@ -.termscondtionsContent{ - padding: 2% 25%; - background-color: #ffffff; -} \ No newline at end of file +.termscondtionsContent { + padding: 2% 25%; + background-color: #ffffff; +} + +.tcHeading { + font-size: 5rem; + font-weight: bold; +} + +@media (max-width: 768px) { + .tcHeading{ + + font-size: 3rem; + } +}