From eae4f8f7fdcc50b47279255948ba401f08d5f1f9 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 30 Aug 2022 23:44:07 +0200 Subject: [PATCH] contact-page: Add note for confused recruiters --- pkgs/contact-page/src/index.html | 13 +++++++++++++ pkgs/contact-page/src/main.js | 26 +++++++++++++++----------- pkgs/contact-page/src/style.css | 18 +++++++++++++++++- 3 files changed, 45 insertions(+), 12 deletions(-) diff --git a/pkgs/contact-page/src/index.html b/pkgs/contact-page/src/index.html index f62cc4d..e393321 100644 --- a/pkgs/contact-page/src/index.html +++ b/pkgs/contact-page/src/index.html @@ -39,6 +39,19 @@ public keys (dynamic) +
+

+ Dear (don’t want to get found by this keyword) recruiters, +

+

+ The publication of these contact details does not constitute consent within the meaning of Art. 6 GDPR. + They may not be used for sending me unsolicited messages. +

+

+ Also, if you were even thinking of contacting me about (don’t want to get found by this keyword), + you should probably invest in more capable people for “Talent Acquisition” 😘 +

+
diff --git a/pkgs/contact-page/src/main.js b/pkgs/contact-page/src/main.js index ff77e9c..e6421f0 100644 --- a/pkgs/contact-page/src/main.js +++ b/pkgs/contact-page/src/main.js @@ -2,17 +2,21 @@ const givenName = document.getElementById('name').innerText.split(" ")[0].toLowerCase() const domain = location.host - if (domain !== "sbruder.de") { - return + if (domain === "sbruder.de") { + const mailAddress = givenName + '@' + domain + const mailEl = document.getElementById('email') + mailEl.innerText = mailAddress + mailEl.href = `mailto:${mailAddress}` + + const matrixAddress = '@' + givenName + ':' + domain + const matrixEl = document.getElementById('matrix') + matrixEl.innerText = matrixAddress + matrixEl.href = `https://matrix.to/#/${matrixAddress}` } - const mailAddress = givenName + '@' + domain - const mailEl = document.getElementById('email') - mailEl.innerText = mailAddress - mailEl.href = `mailto:${mailAddress}` - - const matrixAddress = '@' + givenName + ':' + domain - const matrixEl = document.getElementById('matrix') - matrixEl.innerText = matrixAddress - matrixEl.href = `https://matrix.to/#/${matrixAddress}` + const forbiddenWordEls = Array.from(document.getElementsByClassName("forbiddenword")) + forbiddenWordEls.forEach(el => { + el.innerHTML = "blockchain" + el.classList.add("processed") + }) })() diff --git a/pkgs/contact-page/src/style.css b/pkgs/contact-page/src/style.css index 5d99114..3edaa46 100644 --- a/pkgs/contact-page/src/style.css +++ b/pkgs/contact-page/src/style.css @@ -1,10 +1,17 @@ body { font-family: "PT Sans", "Helvetica", "Helvetica Neue", "Roboto", "Arimo", "Arial", sans-serif; + margin: 0px; } .container { max-width: 500px; - margin: 0 auto 50px; + margin: 0 auto; + padding: 0 1rem; + + min-height: 100vh; + + display: flex; + flex-direction: column; } tr td:first-child::after { @@ -16,3 +23,12 @@ a { color: inherit; font-weight: 600; } + +.fineprint { + font-size: .75rem; + margin-top: auto; +} + +.forbiddenword.processed { + font-family: "Comic Sans MS", cursive; +}