Skip to content

Commit

Permalink
Update email on contact page
Browse files Browse the repository at this point in the history
  • Loading branch information
addisonbeck committed Sep 11, 2023
1 parent f351837 commit 21104d5
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion src/lib/components/Contact.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,35 @@
<script lang="ts">
import './contact.css';
import { onMount } from 'svelte'
let message = 'hi';
const messages = [
'hi',
'hello',
'howdy',
'您好',
'salut',
'gutentag',
'السلام عليكم',
'0100100001101001',
'oi',
'こんにちは',
'please-work-here',
'or-pretty-much-anything',
];
onMount(() => {
setInterval(() => {
message = messages[messages.indexOf(message) + 1] ?? messages[0];
}, 1500);
});
</script>

<div class="contact-container">
<div class="contact-card">
Shoot me an email at <a href="mailto:[email protected]">[email protected]</a>
<span>Shoot me an email at </span>
<a href='mailto:${message}@addisonbeck.com'>
{message}@addisonbeck.com
</a>
</div>
</div>

0 comments on commit 21104d5

Please sign in to comment.