Added binas page
parent
aca2f3d359
commit
1ca60c20cc
@ -0,0 +1,40 @@
|
||||
import Page from "../components/Page";
|
||||
import Footer from "../components/Footer";
|
||||
import Navbar from "../components/Navbar";
|
||||
import LazyLoad from "react-lazyload";
|
||||
import { Component } from "react";
|
||||
|
||||
class Binas extends Component {
|
||||
links: string[];
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.links = new Array();
|
||||
|
||||
for (let i = 1; i < 305; i++) {
|
||||
this.links.push(this.link(i));
|
||||
}
|
||||
}
|
||||
|
||||
link = (page) =>
|
||||
`https://cdp.contentdelivery.nu/1fa0c165-3b6c-4c5b-acee-a231157e66a3/20160908101125/extract/assets/img/layout/${page}.jpg`;
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Page title="Binas" description="Voor wanneer je effe de binas nodig hebt">
|
||||
<Navbar />
|
||||
<div className="binas">
|
||||
{this.links.map((link) => (
|
||||
<LazyLoad height={100} offset={100}>
|
||||
<img src={link} alt="" />
|
||||
</LazyLoad>
|
||||
))}
|
||||
</div>
|
||||
<Footer />
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Binas;
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,31 @@
|
||||
.binas {
|
||||
padding-top: 6rem;
|
||||
|
||||
img {
|
||||
border: 0.1rem solid #d1d1d1;
|
||||
border-radius: 5px;
|
||||
|
||||
max-width: 100vw;
|
||||
|
||||
@media screen and (min-width: 0px) {
|
||||
height: 30rem;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 300px) {
|
||||
height: 45rem;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 600px) {
|
||||
height: 60rem;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 900px) {
|
||||
height: 75rem;
|
||||
}
|
||||
|
||||
margin: auto;
|
||||
display: block;
|
||||
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue