-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff44b12
commit 209accf
Showing
9 changed files
with
55 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,31 @@ | ||
import { cn } from '#app/utils/misc.tsx' | ||
import { Link } from '@remix-run/react' | ||
import { ChevronUpIcon } from 'lucide-react' | ||
import { cn } from '#app/utils/misc.js' | ||
|
||
export function Divider({ className }: { className?: string }) { | ||
export function Divider({ | ||
className, | ||
withBackToTop = true, | ||
}: { | ||
className?: string | ||
withBackToTop?: boolean | ||
}) { | ||
return ( | ||
<hr className={cn('h-[3px] rounded border-none bg-muted', className)} /> | ||
<div role="presentation" className="group relative"> | ||
<hr className={cn('h-[3px] rounded border-none bg-muted', className)} /> | ||
{withBackToTop && ( | ||
<div className="absolute left-1/2 top-0 -translate-x-1/2 -translate-y-1/2 transform"> | ||
<Link | ||
to="#" | ||
className="group inline-flex items-center gap-1 rounded-full bg-muted p-2 px-2 font-condensed text-lg ring ring-muted transition-colors ease-in-out hover:bg-card" | ||
title="Nach oben" | ||
> | ||
<ChevronUpIcon | ||
size={18} | ||
className="stroke-primary transition-transform group-hover:-translate-y-0.5" | ||
/> | ||
</Link> | ||
</div> | ||
)} | ||
</div> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters