-
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.
- Loading branch information
Showing
27 changed files
with
820 additions
and
1,642 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 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,26 @@ | ||
import Link from 'next/link' | ||
import { Avatar } from '@readyplayerme/visage' | ||
import { AvatarType } from '@/types/types' | ||
|
||
const AvatarCard = ({ | ||
phygitalId, | ||
url, | ||
}: { | ||
phygitalId: string | ||
url: string | ||
}) => { | ||
return ( | ||
<div className='relative inline-block'> | ||
<Link href={`https://webxr.myriadflow.com/${phygitalId}`}> | ||
<div className='w-330 rounded-full shadow-md overflow-hidden cursor-pointer relative'> | ||
<div className='absolute top-0 left-0 right-0 bottom-0 rounded-full bg-white opacity-30 pointer-events-none z-1' /> | ||
<div className='relative z-2'> | ||
<Avatar modelSrc={url} cameraInitialDistance={0.5} /> | ||
</div> | ||
</div> | ||
</Link> | ||
</div> | ||
) | ||
} | ||
|
||
export default AvatarCard |
Oops, something went wrong.