-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: purge vscode extensions (#80) * fix: add initial state to the dependency array for `export default useToggleDropDownMenu` * refactor: move mdx components into sepreate files * feat: add animation for code blocks on load * feat: make laoding dots glow too * chore: run initial migrations * chore: add some spacing G damn * refactor: re-organize components disposition * feat: create the `CreationDate` component
- Loading branch information
Showing
22 changed files
with
6,305 additions
and
1,954 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
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,74 @@ | ||
'use client'; | ||
import { motion } from 'framer-motion'; | ||
|
||
export default function YeetMe() { | ||
return ( | ||
<div className="flex justify-center items-center py-2"> | ||
<YeetButton /> | ||
</div> | ||
); | ||
} | ||
|
||
export function YeetButton() { | ||
const initial = { | ||
opacity: 0, | ||
borderRadius: 0, | ||
scale: 0, | ||
rotate: 360, | ||
}; | ||
const animate = { | ||
opacity: 1, | ||
width: 160, | ||
height: 70, | ||
borderRadius: 20, | ||
scale: 1, | ||
boxShadow: '10px 10px 0 rgba(255, 46, 199, 0.2)', | ||
rotate: 0, | ||
}; | ||
const transition = { | ||
duration: 1, | ||
type: 'keyframes', | ||
ease: 'easeInOut', | ||
}; | ||
const whileHover = { | ||
cursor: 'grab', | ||
}; | ||
const whileDrag = { | ||
cursor: 'grabbing', | ||
}; | ||
return ( | ||
<motion.button | ||
layout | ||
viewport={{ once: true }} | ||
className="flex justify-center items-center origin-center bg-gradient-to-r from-purple-500 via-indigo-500 to-pink-500 w-80 h-80" | ||
initial={initial} | ||
whileInView={animate} | ||
transition={transition} | ||
whileHover={whileHover} | ||
drag | ||
whileDrag={whileDrag} | ||
dragConstraints={{ | ||
top: -10, | ||
left: -10, | ||
right: 10, | ||
bottom: 10, | ||
}} | ||
dragMomentum={true} | ||
dragPropagation | ||
> | ||
<motion.div | ||
layout | ||
viewport={{ once: true }} | ||
className="flex justify-center items-center origin-center bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 w-80 h-80" | ||
initial={initial} | ||
whileInView={animate} | ||
transition={transition} | ||
whileHover={whileHover} | ||
whileDrag={whileDrag} | ||
drag | ||
> | ||
<span className=" font-bold">yeet me</span> | ||
</motion.div> | ||
</motion.button> | ||
); | ||
} |
Oops, something went wrong.