mirror of
https://github.com/AmanTahiliani/Portfolio.git
synced 2026-08-07 19:56:16 -04:00
Compare commits
4 Commits
dark-mode-
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f50ef52fa2 | ||
|
|
9d811e1e74 | ||
|
|
5aa11f3934 | ||
|
|
5501c586a3 |
33
src/App.css
33
src/App.css
@@ -1,14 +1,13 @@
|
|||||||
.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;
|
overflow-x: hidden;
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@@ -17,8 +16,16 @@ html {
|
|||||||
|
|
||||||
section {
|
section {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateY(20px);
|
transform: translate3d(0, 20px, 0);
|
||||||
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
section.visible {
|
section.visible {
|
||||||
@@ -63,11 +70,8 @@ section.visible {
|
|||||||
|
|
||||||
.About {
|
.About {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: absolute;
|
padding: 40px 0;
|
||||||
top: 120px;
|
margin-top: 60px;
|
||||||
bottom: 0px;
|
|
||||||
left: 0px;
|
|
||||||
right: 0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
@@ -78,8 +82,9 @@ hr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.publications, .Experience, .DevTools, .Contact {
|
.publications, .Experience, .DevTools, .Contact {
|
||||||
margin-top: 100px;
|
margin: 0;
|
||||||
padding: 40px 0;
|
padding: 60px 0;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-title {
|
.section-title {
|
||||||
@@ -90,6 +95,10 @@ hr {
|
|||||||
|
|
||||||
section:hover .section-title {
|
section:hover .section-title {
|
||||||
transform: translateY(-5px);
|
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 {
|
||||||
|
|||||||
29
src/App.js
29
src/App.js
@@ -21,12 +21,22 @@ function Portfolio() {
|
|||||||
const observer = new IntersectionObserver((entries) => {
|
const observer = new IntersectionObserver((entries) => {
|
||||||
entries.forEach(entry => {
|
entries.forEach(entry => {
|
||||||
if (entry.isIntersecting) {
|
if (entry.isIntersecting) {
|
||||||
|
const delay = parseInt(entry.target.dataset.delay) || 0;
|
||||||
|
setTimeout(() => {
|
||||||
|
requestAnimationFrame(() => {
|
||||||
entry.target.classList.add('visible');
|
entry.target.classList.add('visible');
|
||||||
|
});
|
||||||
|
}, delay);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, { threshold: 0.1 });
|
}, {
|
||||||
|
threshold: 0.15,
|
||||||
|
rootMargin: '50px 0px -100px 0px'
|
||||||
|
});
|
||||||
|
|
||||||
document.querySelectorAll('section').forEach((section) => {
|
document.querySelectorAll('section').forEach((section, index) => {
|
||||||
|
// Add staggered delay to each section
|
||||||
|
section.dataset.delay = index * 100;
|
||||||
observer.observe(section);
|
observer.observe(section);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -44,13 +54,6 @@ function Portfolio() {
|
|||||||
<section>
|
<section>
|
||||||
<About className="About" id="About" />
|
<About className="About" id="About" />
|
||||||
</section>
|
</section>
|
||||||
<section className="publications" id="Publications">
|
|
||||||
<h2 className="section-title" style={{ color: "salmon", fontSize: "50px" }}>
|
|
||||||
<b>Publications</b>
|
|
||||||
</h2>
|
|
||||||
<SimpleSlider />
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section className="Experience" id="Experience">
|
<section className="Experience" id="Experience">
|
||||||
<h2 className="section-title" style={{ color: "salmon", fontSize: "50px" }}>
|
<h2 className="section-title" style={{ color: "salmon", fontSize: "50px" }}>
|
||||||
<b>Experience</b>
|
<b>Experience</b>
|
||||||
@@ -63,6 +66,12 @@ function Portfolio() {
|
|||||||
</h2>
|
</h2>
|
||||||
<DevToolsComponent />
|
<DevToolsComponent />
|
||||||
</section>
|
</section>
|
||||||
|
<section className="publications" id="Publications">
|
||||||
|
<h2 className="section-title" style={{ color: "salmon", fontSize: "50px" }}>
|
||||||
|
<b>Publications</b>
|
||||||
|
</h2>
|
||||||
|
<SimpleSlider />
|
||||||
|
</section>
|
||||||
<section className="Contact" id="Contact">
|
<section className="Contact" id="Contact">
|
||||||
<h2 className="section-title" style={{ color: "cyan", fontSize: "50px" }}>
|
<h2 className="section-title" style={{ color: "cyan", fontSize: "50px" }}>
|
||||||
<b>Social Links</b>
|
<b>Social Links</b>
|
||||||
@@ -124,7 +133,7 @@ function App() {
|
|||||||
<Router>
|
<Router>
|
||||||
<div>
|
<div>
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/" element={<Home />} />
|
<Route path="/" element={<Portfolio />} />
|
||||||
<Route path="/portfolio" element={<Portfolio />} />
|
<Route path="/portfolio" element={<Portfolio />} />
|
||||||
<Route path="/reviews" element={<Books />} />
|
<Route path="/reviews" element={<Books />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user