-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tokunbo #91
Open
Teea-dev
wants to merge
5
commits into
pqoqubbw:main
Choose a base branch
from
Teea-dev:tokunbo
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Tokunbo #91
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2ba8bcf
feat: added a heart-break icon
Teea-dev 323f1cf
feat: added the heart icon
Teea-dev 9c75ee1
feat & fix : added the lock icon and also fixed the clipboar-check ic…
Teea-dev 9101be0
feat: ran npm run lint
Teea-dev bc2da2a
fix: changed the heart animation to a pulsating one, fixed the lock s…
Teea-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
feat: added a heart-break icon
- Loading branch information
commit 2ba8bcff3beafaf811d986b5b0e6394b0806c2f9
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
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,60 @@ | ||||||||||
'use client'; | ||||||||||
|
||||||||||
import type { Variants } from 'motion/react'; | ||||||||||
import { motion, useAnimation } from 'motion/react'; | ||||||||||
|
||||||||||
const iconVariants: Variants = { | ||||||||||
normal: { | ||||||||||
pathLength: 1, | ||||||||||
opacity: 1, | ||||||||||
}, | ||||||||||
animate: { | ||||||||||
pathLength: [0, 1], | ||||||||||
opacity: [0, 1], | ||||||||||
transition: { | ||||||||||
duration: 0.9, | ||||||||||
ease: 'easeInOut', | ||||||||||
}, | ||||||||||
}, | ||||||||||
}; | ||||||||||
|
||||||||||
const HeartCrackIcon = () => { | ||||||||||
const controls = useAnimation(); | ||||||||||
|
||||||||||
return ( | ||||||||||
<div | ||||||||||
className="cursor-pointer select-none p-2 hover:bg-accent rounded-md transition-colors duration-200 flex items-center justify-center" | ||||||||||
onMouseEnter={() => controls.start('animate')} | ||||||||||
onMouseLeave={() => controls.start('normal')} | ||||||||||
style={{ display: 'inline-block' }} | ||||||||||
> | ||||||||||
<svg | ||||||||||
xmlns="http://www.w3.org/2000/svg" | ||||||||||
width="24" | ||||||||||
height="24" | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Making changes to these now |
||||||||||
viewBox="0 0 24 24" | ||||||||||
fill="none" | ||||||||||
stroke="currentColor" | ||||||||||
strokeWidth="2" | ||||||||||
strokeLinecap="round" | ||||||||||
strokeLinejoin="round" | ||||||||||
> | ||||||||||
<motion.path | ||||||||||
d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" | ||||||||||
initial="normal" | ||||||||||
animate={controls} | ||||||||||
variants={iconVariants} | ||||||||||
/> | ||||||||||
|
||||||||||
<motion.path | ||||||||||
d="m12 13-1-1 2-2-3-3 2-2" | ||||||||||
initial="normal" | ||||||||||
animate={controls} | ||||||||||
variants={iconVariants} | ||||||||||
/> | ||||||||||
</svg> | ||||||||||
</div> | ||||||||||
); | ||||||||||
}; | ||||||||||
|
||||||||||
export { HeartCrackIcon }; |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean the style right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep