From 846397e1870a937a4560d86784effa13e8151e2f Mon Sep 17 00:00:00 2001
From: Emma Terzioglu
Date: Mon, 23 Mar 2026 14:48:36 -0700
Subject: add contact info w/ clipboard
---
src/static/js/clipboard.js | 16 ++++++++++++++++
src/static/stylesheets/index.css | 13 +++++++++++++
src/templates/index.html | 31 ++++++++++++++++++++++++-------
3 files changed, 53 insertions(+), 7 deletions(-)
create mode 100644 src/static/js/clipboard.js
(limited to 'src')
diff --git a/src/static/js/clipboard.js b/src/static/js/clipboard.js
new file mode 100644
index 0000000..5cbad5d
--- /dev/null
+++ b/src/static/js/clipboard.js
@@ -0,0 +1,16 @@
+const copyToClipboard = (v) => {
+ navigator.clipboard.writeText(v)
+ .then(alert("text copied to clipboard!"));
+}
+
+const clickEventHandler = (e) => {
+ e.preventDefault()
+ const raw = e.target.getAttributeNode("x-content");
+ const content = atob(raw.value);
+ copyToClipboard(content);
+}
+
+const copyables = document.getElementsByClassName("copyable");
+for (const c of copyables) {
+ c.onclick = clickEventHandler;
+}
diff --git a/src/static/stylesheets/index.css b/src/static/stylesheets/index.css
index 316daee..ea520fb 100644
--- a/src/static/stylesheets/index.css
+++ b/src/static/stylesheets/index.css
@@ -21,6 +21,14 @@
gap: 4px;
}
+.copyable {
+ cursor: pointer;
+}
+
+.copyable:hover, .copyable:focus {
+ text-decoration: underline;
+}
+
#basenamering {
justify-content: start;
gap: 30px;
@@ -38,6 +46,11 @@
padding: 20px;
}
+#random-img {
+ padding: 20px;
+ max-width: 250px;
+}
+
.button {
image-rendering: auto;
image-rendering: crisp-edges;
diff --git a/src/templates/index.html b/src/templates/index.html
index 1dc1826..c64df91 100644
--- a/src/templates/index.html
+++ b/src/templates/index.html
@@ -18,18 +18,21 @@
I'm a full stack developer that tends to focus on random
- projects for fun rather than full works.
+ projects for fun rather than full projects.
currently, I have a good chunk of my code hosted on either
- github or codeberg, and I aim to migrate to my own self-hosted
- git server.
+ github or codeberg, and I aim to migrate to my own
+ self-hosted git server.
-
- be careful on this website, it's a little slippery at the moment!
- it's a work in progress!
+
+ matrix: [at] emmatech [colon] matrix [dot] org
+
+
+
+ email: emma [at] emmatech [dot] dev
@@ -65,13 +68,27 @@
discrete trans wallpaper and fanart of konata I found on pixiv.
+
+
+ Is this website open source?
+
+ yes, if you so desire to check out the code for this website, it's accessible
+ here. the code is licensed under
+ the bsd 3-clause license, so feel free to use chunks and pieces of the website as
+ you see fit.
+
+
-
+
random image of the day

+
+
this is a placeholder until I get some images
+
+
{% endblock %}
--
cgit v1.2.3