Skip to content

Commit

Permalink
contact-page created successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
Varsani2520 committed May 25, 2024
1 parent f2290fd commit a5b2667
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="../client/src/main.jsx"></script>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
18 changes: 18 additions & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@mui/material": "^5.15.18",
"@reduxjs/toolkit": "^1.9.5",
"axios": "^1.4.0",
"lottie-react": "^2.4.0",
"moment": "^2.29.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 2 additions & 0 deletions client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import About from "./components/About/About";

import { useEffect, useState } from "react";
import Loader from "./components/Loader";
import Contact from "./components/Contact/contact";

function Layout() {
const { user } = useSelector((state) => state.user);
Expand Down Expand Up @@ -56,6 +57,7 @@ function App() {
<Routes>
<Route element={<Layout />}>
<Route element={<About />} path="/about" />
<Route element={<Contact />} path="/contact-us" />
<Route
path='/'
element={
Expand Down
62 changes: 62 additions & 0 deletions client/src/components/Contact/Contact.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
"use client";
import React, { useEffect, useState } from "react";
import {
Box,
Container,
Grid,
Typography,
TextField,
Button,
} from "@mui/material";
import Lottie from "lottie-react";
import contactAnimation from "../lottie-animation/contactAnimation.json";
const Contact = () => {

return <div >
<Box sx={{ mt: "2rem", mb: '50px' }}>
<Grid container spacing={2}>
<Grid item xs={12} md={6}>
<Lottie animationData={contactAnimation} style={{ height: '500px' }} />
</Grid>
<Grid
item
xs={12}
md={6}
sx={{ display: "flex", alignItems: "center" }}
>
<form >
<TextField
label="Name"
fullWidth
margin="normal"

/>
<TextField
label="Email"
fullWidth
margin="normal"

/>
<TextField
label="Message"
fullWidth
multiline
rows={4}
margin="normal"

/>
<Button
variant="contained"
color="primary"
sx={{ mt: "1rem", fontSize: "1.2rem" }}
type="submit"
>
Submit
</Button>
</form>
</Grid>
</Grid>
</Box></div>;
};

export default Contact;
4 changes: 4 additions & 0 deletions client/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ const Navbar = () => {
<li>
<Link to='/blogs'>Blogs</Link>
</li>
<li>
<Link to='/contact-us'>Contact Us</Link>
</li>

</ul>

Expand Down Expand Up @@ -166,6 +169,7 @@ const Navbar = () => {
<Link to='/companies'>Companies</Link>
<Link to='/candidates'>Candidates</Link>
<Link to='/blogs'>Blogs</Link>
<Link to='/contact-us'>Contact Us</Link>
<Link
onClick={handleCloseNavbar}
to={
Expand Down

Large diffs are not rendered by default.

0 comments on commit a5b2667

Please sign in to comment.