-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds hella fancy Contact section, first pass
- Loading branch information
Showing
2 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,71 @@ | ||
const Contact = () => <div />; | ||
interface ContactProps { | ||
contentClass?: string; | ||
} | ||
|
||
const m = 20; | ||
|
||
const Contact = ({ contentClass }: ContactProps) => ( | ||
<> | ||
<section> | ||
<div class={`text-2xl${contentClass}`}> | ||
<span>Can we work together?</span> | ||
<p class="my-10 relative text-4xl"> | ||
<svg | ||
class="group squiggle absolute bottom-0 left-0 max-h-8" | ||
viewBox={`0 0 ${10 * m} 18`} | ||
> | ||
<style> | ||
{` | ||
.squiggle path { | ||
animation: shift 3s linear infinite; | ||
animation-play-state: paused; | ||
} | ||
@prefers-reduced-motion: reduce { | ||
animation-duration: 60s; | ||
} | ||
.squiggle:hover path { | ||
animation-play-state: running; | ||
} | ||
@keyframes shift { | ||
from { | ||
transform: translateX(-50%); | ||
} | ||
to { | ||
transform:translateX(0); | ||
} | ||
} | ||
`} | ||
</style> | ||
{Array.from({ length: m * 2 }).map((_, i) => ( | ||
<path | ||
key={i} | ||
class="opacity-75 group-hover:opacity-100 transition-opacity" | ||
fill="none" | ||
stroke="currentColor" | ||
d={`M${ | ||
i * 10 | ||
} 17.5c2.5 0 2.5-1.5 5-1.5s2.5 1.5 5 1.5 2.5-1.5 5-1.5 2.5 1.5 5 1.5`} | ||
/> | ||
))} | ||
</svg> | ||
|
||
{/* text shadow so squiggle doesn't look bad */} | ||
<span | ||
class="absolute pointer-events-none text-[var(--amber-100)] z-10" | ||
style="-webkit-text-stroke: 3px var(--amber-100);" | ||
> | ||
Send me a message! | ||
</span> | ||
<span class="pointer-events-none relative z-20"> | ||
Send me a message! | ||
</span> | ||
</p> | ||
</div> | ||
</section> | ||
</> | ||
); | ||
|
||
export default Contact; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters