Skip to content

Commit

Permalink
chore: cursor
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Jul 6, 2023
1 parent aa1891a commit 6e7fd3f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export const appConfig = {
class:
'font-medium mx-2 text-3xl rounded p-1 bg-gray-200 dark:bg-gray-800/0 hover:dark:bg-gray-800/100 bg-opacity-0 hover:bg-opacity-100 transition-background duration-200',
},
{
type: 'span',
// cursor
class:
'inline-block w-[1px] h-8 -bottom-2 relative bg-gray-800/80 dark:bg-gray-200/80 opacity-0 group-hover:opacity-100 transition-opacity duration-200 group-hover:animation-blink',
},
],
},
description: `An independent developer coding with love.`,
Expand Down
4 changes: 2 additions & 2 deletions src/app/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const TwoColumnLayout = ({
rightContainerClassName?: string
}) => {
return (
<div className="relative flex h-full w-full flex-col flex-wrap items-center lg:flex-row">
<div className="group relative flex h-full w-full flex-col flex-wrap items-center lg:flex-row">
{children.slice(0, 2).map((child, i) => {
return (
<div
Expand All @@ -99,7 +99,7 @@ const TwoColumnLayout = ({
i === 0 ? leftContainerClassName : rightContainerClassName,
)}
>
<div className="relative max-w-full lg:max-w-xl ">{child}</div>
<div className="relative max-w-full lg:max-w-xl">{child}</div>
</div>
)
})}
Expand Down
16 changes: 16 additions & 0 deletions src/styles/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,20 @@
.group:hover .mask-cover {
opacity: 0.5;
}

.animation-blink {
animation: blink 1s ease-in-out infinite alternate;
}

@keyframes blink {
0% {
opacity: 0;
}
30% {
opacity: 1;
}
100% {
opacity: 1;
}
}
}

1 comment on commit 6e7fd3f

@vercel
Copy link

@vercel vercel bot commented on 6e7fd3f Jul 6, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

shiro – ./

shiro-git-main-innei.vercel.app
shiro-innei.vercel.app
springtide.vercel.app
innei.in

Please sign in to comment.