9 Commits

Author SHA1 Message Date
Renovate Bot
118ee87463 Update dependency eslint-config-next to v14.2.14 2024-10-07 18:05:08 +00:00
137dfacfed fix the on this page component moving weirdly when scrolling
All checks were successful
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Successful in 1m1s
Took 1 minute
2024-10-07 13:41:10 -04:00
138b187378 fix the sidebar moving weirdly when scrolling
Some checks failed
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Has been cancelled
Took 5 minutes
2024-10-07 13:40:11 -04:00
195f23f44b oops, i broke the layout
All checks were successful
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Successful in 1m0s
Took 3 minutes
2024-10-07 13:33:04 -04:00
6fd1d7b8a9 use more screen real estate
All checks were successful
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Successful in 1m12s
Took 4 minutes
2024-10-07 13:29:33 -04:00
c0f9307236 Merge pull request 'Update dependency @types/node to v22' (#2) from renovate/node-22.x into master
Some checks failed
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Failing after 1m28s
Reviewed-on: #2
2024-10-07 10:25:58 -07:00
2c4e2bd0b1 fix white flash?
Some checks failed
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Has been cancelled
Took 7 minutes
2024-10-07 13:25:28 -04:00
942938ad8f funky footer
All checks were successful
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Successful in 1m1s
Took 17 minutes
2024-10-07 13:18:54 -04:00
Renovate Bot
2c03bcd54e Update dependency @types/node to v22 2024-10-07 17:05:11 +00:00
8 changed files with 19 additions and 18 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -38,11 +38,11 @@
},
"devDependencies": {
"@types/luxon": "^3.4.2",
"@types/node": "^20",
"@types/node": "^22.0.0",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.8",
"eslint-config-next": "14.2.14",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"

View File

@ -43,15 +43,15 @@ const RootLayout = ({
children: ReactNode;
}>): ReactElement => (
<html lang="en">
<body
className="scroll-smooth antialiased"
style={{
background: "var(--background-gradient)",
}}
>
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
<body
className="scroll-smooth antialiased"
style={{
background: "var(--background-gradient)",
}}
>
<TooltipProvider delayDuration={100}>
<div className="px-7 max-w-[90rem] mx-auto min-h-screen flex flex-col">
<div className="px-3 sm:px-7 max-w-screen-2xl min-h-screen mx-auto flex flex-col transition-all">
<Navbar />
<div className="pt-[4.5rem] w-full h-full flex flex-grow gap-5">
<div className="relative hidden xs:flex">
@ -62,8 +62,8 @@ const RootLayout = ({
</div>
<Footer />
</TooltipProvider>
</ThemeProvider>
</body>
</body>
</ThemeProvider>
</html>
);
export default RootLayout;

View File

@ -48,7 +48,7 @@ const links = {
};
const Footer = (): ReactElement => (
<footer className="mt-3 relative h-[19.5rem] md:h-[17rem] flex justify-center border-t border-zinc-700/75 overflow-hidden select-none">
<footer className="relative mt-3 h-[19.5rem] md:h-[17rem] flex justify-center border-t border-zinc-700/75 overflow-hidden select-none">
<div className="w-full md:max-w-[65rem]">
<div className="px-5 py-5 md:py-10 w-full flex flex-col md:flex-row items-center justify-around md:items-start gap-7">
{/* Top */}

View File

@ -9,7 +9,7 @@ const Navbar = (): ReactElement => {
const pages: DocsContentMetadata[] = getDocsContent();
return (
<nav className="fixed left-0 inset-x-0 bg-white/[0.007] backdrop-saturate-100 backdrop-blur-xl border-b z-50">
<div className="px-7 max-w-[90rem] mx-auto py-4 flex justify-between items-center">
<div className="px-3 sm:px-7 max-w-screen-2xl mx-auto py-4 flex justify-between items-center transition-all transform-gpu">
{/* Branding */}
<Link
className="flex gap-1 items-end hover:opacity-75 transition-all transform-gpu select-none"

View File

@ -83,7 +83,7 @@ const OnThisPage = ({ page }: { page: DocsContentMetadata }): ReactElement => {
return (
<motion.div
ref={ref}
className="sticky top-[5.5rem] w-44 max-h-[calc(100vh-3.5rem)] flex flex-col gap-2 text-sm select-none"
className="sticky top-[7rem] w-44 max-h-[calc(100vh-3.5rem)] flex flex-col gap-2 text-sm select-none"
initial={{ opacity: 0 }}
animate={{ opacity: inView ? 1 : 0 }}
transition={{ duration: 0.2 }}

View File

@ -15,14 +15,14 @@ const Sidebar = (): ReactElement => (
<SheetTrigger className="flex items-center">
<Bars3BottomRightIcon className="w-6 h-6" />
</SheetTrigger>
<SheetContent className="h-full px-11 pt-10" side="top">
<SheetContent className="h-full px-5 pt-11" side="right">
<SidebarContent />
</SheetContent>
</Sheet>
</div>
{/* Desktop */}
<div className="hidden xs:flex sticky top-[4.3rem] max-h-[calc(100vh-3.5rem)] overflow-y-auto min-w-32 w-40 lg:w-52 py-5 flex-col justify-between transition-all transform-gpu">
<div className="hidden xs:flex sticky top-[4.5rem] max-h-[calc(100vh-3.5rem)] overflow-y-auto min-w-32 w-40 lg:w-52 py-5 flex-col justify-between transition-all transform-gpu">
<SidebarContent />
</div>
</>

View File

@ -70,7 +70,8 @@ export function GridPattern({
if (dimensions.width && dimensions.height) {
setSquares(generateSquares(numSquares));
}
}, [dimensions, numSquares, generateSquares]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [dimensions, numSquares]);
// Resize observer to update container dimensions
useEffect(() => {