Open1
Next.js & Tailwind CSS Tips
footerを画面下部に固定する方法
layout.tsx
<body className="min-h-dvh">
<main>
{children}
</main>
<footer className="sticky top-full">Footer</footer>
</body>
<body className="min-h-dvh">
<main>
{children}
</main>
<footer className="sticky top-full">Footer</footer>
</body>