-
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.
- Loading branch information
1 parent
f351837
commit 21104d5
Showing
1 changed file
with
26 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,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> | ||
|