mirror of
https://github.com/DerTyp7/dertyp7.github.io.git
synced 2025-10-29 12:52:08 +01:00
Update scroll behavior and padding in About and Header styles
This commit is contained in:
@@ -16,11 +16,7 @@ export default function App() {
|
|||||||
(entries) => {
|
(entries) => {
|
||||||
entries.forEach((entry) => {
|
entries.forEach((entry) => {
|
||||||
if (entry.isIntersecting) {
|
if (entry.isIntersecting) {
|
||||||
if (entry.target.id === "about") {
|
window.location.hash = entry.target.id;
|
||||||
window.location.hash = "";
|
|
||||||
} else {
|
|
||||||
window.location.hash = entry.target.id;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -47,7 +43,7 @@ export default function App() {
|
|||||||
return (
|
return (
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<Header />
|
<Header />
|
||||||
<div id="about" className="section" ref={aboutRef}>
|
<div className="section" ref={aboutRef}>
|
||||||
<About />
|
<About />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.about {
|
.about {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
padding: 0rem 10rem;
|
padding: 5rem 10rem;
|
||||||
.greeting {
|
.greeting {
|
||||||
color: var(--color-accent);
|
color: var(--color-accent);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
position: sticky;
|
position: fixed;
|
||||||
background-color: var(--color-background-body);
|
background-color: var(--color-background-body);
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
|||||||
Reference in New Issue
Block a user