tante locandine di test
parent
5c655fdae9
commit
d7232a4be3
|
@ -6,7 +6,7 @@ import CardFilm from './CardFilm';
|
|||
|
||||
class CardContainer extends React.Component {
|
||||
render() {
|
||||
const elements = [
|
||||
const locandine = [
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine01.jpeg",
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine02.jpeg",
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine03.jpeg",
|
||||
|
@ -17,14 +17,25 @@ class CardContainer extends React.Component {
|
|||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine08.jpg",
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine09.jpg",
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine10.jpg",
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine11.jpg",
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine12.jpg",
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine13.jpg",
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine14.jpg",
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine15.jpg",
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine16.jpg",
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine17.jpg",
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine18.jpg",
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine19.jpg",
|
||||
"https://www.ilpost.it/wp-content/uploads/2017/12/locandine20.jpg",
|
||||
];
|
||||
|
||||
const items = []
|
||||
const cards = []
|
||||
|
||||
for (const [index, value] of elements.entries()) {
|
||||
items.push(
|
||||
for (const [index, value] of locandine.entries()) {
|
||||
cards.push(
|
||||
<CardFilm
|
||||
alt="copertina"
|
||||
key={index}
|
||||
src={value}
|
||||
title="Card Title"
|
||||
body="Some quick example text to build on the card title and make up the bulk of the card's content."
|
||||
|
@ -36,7 +47,7 @@ class CardContainer extends React.Component {
|
|||
<div>
|
||||
<p className="sect-title">{this.props.sectionTitle}</p>
|
||||
<div className="container-mod">
|
||||
{items}
|
||||
{cards}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -7,9 +7,10 @@ class Home extends React.Component {
|
|||
render() {
|
||||
return (
|
||||
<>
|
||||
<Navbar brand="MPBE" />
|
||||
<Parallax />
|
||||
<CardContainer sectionTitle="Latest Uploads" />
|
||||
<Navbar brand="MPBE" />
|
||||
<Parallax />
|
||||
<CardContainer sectionTitle="Latest Uploads" />
|
||||
<CardContainer sectionTitle="Random" />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue