Skip to content

Commit

Permalink
refactor: make email clickable (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skolaczk authored Aug 13, 2024
1 parent d2cc3b5 commit 2a0c1a5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 17 additions & 1 deletion src/components/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,23 @@ export const Contact = () => {
>
<SectionHeading
heading="Get In Touch"
content="Please contact me directly at [email protected] or through this form."
content={
<>
Please contact me directly at{' '}
<Button
variant="link"
className="text-muted-foreground p-0 font-medium"
>
<a
className="underline-offset-4 hover:underline"
href="mailto:[email protected]"
>
[email protected]
</a>
</Button>{' '}
or through this form.
</>
}
/>
<form
onSubmit={handleSubmit(onSubmit)}
Expand Down
4 changes: 3 additions & 1 deletion src/components/section-heading.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ReactNode } from 'react';

type TProps = {
heading: string;
content?: string | undefined;
content?: string | ReactNode | undefined;
};

export const SectionHeading = ({ heading, content }: TProps) => {
Expand Down

0 comments on commit 2a0c1a5

Please sign in to comment.