feat: added iu cursor

This commit is contained in:
wonderlandpark 2021-03-24 14:54:04 +09:00
parent c23f480eac
commit 20fb72b759
3 changed files with 15 additions and 1 deletions

View File

@ -119,6 +119,10 @@ button {
cursor: pointer; cursor: pointer;
} }
.cursor-heart {
cursor: url("/img/heart.svg"), auto;
}
/* NProgress */ /* NProgress */
#nprogress { #nprogress {

View File

@ -85,7 +85,7 @@ const Bots: NextPage<BotsProps> = ({ data, date, user, theme, csrfToken }) => {
<div className='w-full text-center lg:w-1/4'> <div className='w-full text-center lg:w-1/4'>
<DiscordAvatar <DiscordAvatar
userID={data.id} userID={data.id}
className='w-full' className={`w-full ${router.query.id === 'iu' ? 'cursor-heart' : ''}`}
/> />
</div> </div>
<div className='flex-grow px-5 py-12 w-full text-center lg:w-5/12 lg:text-left'> <div className='flex-grow px-5 py-12 w-full text-center lg:w-5/12 lg:text-left'>

10
public/img/heart.svg Normal file
View File

@ -0,0 +1,10 @@
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 1024 1024" height="1.5em" width="1.5em" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="iu" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:#f5a1b1;stop-opacity:1" />
<stop offset="50%" style="stop-color:#a277bc;stop-opacity:1" />
<stop offset="100%" style="stop-color:#4dd6d3;stop-opacity:1" />
</linearGradient>
</defs>
<path fill="url(#iu)" d="M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"></path>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB