Bigger redesign

This commit is contained in:
Christian Anetzberger
2023-01-31 17:05:28 +01:00
parent 7ac213d208
commit 13ecc97011
29 changed files with 3207 additions and 299 deletions

View File

@@ -1,19 +1,25 @@
// React, NextJS
import React from "react";
import Image from "next/image";
import Image from "next/image"
// Bootstrap components
import Container from 'react-bootstrap/Container';
import Row from 'react-bootstrap/Row';
export default function Productpage(props) {
return (
<>
<div className="container-fluid products-container navbar-spacing">
<div className="row align-items-center min-height-100">
<>
<Container fluid className="products-container navbar-spacing">
<Row className="align-items-center min-height-100">
<div
className={`align-self-stretch background-image d-flex flex-column justify-content-center products-img-shadow products-img ${props.reversed ? "order-lg-1" : ""
} ${props.smallbg ? "col-lg-5" : "col-lg-6"}`}
style={{ backgroundImage: `url(${props.bgurl})` }}
className={`align-self-stretch background-image d-flex flex-column justify-content-center products-img-shadow products-img-container col-lg-6 col-12 ${props.reversed ? "order-lg-1" : ""}`}
style={{ backgroundImage: `url(${props.bgurl})` }} title={props.bgtitle}
>
<div className="center-icon">
{props.iconurl &&
<div className="products-img-icon-wrapper">
<Image src={props.iconurl} width={300} height={300} alt={props.iconalt} title={props.iconalt} className="products-icon" priority/>
</div>
}
</div>
@@ -28,8 +34,8 @@ export default function Productpage(props) {
{props.addtext && props.addtext}
</div>
</div>
</div>
</div>
</Row>
</Container>
</>
);
}
}