From a9fb10e3044e4da99a239597e3be4b66404b9b0d Mon Sep 17 00:00:00 2001
From: Dominik Strangas
Date: Mon, 21 Aug 2023 09:37:34 +0200
Subject: [PATCH] impress
---
src/components/partials/DecryptLink.tsx | 20 +++++++++
src/pages/impress.astro | 55 +++++++++++++++++++++++++
2 files changed, 75 insertions(+)
create mode 100644 src/components/partials/DecryptLink.tsx
diff --git a/src/components/partials/DecryptLink.tsx b/src/components/partials/DecryptLink.tsx
new file mode 100644
index 0000000..a5fd3d7
--- /dev/null
+++ b/src/components/partials/DecryptLink.tsx
@@ -0,0 +1,20 @@
+import { createSignal, onMount } from "solid-js"
+
+const redirect = (link: string) => {
+ window.location.href = (atob(link))
+}
+
+const [text, setText] = createSignal("")
+
+
+
+
+export const DecryptLink = (props: {linkTo: string, text:string}) => {
+ console.log(props.text)
+ onMount(async ()=> {
+ setTimeout(() => {
+ setText(atob(props.text))
+ }, 100);
+ })
+ return redirect(props.linkTo)}>{text()}
+}
\ No newline at end of file
diff --git a/src/pages/impress.astro b/src/pages/impress.astro
index e69de29..cc78560 100644
--- a/src/pages/impress.astro
+++ b/src/pages/impress.astro
@@ -0,0 +1,55 @@
+---
+import "../styles/global.css";
+import { Navigation } from "../components/Navigation";
+import { ClientLink } from "../components/partials/ClientLink";
+import { Button } from "../components/partials/Button";
+import Projects from "../views/Projects.astro";
+import AboutMe from "../views/AboutMe.astro";
+import Products from "../views/Products.astro";
+import LandingHero from "../views/LandingHero.astro";
+import Footer from "../views/Footer.astro";
+import { DecryptLink } from "../components/partials/DecryptLink";
+
+const encryptedMailLink = btoa("mailto:dominik@oceanwave018.de");
+const encryptedMail = btoa("dominik@oceanwave018.de");
+const encryptedPhoneNumberLink = btoa("tel:017664001756");
+const encryptedPhoneNumber = btoa("017664001756");
+---
+
+
+
+
+
+
+
+ Dominik - FullStackDev
+
+
+
+
+ Impressum
+ Angaben gemäß § 5 TMG
+
+ Dominik Strangas
80937 München
+
+ Vertreten durch:
Dominik Strangas
Kontakt:
+
+ Telefon:
+
+
+
+
+ E-Mail:
+
+
Umsatzsteuer-ID:
+
+
+ Umsatzsteuer-Identifikationsnummer gemäß §27a Umsatzsteuergesetz: Musterustid. Wirtschafts-ID:
+ Musterwirtschaftsid
+
+
+
+
+
+