Skip to content

Commit

Permalink
Sticky headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ujaandas committed Sep 14, 2024
1 parent 45b0115 commit a939f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ interface TitleProps {

export default function Title({ title }: TitleProps) {
return (
<div className="">
<div className="sticky top-0 z-10 bg-gradient-to-r dark:from-cat-mocha-crust from-cat-latte-base from-10% dark:to-cat-mocha-base to-cat-latte-mantle to-90% py-3 -m-2">
<h1 className="text-3xl font-bold dark:text-cat-mocha-text text-cat-latte-text">
{title}
</h1>
Expand Down

0 comments on commit a939f75

Please sign in to comment.