Ein Offline-DSGVO-Beschwerdegenerator gegen Tracking-Einbettungen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.7 KiB

import React, { useState } from 'react';
import ReactDOM from 'react-dom';
import {
HashRouter as Router,
} from "react-router-dom";
import './locale/i18n';
import FAQ from "./components/faq"
import Navigation from "./components/navigation"
import Footer from "./components/footer"
import ComplaintGenerator from "./components/complaintgenerator"
import "./style/bootstrap.min.css"
import "./style/main.scss"
import { useTranslation } from 'react-i18next';
import Tracker from './components/tracker';
function App () {
const [locale, setLocale] = useState("de");
const [t, i18n] = useTranslation();
const changeLanguage = (event: React.ChangeEvent<HTMLSelectElement>) => {
const newLocale = event.target.value;
return (
<Navigation locale={locale} changeLanguage={changeLanguage}/>
<div style={{minHeight: "calc(100vh - 350px)"}}>
<Route path="/faq">
<FAQ />
<Route path="/tracker">
<Tracker />
<Route path="/">
<div className="content">
<h3 className="slogan linebreaks">{t("slogan")}</h3>
<ComplaintGenerator locale={locale} />
<Footer locale={locale} changeLanguage={changeLanguage}/>
ReactDOM.render(<App />, document.getElementById('root'));