-
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.
Feature/sticky note animation (#114)
* update: added stickers to apply button anchor * feature: animated sticky notes * update: on scroll view animation * fix: remove stickers * update: animation timing adjustments and decoupling * fix: adjusted tape * fix: tape timing adjustment * fix: animation triggers once * fix: removed sticker assets and imports * fix: removed sticker components * fix: media queries for resource card width * fix: tape timing adjustment * feat: pin animation * update: mentor sticky note animation
- Loading branch information
Showing
10 changed files
with
213 additions
and
57 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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import type React from "react"; | ||
import type { StickerProps } from "./stickerProps"; | ||
import HackLogo from "@/assets/icons/hack.png"; | ||
import HeartEmoji from "@/assets/images/heart_emoji.png"; | ||
import BaseSticker from "../BaseSticker"; | ||
import { fastShake, lightShake } from "@/components/animation"; | ||
|
||
export const HackSticker: React.FC<StickerProps> = (props) => { | ||
return ( | ||
<BaseSticker | ||
imageSrc={HackLogo.src} | ||
alt="Hack at UCI sticker" | ||
height={150} | ||
width={150} | ||
{...lightShake} | ||
{...props} | ||
/> | ||
); | ||
}; | ||
|
||
export const HeartSticker: React.FC<StickerProps> = (props) => ( | ||
<BaseSticker | ||
imageSrc={HeartEmoji.src} | ||
alt="heart emoji sticker" | ||
height={150} | ||
width={150} | ||
{...fastShake} | ||
{...props} | ||
/> | ||
); |
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