This commit is contained in:
Dominik Strangas 2023-08-21 09:37:34 +02:00
parent 81cff82f66
commit a9fb10e304
2 changed files with 75 additions and 0 deletions

View File

@ -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 <p class="cursor-pointer" onclick={()=>redirect(props.linkTo)}>{text()}</p>
}

View File

@ -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");
---
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Dominik - FullStackDev</title>
</head>
<body class="bg-zinc-900 text-zinc-100">
<Navigation client:load />
<section class="h-screen w-1/2 pl-12 flex flex-col justify-center gap-5">
<p class="text-3xl">Impressum</p>
<p class="text-small text-zinc-300 mb-5">Angaben gemäß § 5 TMG</p>
<p>Dominik Strangas <br />80937 München</p>
<p>
Vertreten durch: <br />Dominik Strangas<br /> Kontakt:<br />
<div class="flex">
Telefon: &nbsp;<DecryptLink client:load text={encryptedPhoneNumber} linkTo={`${encryptedPhoneNumberLink}`} />
</div>
<br
/>
<p>
<div class="flex">
E-Mail: &nbsp;<DecryptLink client:load text={encryptedMail} linkTo={`${encryptedMailLink}`} />
</div>
<br />Umsatzsteuer-ID:
</p>
<p>
Umsatzsteuer-Identifikationsnummer gemäß §27a Umsatzsteuergesetz: Musterustid. Wirtschafts-ID:
Musterwirtschaftsid
</p>
</p>
<Footer />
</section>
</body>
</html>