Browse Source

changed routes and lang tag from english to german

Bernadette Elena Hammerle 2 years ago
parent
commit
690d1f61d0
6 changed files with 21 additions and 21 deletions
  1. 1 1
      public/index.html
  2. 4 4
      src/App.js
  3. 0 13
      src/Error.js
  4. 13 0
      src/Error404.js
  5. 1 1
      src/Home.js
  6. 2 2
      src/Navigation.js

+ 1 - 1
public/index.html

@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html lang="en">
+<html lang="de">
   <head>
     <meta charset="utf-8" />
     <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />

+ 4 - 4
src/App.js

@@ -8,7 +8,7 @@ import Help from "./Help.js";
 
 import Navigation from "./Navigation.js";
 import Footer from "./Footer.js";
-import Error from "./Error.js";
+import Error404 from "./Error404.js";
 
 import "bootstrap/dist/css/bootstrap.min.css";
 import "./App.css";
@@ -22,9 +22,9 @@ function App() {
         <Switch>
           <Route exact path="/" component={Home} />
           <Route path="/addition" component={Addition} />
-          <Route path="/subtraction" component={Subtraction} />
-          <Route path="/help" component={Help} />
-          <Route component={Error} />
+          <Route path="/subtraktion" component={Subtraction} />
+          <Route path="/hilfe" component={Help} />
+          <Route component={Error404} />
         </Switch>
       </BrowserRouter>
 

+ 0 - 13
src/Error.js

@@ -1,13 +0,0 @@
-import React from "react";
-import "./App.css";
-
-function Subtraction() {
-  return (
-    <main>
-      <h1>error 404</h1>
-      <p>Sorry, this page doesn't exist.</p>
-    </main>
-  );
-}
-
-export default Subtraction;

+ 13 - 0
src/Error404.js

@@ -0,0 +1,13 @@
+import React from "react";
+import "./App.css";
+
+function Error404() {
+  return (
+    <main>
+      <h1>Error 404</h1>
+      <p>Diese Seite existiert leider nicht.</p>
+    </main>
+  );
+}
+
+export default Error404;

+ 1 - 1
src/Home.js

@@ -7,7 +7,7 @@ function Home() {
       <p> Derzeit sind zwei Grundrechnungsarten verf&uuml;gbar:&nbsp;
         <a href="/addition">Addition</a>
         &nbsp;und&nbsp;
-        <a href="/subtraction">Subtraction</a>
+        <a href="/subtraktion">Subtraktion</a>
         &nbsp;
       </p>
     </main>

+ 2 - 2
src/Navigation.js

@@ -32,12 +32,12 @@ const Navigation = (props) => {
             </NavLink>
           </NavItem>
           <NavItem>
-            <NavLink href="/subtraction">
+            <NavLink href="/subtraktion">
               Subtraktion
             </NavLink>
           </NavItem>
           <NavItem>
-            <NavLink href="/help">
+            <NavLink href="/hilfe">
               Hilfe
             </NavLink>
           </NavItem>