Skip to content

Commit

Permalink
Merge pull request #344 from zackproser/glowing-green-highlights
Browse files Browse the repository at this point in the history
Add glowing green highlights to newsletter capture form
  • Loading branch information
zackproser authored Feb 12, 2024
2 parents 151c978 + d3a4320 commit 2eca99f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Newsletter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const Newsletter = () => {
) : (
<form
onSubmit={handleSubmit}
className="rounded-2xl border border-zinc-100 p-6 dark:border-zinc-700/40"
className="rounded-2xl border border-zinc-100 p-6 dark:border-zinc-700/40 tracer-glow"
>
<h2 className="flex text-sm font-semibold text-zinc-900 dark:text-zinc-100">
<MailIcon className="h-6 w-6 flex-none" />
Expand Down
32 changes: 32 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,38 @@
animation: glow-animation 2s infinite alternate;
}

@keyframes traceBorder {
0%, 100% {
box-shadow: 0 0 1px #21fc0d;
}
12.5% {
box-shadow: 0 -1px 1px #21fc0d;
}
25% {
box-shadow: 1px -1px 1px #21fc0d;
}
37.5% {
box-shadow: 1px 0 1px #21fc0d;
}
50% {
box-shadow: 1px 1px 1px #21fc0d;
}
62.5% {
box-shadow: 0 1px 1px #21fc0d;
}
75% {
box-shadow: -1px 1px 1px #21fc0d;
}
87.5% {
box-shadow: -1px 0 1px #21fc0d;
}
}

.tracer-glow {
position: relative;
animation: traceBorder 3s infinite linear;
}

.sparkle {
width: 10px;
height: 10px;
Expand Down

0 comments on commit 2eca99f

Please sign in to comment.