Compare commits
2 commits
8c52de0616
...
06ff6d32e8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06ff6d32e8 | ||
|
|
6da5da5bee |
|
|
@ -51,7 +51,7 @@ function NewSection({
|
||||||
after?: ReactElement;
|
after?: ReactElement;
|
||||||
}) {
|
}) {
|
||||||
return (<section id={id} className="bg-background">
|
return (<section id={id} className="bg-background">
|
||||||
<div className="container mx-auto px-4 gap-6 flex flex-col mt-20">
|
<div className="container mx-auto px-4 gap-6 flex flex-col">
|
||||||
{children}
|
{children}
|
||||||
{after}
|
{after}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -160,3 +160,8 @@
|
||||||
section#contact {
|
section#contact {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Fix scrolling to section by fragment, making sure it shows in the right spot and not behind the navbar. */
|
||||||
|
section {
|
||||||
|
scroll-margin-top: calc(var(--spacing) * 16 + var(--spacing) * 4);
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue