mirror of
https://github.com/AmanTahiliani/Portfolio.git
synced 2026-08-08 04:06:15 -04:00
Compare commits
11 Commits
contact-me
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f50ef52fa2 | ||
|
|
9d811e1e74 | ||
|
|
5aa11f3934 | ||
|
|
5501c586a3 | ||
|
|
a4925d5944 | ||
|
|
c21eda8c6b | ||
|
|
0ffd128e69 | ||
|
|
d6e5d1f184 | ||
|
|
c3df99e6c9 | ||
|
|
f3a115e610 | ||
|
|
0422ef27d2 |
58
src/App.css
58
src/App.css
@@ -1,15 +1,38 @@
|
|||||||
.App {
|
.App {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
position: absolute;
|
min-height: 100vh;
|
||||||
top: 0px;
|
width: 100%;
|
||||||
right: 0px;
|
|
||||||
left: 0px;
|
|
||||||
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
|
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
|
||||||
color: azure;
|
color: azure;
|
||||||
|
overflow-x: hidden;
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
}
|
||||||
|
|
||||||
|
section {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translate3d(0, 20px, 0);
|
||||||
|
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
|
||||||
|
will-change: opacity, transform;
|
||||||
|
/* min-height: 100vh; */
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 60px 0;
|
||||||
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
section.visible {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
|
||||||
.App-logo {
|
.App-logo {
|
||||||
height: 40vmin;
|
height: 40vmin;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
@@ -47,11 +70,8 @@
|
|||||||
|
|
||||||
.About {
|
.About {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: absolute;
|
padding: 40px 0;
|
||||||
top: 120px;
|
margin-top: 60px;
|
||||||
bottom: 0px;
|
|
||||||
left: 0px;
|
|
||||||
right: 0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
@@ -61,8 +81,24 @@ hr {
|
|||||||
border: 10px solid aquamarine;
|
border: 10px solid aquamarine;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publications {
|
.publications, .Experience, .DevTools, .Contact {
|
||||||
margin-top: 230px;
|
margin: 0;
|
||||||
|
padding: 60px 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
transform: translateY(0);
|
||||||
|
transition: transform 0.4s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
section:hover .section-title {
|
||||||
|
transform: translateY(-5px);
|
||||||
|
text-shadow: 0 0 8px rgba(250, 128, 114, 0.6), /* Salmon color glow */
|
||||||
|
0 0 15px rgba(250, 128, 114, 0.4),
|
||||||
|
0 0 20px rgba(250, 128, 114, 0.2);
|
||||||
|
transition: transform 0.4s ease-out, text-shadow 0.4s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.slick-dots button:before {
|
.slick-dots button:before {
|
||||||
|
|||||||
103
src/App.js
103
src/App.js
@@ -17,46 +17,72 @@ import DevToolsComponent from "./components/devtools";
|
|||||||
import SocialMedia from "./components/SocialMedia";
|
import SocialMedia from "./components/SocialMedia";
|
||||||
|
|
||||||
function Portfolio() {
|
function Portfolio() {
|
||||||
|
useEffect(() => {
|
||||||
|
const observer = new IntersectionObserver((entries) => {
|
||||||
|
entries.forEach(entry => {
|
||||||
|
if (entry.isIntersecting) {
|
||||||
|
const delay = parseInt(entry.target.dataset.delay) || 0;
|
||||||
|
setTimeout(() => {
|
||||||
|
requestAnimationFrame(() => {
|
||||||
|
entry.target.classList.add('visible');
|
||||||
|
});
|
||||||
|
}, delay);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, {
|
||||||
|
threshold: 0.15,
|
||||||
|
rootMargin: '50px 0px -100px 0px'
|
||||||
|
});
|
||||||
|
|
||||||
|
document.querySelectorAll('section').forEach((section, index) => {
|
||||||
|
// Add staggered delay to each section
|
||||||
|
section.dataset.delay = index * 100;
|
||||||
|
observer.observe(section);
|
||||||
|
});
|
||||||
|
|
||||||
|
return () => observer.disconnect();
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<meta name="Aman Tahiliani's Portfolio"></meta>
|
<meta name="Aman Tahiliani's Portfolio"></meta>
|
||||||
|
<nav>
|
||||||
<Header />
|
<Header />
|
||||||
|
</nav>
|
||||||
<hr></hr>
|
<hr></hr>
|
||||||
|
<main>
|
||||||
|
<section>
|
||||||
<About className="About" id="About" />
|
<About className="About" id="About" />
|
||||||
<div className="publications" id="Publications">
|
</section>
|
||||||
<h2 style={{ color: "salmon", fontSize: "50px" }}>
|
<section className="Experience" id="Experience">
|
||||||
<b>Publications</b>
|
<h2 className="section-title" style={{ color: "salmon", fontSize: "50px" }}>
|
||||||
</h2>
|
|
||||||
<SimpleSlider />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="Experience" id="Experience">
|
|
||||||
<h2 style={{ color: "salmon", fontSize: "50px", marginTop: "110px" }}>
|
|
||||||
<b>Experience</b>
|
<b>Experience</b>
|
||||||
</h2>
|
</h2>
|
||||||
<Experience />
|
<Experience />
|
||||||
</div>
|
</section>
|
||||||
<div className="DevTools" id="DevTools" style={{ marginBottom: "100px" }}>
|
<section className="DevTools" id="DevTools">
|
||||||
<h2 style={{ color: "salmon", fontSize: "50px" }}>
|
<h2 className="section-title" style={{ color: "salmon", fontSize: "50px" }}>
|
||||||
<b>Dev Tools</b>
|
<b>Dev Tools</b>
|
||||||
</h2>
|
</h2>
|
||||||
<DevToolsComponent />
|
<DevToolsComponent />
|
||||||
</div>
|
</section>
|
||||||
<hr />
|
<section className="publications" id="Publications">
|
||||||
<div className="Contact" id="Contact" style={{ marginTop: "100px" }}>
|
<h2 className="section-title" style={{ color: "salmon", fontSize: "50px" }}>
|
||||||
<h2 style={{ color: "cyan", fontSize: "50px" }}>
|
<b>Publications</b>
|
||||||
<b>Contact Me!</b>
|
</h2>
|
||||||
|
<SimpleSlider />
|
||||||
|
</section>
|
||||||
|
<section className="Contact" id="Contact">
|
||||||
|
<h2 className="section-title" style={{ color: "cyan", fontSize: "50px" }}>
|
||||||
|
<b>Social Links</b>
|
||||||
</h2>
|
</h2>
|
||||||
<SocialMedia
|
<SocialMedia
|
||||||
style={{ color: "white" }}
|
style={{ color: "white" }}
|
||||||
useColorIcons={false}
|
useColorIcons={false}
|
||||||
whiteIcons={true}
|
whiteIcons={true}
|
||||||
/>
|
/>
|
||||||
</div>
|
</section>
|
||||||
{/* <div className="Contact" id="Contact">
|
</main>
|
||||||
<h2 style={{color:"salmon", fontSize:"50px", marginTop:"60px"}}><b>Contact Me!</b></h2>
|
|
||||||
<Contact/>
|
|
||||||
</div> */}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -82,9 +108,9 @@ function Home() {
|
|||||||
<li>
|
<li>
|
||||||
<a href="/portfolio">Developer Portfolio</a>
|
<a href="/portfolio">Developer Portfolio</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
{/* <li>
|
||||||
<a href="/reviews">Book, TV and Movie Reviews</a>
|
<a href="/reviews">Book, TV and Movie Reviews</a>
|
||||||
</li>
|
</li> */}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -92,32 +118,27 @@ function Home() {
|
|||||||
<div className="footer">
|
<div className="footer">
|
||||||
<SocialMedia />
|
<SocialMedia />
|
||||||
</div>
|
</div>
|
||||||
|
{/* <div className="Contact" id="Contact">
|
||||||
|
<h2 style={{color:"salmon", fontSize:"50px", marginTop:"60px"}}><b>Contact Me!</b></h2>
|
||||||
|
<Contact/>
|
||||||
|
</div> */}
|
||||||
</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() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<Router>
|
<Router>
|
||||||
<AnimatedRoutes />
|
<div>
|
||||||
|
<Routes>
|
||||||
|
<Route path="/" element={<Portfolio />} />
|
||||||
|
<Route path="/portfolio" element={<Portfolio />} />
|
||||||
|
<Route path="/reviews" element={<Books />} />
|
||||||
|
</Routes>
|
||||||
|
</div>
|
||||||
</Router>
|
</Router>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default App;
|
export default App;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class Header extends Component {
|
|||||||
<a href="#About">About</a>
|
<a href="#About">About</a>
|
||||||
</Col>
|
</Col>
|
||||||
<Col>
|
<Col>
|
||||||
<a href="#Publications">Publications</a>
|
<a href="#Experience">Experience</a>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</Col>
|
</Col>
|
||||||
@@ -28,17 +28,18 @@ class Header extends Component {
|
|||||||
</Col>
|
</Col>
|
||||||
<Col xs={12} md={5}>
|
<Col xs={12} md={5}>
|
||||||
<Row className="navRow nonNameCol">
|
<Row className="navRow nonNameCol">
|
||||||
<Col>
|
|
||||||
<a href="#Experience">Experience</a>
|
|
||||||
</Col>
|
|
||||||
<Col>
|
<Col>
|
||||||
<a href="#DevTools">Devtools</a>
|
<a href="#DevTools">Devtools</a>
|
||||||
</Col>
|
</Col>
|
||||||
|
<Col>
|
||||||
|
<a href="#Publications">Publications</a>
|
||||||
|
</Col>
|
||||||
<Col>
|
<Col>
|
||||||
<a
|
<a
|
||||||
href="#Contact"
|
href="#Contact"
|
||||||
>
|
>
|
||||||
Contact Me!
|
Social Links
|
||||||
</a>
|
</a>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|||||||
@@ -1,70 +1,52 @@
|
|||||||
import React, { Component, useState } from "react";
|
import React from "react";
|
||||||
import "bootstrap/dist/css/bootstrap.css";
|
import "bootstrap/dist/css/bootstrap.css";
|
||||||
// import { Row, Col, TabContainer } from "react-bootstrap";
|
import { FaGithub, FaLinkedin, FaInstagram, FaEnvelope } from "react-icons/fa";
|
||||||
import "../css/contact.css";
|
import "../css/contact.css";
|
||||||
|
|
||||||
function Contact() {
|
function Contact() {
|
||||||
const [name, setName] = useState("");
|
|
||||||
const [organization, setOrganization] = useState("");
|
|
||||||
const [message, setMessage] = useState("");
|
|
||||||
const [popup, setPopup] = useState("");
|
|
||||||
|
|
||||||
let handleSubmit = async (e) => {
|
|
||||||
e.preventDefault();
|
|
||||||
try {
|
|
||||||
let res = await fetch("http://localhost:8000/sendMail", {
|
|
||||||
method: "POST",
|
|
||||||
body: JSON.stringify({
|
|
||||||
name: name,
|
|
||||||
organization: organization,
|
|
||||||
message: message,
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
// let resJson = await res.json();
|
|
||||||
console.log(res.status);
|
|
||||||
if (res.status === 200) {
|
|
||||||
setName("");
|
|
||||||
setOrganization("");
|
|
||||||
setMessage("");
|
|
||||||
setPopup("Message sent successfully");
|
|
||||||
} else {
|
|
||||||
setPopup("Some error occured");
|
|
||||||
}
|
|
||||||
} catch (err) {
|
|
||||||
console.log(err);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="social-links">
|
||||||
<form onSubmit={handleSubmit}>
|
<a
|
||||||
<input
|
href="https://github.com/yourusername"
|
||||||
type="text"
|
target="_blank"
|
||||||
value={name}
|
rel="noopener noreferrer"
|
||||||
placeholder="Name"
|
className="social-link"
|
||||||
onChange={(e) => setName(e.target.value)}
|
aria-label="GitHub Profile"
|
||||||
required="true"
|
>
|
||||||
/>
|
<FaGithub className="social-icon" />
|
||||||
<br />
|
<span className="social-text">GitHub</span>
|
||||||
<input
|
</a>
|
||||||
type="text"
|
|
||||||
value={organization}
|
<a
|
||||||
placeholder="Organization"
|
href="https://linkedin.com/in/yourusername"
|
||||||
onChange={(e) => setOrganization(e.target.value)}
|
target="_blank"
|
||||||
/>
|
rel="noopener noreferrer"
|
||||||
<br />
|
className="social-link"
|
||||||
<textarea
|
aria-label="LinkedIn Profile"
|
||||||
className="MessageBox"
|
>
|
||||||
type="textarea"
|
<FaLinkedin className="social-icon" />
|
||||||
value={message}
|
<span className="social-text">LinkedIn</span>
|
||||||
placeholder="Message"
|
</a>
|
||||||
onChange={(e) => setMessage(e.target.value)}
|
|
||||||
required="true"
|
|
||||||
/>
|
|
||||||
<br />
|
|
||||||
<button type="submit">Send!</button>
|
|
||||||
|
|
||||||
<div className="popup">{popup ? <p>{popup}</p> : null}</div>
|
<a
|
||||||
</form>
|
href="https://instagram.com/yourusername"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="social-link"
|
||||||
|
aria-label="Instagram Profile"
|
||||||
|
>
|
||||||
|
<FaInstagram className="social-icon" />
|
||||||
|
<span className="social-text">Instagram</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a
|
||||||
|
href="mailto:your.email@example.com"
|
||||||
|
className="social-link"
|
||||||
|
aria-label="Email Contact"
|
||||||
|
>
|
||||||
|
<FaEnvelope className="social-icon" />
|
||||||
|
<span className="social-text">Email</span>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user