-
Notifications
You must be signed in to change notification settings - Fork 1
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
6fe7257
commit 8fcfca4
Showing
6 changed files
with
174 additions
and
25 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import { Talks } from '../components/talks' | ||
import { Page } from '@/core/components/page/page' | ||
|
||
export const metadata = { | ||
title: 'Talks', | ||
description: `Here are all the talks I've given.`, | ||
} | ||
|
||
export default function Page() { | ||
export default function TalksPage() { | ||
return ( | ||
<section> | ||
<h1 className="font-semibold text-2xl mb-8 tracking-tighter">My Blog</h1> | ||
<Page> | ||
<Talks /> | ||
</section> | ||
</Page> | ||
) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
'use client' | ||
|
||
import * as React from 'react' | ||
import * as PopoverPrimitive from '@radix-ui/react-popover' | ||
|
||
import { cn } from '@/lib/utils' | ||
|
||
const Popover = PopoverPrimitive.Root | ||
|
||
const PopoverTrigger = PopoverPrimitive.Trigger | ||
|
||
const PopoverContent = React.forwardRef< | ||
React.ElementRef<typeof PopoverPrimitive.Content>, | ||
React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> | ||
>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => ( | ||
<PopoverPrimitive.Portal> | ||
<PopoverPrimitive.Content | ||
ref={ref} | ||
align={align} | ||
sideOffset={sideOffset} | ||
className={cn( | ||
'z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', | ||
className, | ||
)} | ||
{...props} | ||
/> | ||
</PopoverPrimitive.Portal> | ||
)) | ||
PopoverContent.displayName = PopoverPrimitive.Content.displayName | ||
|
||
export { Popover, PopoverTrigger, PopoverContent } |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.menu-link::before, | ||
.menu-link::after { | ||
position: absolute; | ||
width: 100%; | ||
height: 0.5px; | ||
background: currentColor; | ||
top: 100%; | ||
left: 0; | ||
pointer-events: none; | ||
} | ||
|
||
.menu-link::before { | ||
content: ''; | ||
/* show by default */ | ||
} | ||
|
||
.menu-link::before { | ||
transform-origin: 50% 100%; | ||
transition: | ||
clip-path 0.3s, | ||
transform 0.3s cubic-bezier(0.2, 1, 0.8, 1); | ||
clip-path: polygon(0% 0%, 0% 100%, 0 100%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%, 100% 100%, 100% 0%); | ||
} | ||
|
||
.menu-link:hover::before { | ||
transform: translate3d(0, 2px, 0) scale3d(1.08, 3, 1); | ||
clip-path: polygon(0% 0%, 0% 100%, 50% 100%, 50% 0, 50% 0, 50% 100%, 50% 100%, 0 100%, 100% 100%, 100% 0%); | ||
} | ||
|
||
.menu-link span { | ||
transition: transform 0.3s cubic-bezier(0.2, 1, 0.8, 1); | ||
} | ||
|
||
.menu-link:hover span { | ||
transform: translate3d(0, -2px, 0); | ||
} |
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