Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Bishwas-py/17097f343e2e9f6c2833d6b84a1eb680 to your computer and use it in GitHub Desktop.
Save Bishwas-py/17097f343e2e9f6c2833d6b84a1eb680 to your computer and use it in GitHub Desktop.
Profile with camera in tailwind css
<div className={"space-y-2 grid place-items-center"}>
<div
className={"p-1 relative shadow-sm bg-gradient-to-b from-purple-500 to-fuchsia-500 w-48 h-48 rounded-full"}>
<img
className={"object-cover rounded-full w-full h-full"}
src={"https://cdn.bio.link/uploads/profile_pictures/2022-06-09/38zFuPFJBsmcuzHNbishwas.png"}/>
<div className="bg-purple-500/50 rounded-full p-3 w-12 h-12
grid place-items-center absolute bottom-0 right-0">
<FontAwesomeIcon icon={faCamera} className={"text-white/60 text-2xl"}/>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment