Fixed Routes

This commit is contained in:
Christian Anetzberger
2022-03-15 10:58:31 +01:00
parent 8dc95b3050
commit 22736073da
5 changed files with 22 additions and 12 deletions

View File

@@ -290,7 +290,7 @@ class Navbar extends React.Component {
<div className="nav-subitem">
<Link
href={"/fertigungsverfahren/fuegeverfahren"}
href={"/fertigungsverfahren/fügeverfahren"}
className="nav-link"
>
<a>

View File

@@ -1,5 +1,6 @@
import React from "react";
import { ReactSVG } from "react-svg";
import Image from "next/image";
export default function Productpage(props) {
return (
@@ -12,8 +13,8 @@ export default function Productpage(props) {
} ${props.smallbg ? "col-lg-5" : "col-lg-6"}`}
style={{ backgroundImage: `url(${props.bgurl})` }}
>
<div className="icon-size align-items-center">
<ReactSVG src={props.iconurl} />
<div className="center-icon">
<Image src={props.iconurl} width={300} height={300} />
</div>
</div>
<div

View File

@@ -12,10 +12,10 @@ export async function getStaticPaths() {
{ params: { index: "stanzteile" } },
{ params: { index: "biegeteile" } },
{ params: { index: "lasergravur" } },
{ params: { index: "blechkonstruktion" } },
{ params: { index: "baugruppe" } },
{ params: { index: "blechkonstruktionen" } },
{ params: { index: "baugruppen" } },
{ params: { index: "fügeverfahren" } },
{ params: { index: "entgraten" } },
{ params: { index: "entgrattechnik" } },
],
fallback: false, // See the "fallback" section below
};
@@ -91,7 +91,7 @@ Wir beraten Sie gerne, wenn es um die Machbarkeit von Biegeteilen geht. Dabei k
hkey: "Lasergravieren, Lasergravur",
},
};
case "blechkonstruktion":
case "blechkonstruktionen":
return {
props: {
title: "Blechkonstruktion",
@@ -107,7 +107,7 @@ Wir haben das Know-how um Blechteile zu konstruieren, die später problemlos und
hkey: "Blechkonstruktion",
},
};
case "baugruppe":
case "baugruppen":
return {
props: {
title: "Baugruppen",
@@ -139,7 +139,7 @@ Kantenschutz`,
hkey: "Fügeverfahren",
},
};
case "entgraten":
case "entgrattechnik":
return {
props: {
title: "Entgrattechnik",

View File

@@ -19,16 +19,16 @@
<loc>https://www.prothmann.com/fertigungsverfahren/lasergravur</loc>
</url>
<url>
<loc>https://www.prothmann.com/fertigungsverfahren/blechkonstruktion</loc>
<loc>https://www.prothmann.com/fertigungsverfahren/blechkonstruktionen</loc>
</url>
<url>
<loc>https://www.prothmann.com/fertigungsverfahren/baugruppe</loc>
<loc>https://www.prothmann.com/fertigungsverfahren/baugruppen</loc>
</url>
<url>
<loc>https://www.prothmann.com/fertigungsverfahren/fügeverfahren</loc>
</url>
<url>
<loc>https://www.prothmann.com/fertigungsverfahren/entgraten</loc>
<loc>https://www.prothmann.com/fertigungsverfahren/entgrattechnik</loc>
</url>
<url>
<loc>https://www.prothmann.com/materialien</loc>

View File

@@ -147,6 +147,7 @@ section {
@include media-breakpoint-up(lg) {
min-height: calc(100vh - (200px - 49px));
.products-img:first-of-type {
min-height: calc(100vh - 49px);
}
@@ -191,3 +192,11 @@ section {
.minh-100vh {
min-height: 100vh;
}
.center-icon {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-content: center;
justify-content: center;
}