From 4cda6ccdcb7c413cdf7dfd390068c95c062c600f Mon Sep 17 00:00:00 2001 From: Kamran Date: Thu, 27 Apr 2023 12:10:41 +0100 Subject: [PATCH] added_form added form in main Co-Authored-By: Roman-Hal <85693082+Roman-Hal@users.noreply.github.com> Co-Authored-By: Anosh Malik Co-Authored-By: azadehroshan <105980239+azadehroshan@users.noreply.github.com> --- client/src/Components/MainContent.js | 100 +++++++++++++++++++++++++++ client/src/pages/Home.js | 16 +++-- 2 files changed, 109 insertions(+), 7 deletions(-) create mode 100644 client/src/Components/MainContent.js diff --git a/client/src/Components/MainContent.js b/client/src/Components/MainContent.js new file mode 100644 index 0000000..9a755be --- /dev/null +++ b/client/src/Components/MainContent.js @@ -0,0 +1,100 @@ +import React from "react"; +// import { useState } from "react"; +import Button from "react-bootstrap/Button"; +import { Card, Form, Col, Container, Row } from "react-bootstrap"; + +const MainContent = () => { + // const [val, setVal] = useState(""); + return ( + + + + + +
+ + {/* Textarea 1 */} + + + + + + +
+
+
+ + + + +
+ + {/* Textarea 2 */} + + + + + + +
+
+
+ +
+
+ ); +}; + +export default MainContent; + +{ + /*

Hello World

+ + + */ +} diff --git a/client/src/pages/Home.js b/client/src/pages/Home.js index 55f715c..75ac668 100644 --- a/client/src/pages/Home.js +++ b/client/src/pages/Home.js @@ -1,15 +1,16 @@ //import { useEffect, useState } from "react"; -import { useState } from "react"; +// import { useState } from "react"; //import { Link } from "react-router-dom"; import Header from "../Components/Header"; import Footer from "../Components/Footer"; -import Button from "react-bootstrap/Button"; +import MainContent from "../Components/MainContent"; +// import Button from "react-bootstrap/Button"; import "./Home.css"; // import logo from "./logo.svg"; export function Home() { - const [val, setVal] = useState(""); + // const [val, setVal] = useState(""); /*const [message, setMessage] = useState("Loading..."); useEffect(() => { @@ -31,11 +32,11 @@ export function Home() { return (
-

Hello World

+ {/*

Hello World

*/} {/* this the label */} - + {/* */} {/*textarea with spellcheck function*/} - - + */} +