Skip to content

Commit

Permalink
resolved #22
Browse files Browse the repository at this point in the history
  • Loading branch information
shahriarshafin committed Dec 19, 2023
1 parent 377557f commit 5c190f7
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 11 deletions.
23 changes: 12 additions & 11 deletions components/Hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,22 @@ const Hero = () => {
return (
<section>
<div className='flex items-center justify-center md:flex-row flex-col'>
<div className='my-5'>
<div className='relative h-44 w-44 rounded-full bg-gradient-to-b bg-[#8e7fc9] hover:from-pink-500 hover:to-[#f5d498] flex justify-center items-center'>
<div className='my-16'>
<div className='relative h-44 w-44 flex justify-center items-center'>
<div
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
className='group absolute -top-[64px] transition-all duration-200 scale-100 hover:scale-110 ease-in'
className='group absolute transition-all ease-in'
>
<Image
src={UserImg}
draggable='false'
// layout='fill'
alt='ShafinAvatar'
className='drop-shadow-md'
/>
<div className='absolute bottom-0 flex-col items-center hidden w-32 -ml-24 mb-48 lg:group-hover:flex'>
<div className='wrap-avater'>
<Image
src={UserImg}
alt='Avatar'
draggable='false'
className='!mb-6'
/>
</div>
<div className='absolute bottom-0 flex-col items-center hidden w-32 -ml-[100px] mb-64 lg:group-hover:flex'>
<span className='p-2 w-32 h-[50px] relative z-10 text-xs leading-none text-sh-white whitespace-no-wrap bg-sh-dark shadow-lg rounded-md'>
{typedText}
</span>
Expand Down
Binary file modified public/assets/images/icons/shafin-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,35 @@
.text-transparent {
color: transparent;
}
.wrap-avater {
--f: 1; /* initial scale */
@apply w-[200px] aspect-square pt-10 outline outline-offset-[-3px] outline-sh-blue rounded-[0_0_999px_999px] outline-[3px] duration-500;

background: radial-gradient(
circle closest-side,
#8e80c9 calc(99% - 3px),
#1985ff calc(100% - 3px) 99%,
#0000
)
50% / calc(100% / var(--f)) 100% no-repeat content-box;

mask: linear-gradient(#000 0 0) no-repeat 50% 6px / calc(100% - 12px) 50%,
radial-gradient(circle closest-side, #000 99%, #0000) 50% /
calc(100% / var(--f)) 100% no-repeat content-box;

transform: scale(var(--f));
}
.wrap-avater:hover {
--f: 1.1;
background: radial-gradient(
circle closest-side,
#474064 calc(99% - 2px),
#1985ff calc(100% - 2px) 99%,
#0000
)
50% / calc(100% / var(--f)) 100% no-repeat content-box;
}
.wrap-avater img {
@apply group-hover:drop-shadow-[-1px_-1px_0px_#ec4899] duration-500;
}
}

1 comment on commit 5c190f7

@vercel
Copy link

@vercel vercel bot commented on 5c190f7 Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.