2025-01-12 23:42:32 -05:00
|
|
|
import React, { useState, useEffect } from "react";
|
|
|
|
|
import {
|
|
|
|
|
BrowserRouter as Router,
|
|
|
|
|
Route,
|
|
|
|
|
Routes,
|
|
|
|
|
useLocation,
|
|
|
|
|
} from "react-router-dom";
|
|
|
|
|
import { CSSTransition, TransitionGroup } from "react-transition-group";
|
2022-05-08 19:03:39 +05:30
|
|
|
import "./App.css";
|
2025-01-12 23:42:32 -05:00
|
|
|
import "./css/home.css";
|
2022-05-08 19:03:39 +05:30
|
|
|
import Header from "./components/Header";
|
|
|
|
|
import About from "./components/About";
|
2022-05-08 23:27:29 +05:30
|
|
|
import SimpleSlider from "./components/publicationSlider";
|
2022-07-18 23:17:31 +05:30
|
|
|
import Experience from "./components/Experience";
|
2024-06-23 23:46:08 -04:00
|
|
|
import Contact from "./components/contact";
|
|
|
|
|
import DevToolsComponent from "./components/devtools";
|
2025-01-12 23:42:32 -05:00
|
|
|
import SocialMedia from "./components/SocialMedia";
|
2022-05-08 12:47:05 +05:30
|
|
|
|
2025-01-12 23:42:32 -05:00
|
|
|
function Portfolio() {
|
2022-05-08 12:47:05 +05:30
|
|
|
return (
|
2024-06-24 00:15:38 -04:00
|
|
|
<div className="App">
|
2024-06-23 23:46:08 -04:00
|
|
|
<meta name="Aman Tahiliani's Portfolio"></meta>
|
2022-05-08 19:03:39 +05:30
|
|
|
<Header />
|
|
|
|
|
<hr></hr>
|
2024-06-24 00:15:38 -04:00
|
|
|
<About className="About" id="About" />
|
2022-05-08 23:27:29 +05:30
|
|
|
<div className="publications" id="Publications">
|
2024-06-24 00:15:38 -04:00
|
|
|
<h2 style={{ color: "salmon", fontSize: "50px" }}>
|
|
|
|
|
<b>Publications</b>
|
|
|
|
|
</h2>
|
|
|
|
|
<SimpleSlider />
|
2022-05-08 22:13:49 +05:30
|
|
|
</div>
|
2024-06-24 00:15:38 -04:00
|
|
|
|
2022-07-18 23:17:31 +05:30
|
|
|
<div className="Experience" id="Experience">
|
2024-06-24 00:15:38 -04:00
|
|
|
<h2 style={{ color: "salmon", fontSize: "50px", marginTop: "110px" }}>
|
|
|
|
|
<b>Experience</b>
|
|
|
|
|
</h2>
|
|
|
|
|
<Experience />
|
2022-07-18 23:17:31 +05:30
|
|
|
</div>
|
2025-01-12 23:42:32 -05:00
|
|
|
<div className="DevTools" id="DevTools" style={{ marginBottom: "100px" }}>
|
2024-06-24 00:15:38 -04:00
|
|
|
<h2 style={{ color: "salmon", fontSize: "50px" }}>
|
|
|
|
|
<b>Dev Tools</b>
|
|
|
|
|
</h2>
|
|
|
|
|
<DevToolsComponent />
|
2024-06-23 23:46:08 -04:00
|
|
|
</div>
|
2025-01-12 23:42:32 -05:00
|
|
|
<hr />
|
|
|
|
|
<div className="Contact" id="Contact" style={{ marginTop: "100px" }}>
|
|
|
|
|
<h2 style={{ color: "cyan", fontSize: "50px" }}>
|
|
|
|
|
<b>Contact Me!</b>
|
|
|
|
|
</h2>
|
|
|
|
|
<SocialMedia
|
|
|
|
|
style={{ color: "white" }}
|
|
|
|
|
useColorIcons={false}
|
|
|
|
|
whiteIcons={true}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2024-06-23 23:46:08 -04:00
|
|
|
{/* <div className="Contact" id="Contact">
|
|
|
|
|
<h2 style={{color:"salmon", fontSize:"50px", marginTop:"60px"}}><b>Contact Me!</b></h2>
|
|
|
|
|
<Contact/>
|
|
|
|
|
</div> */}
|
2022-05-08 12:47:05 +05:30
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-12 23:42:32 -05:00
|
|
|
function Books() {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<h2>Books Page</h2>
|
|
|
|
|
{/* Add your books content here */}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function Home() {
|
|
|
|
|
return (
|
|
|
|
|
<div className="home">
|
|
|
|
|
<div className="content">
|
|
|
|
|
<div className="intro">
|
|
|
|
|
<h1>Welcome to Aman Tahiliani's Space</h1>
|
|
|
|
|
<p>Software Developer | Tech Enthusiast</p>
|
|
|
|
|
<nav>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="/portfolio">Developer Portfolio</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="/reviews">Book, TV and Movie Reviews</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</nav>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="footer">
|
|
|
|
|
<SocialMedia />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function AnimatedRoutes() {
|
|
|
|
|
const location = useLocation();
|
|
|
|
|
return (
|
|
|
|
|
<TransitionGroup>
|
|
|
|
|
<CSSTransition key={location.key} classNames="fade" timeout={300}>
|
|
|
|
|
<Routes location={location}>
|
|
|
|
|
<Route path="/portfolio" element={<Portfolio />} />
|
|
|
|
|
<Route path="/" element={<Portfolio />} />
|
|
|
|
|
<Route path="/books" element={<Books />} />
|
|
|
|
|
{/* <Route path="/" element={<Home />} /> */}
|
|
|
|
|
</Routes>
|
|
|
|
|
</CSSTransition>
|
|
|
|
|
</TransitionGroup>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function App() {
|
|
|
|
|
return (
|
|
|
|
|
<Router>
|
|
|
|
|
<AnimatedRoutes />
|
|
|
|
|
</Router>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-08 12:47:05 +05:30
|
|
|
export default App;
|