diff --git a/frontend/.env.example b/frontend/.env.example new file mode 100644 index 00000000..2606d3a8 --- /dev/null +++ b/frontend/.env.example @@ -0,0 +1 @@ +REACT_APP_API= \ No newline at end of file diff --git a/frontend/.gitignore b/frontend/.gitignore new file mode 100644 index 00000000..0563835d --- /dev/null +++ b/frontend/.gitignore @@ -0,0 +1,36 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js +.yarn/install-state.gz + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts \ No newline at end of file diff --git a/frontend/src/App.js b/frontend/src/App.js index a1f29590..12636704 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -1,10 +1,10 @@ import './App.css'; import { BrowserRouter, Route, Routes } from "react-router-dom"; -import Navbar from "./component/Navbar"; +import Navbar from "./components/Navbar"; import Home from "./pages/Home"; import Search from './pages/Search'; import { DataProvider } from './context/DataContext'; -import ImageTree from './pages/ImageTree'; +import ImageTree from './pages/3DTree'; import React, { useEffect, useState } from 'react'; import axios from 'axios'; import { ToastContainer, toast } from 'react-toastify'; diff --git a/frontend/src/Style/home.css b/frontend/src/assets/Style/home.css similarity index 100% rename from frontend/src/Style/home.css rename to frontend/src/assets/Style/home.css diff --git a/frontend/src/Style/navbar.css b/frontend/src/assets/Style/navbar.css similarity index 100% rename from frontend/src/Style/navbar.css rename to frontend/src/assets/Style/navbar.css diff --git a/frontend/src/Style/profile.css b/frontend/src/assets/Style/profile.css similarity index 100% rename from frontend/src/Style/profile.css rename to frontend/src/assets/Style/profile.css diff --git a/frontend/src/Style/team.css b/frontend/src/assets/Style/team.css similarity index 100% rename from frontend/src/Style/team.css rename to frontend/src/assets/Style/team.css diff --git a/frontend/src/Style/tree.css b/frontend/src/assets/Style/tree.css similarity index 100% rename from frontend/src/Style/tree.css rename to frontend/src/assets/Style/tree.css diff --git a/frontend/src/image/b1.jpg b/frontend/src/assets/image/b1.jpg similarity index 100% rename from frontend/src/image/b1.jpg rename to frontend/src/assets/image/b1.jpg diff --git a/frontend/src/image/download.jpeg b/frontend/src/assets/image/download.jpeg similarity index 100% rename from frontend/src/image/download.jpeg rename to frontend/src/assets/image/download.jpeg diff --git a/frontend/src/image/logo.png b/frontend/src/assets/image/logo.png similarity index 100% rename from frontend/src/image/logo.png rename to frontend/src/assets/image/logo.png diff --git a/frontend/src/image/logo.svg b/frontend/src/assets/image/logo.svg similarity index 100% rename from frontend/src/image/logo.svg rename to frontend/src/assets/image/logo.svg diff --git a/frontend/src/pages/DTree.jsx b/frontend/src/components/2DTree.jsx similarity index 95% rename from frontend/src/pages/DTree.jsx rename to frontend/src/components/2DTree.jsx index 65c86345..5ea4dd9b 100644 --- a/frontend/src/pages/DTree.jsx +++ b/frontend/src/components/2DTree.jsx @@ -1,11 +1,11 @@ import React, { useState } from 'react'; import Tree from 'react-d3-tree'; -import '../Style/home.css' +import '../assets/Style/home.css' import { CircularProgressbar } from 'react-circular-progressbar'; import 'react-circular-progressbar/dist/styles.css'; -import Profile from '../component/Profile'; +import Profile from './Profile'; -const DTree = ({ data }) => { +const TwoDTree = ({ data }) => { const [roll, setroll] = useState() const [showModal, setShowModal] = useState(false); const value = 0.5; @@ -104,4 +104,4 @@ const DTree = ({ data }) => { ) } -export default DTree +export default TwoDTree diff --git a/frontend/src/pages/IitjTree.jsx b/frontend/src/components/Family.jsx similarity index 88% rename from frontend/src/pages/IitjTree.jsx rename to frontend/src/components/Family.jsx index 7c153274..d677a15c 100644 --- a/frontend/src/pages/IitjTree.jsx +++ b/frontend/src/components/Family.jsx @@ -1,7 +1,7 @@ -import '../Style/tree.css' +import '../assets/Style/tree.css' import React, { useState } from 'react' -import Profile from "../component/Profile"; -import profileimg from '../image/download.jpeg' +import Profile from "./Profile"; +import profileimg from '../assets/image/download.jpeg' const IitjTree = ({ data }) => { const studentid = data.student @@ -60,12 +60,12 @@ const IitjTree = ({ data }) => {