Fix scrollbar bug

This commit is contained in:
dertyp7
2024-01-13 17:50:37 +01:00
parent 9b487cab47
commit 6f9191a95a
4 changed files with 8 additions and 3 deletions

View File

@@ -5,11 +5,11 @@ import About from "@components/About";
export default function App() { export default function App() {
return ( return (
<div id="app"> <div id="app">
<Header />
<About />
<div style={{ textAlign: "center" }}> <div style={{ textAlign: "center" }}>
<h4>Website under construction 🚧👷</h4> <h4>Website under construction 🚧👷</h4>
</div> </div>
<Header />
<About />
</div> </div>
); );
} }

View File

@@ -1,4 +1,5 @@
.about { .about {
height: 100vh;
padding: 5rem 10rem; padding: 5rem 10rem;
.greeting { .greeting {
color: var(--color-accent); color: var(--color-accent);

View File

@@ -2,6 +2,10 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
position: sticky;
background-color: var(--color-background-body);
top: 0;
z-index: 100;
width: 100%; width: 100%;
border-bottom: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
padding: 10px 50px; padding: 10px 50px;

View File

@@ -69,5 +69,5 @@ body,
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100vh; height: 100vh;
width: 100vw; width: 100%;
} }