Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
e9dfb5b
First changes
TristanDML Nov 29, 2021
c6144d4
change bckgr color
TristanDML Nov 29, 2021
ca92285
Update color
TristanDML Nov 29, 2021
ed07fbc
change-color
TristanDML Nov 29, 2021
68563ef
bvkgr
TristanDML Nov 29, 2021
435b021
message
TristanDML Nov 29, 2021
bd941d1
agerating
TristanDML Nov 30, 2021
c112601
slff
TristanDML Dec 2, 2021
f6b2f9c
Change bckgr color
TristAot Dec 22, 2021
6dfc877
first commit
Dec 22, 2021
0bebef1
games navigation bar
TristAot Dec 22, 2021
a14587f
Merge branch 'main' of https://github.com/TristanDML/imdbplus
TristAot Dec 22, 2021
40fe485
fontsize
Dec 22, 2021
d6c8315
pink
Dec 22, 2021
d88a2f1
gamespagev1
TristAot Dec 22, 2021
b19b850
Mymessage
TristAot Dec 22, 2021
b1931b6
TooLate
TristAot Dec 23, 2021
f2616b2
one more
TristAot Dec 23, 2021
a0745ab
genre
TristAot Dec 23, 2021
6770496
CarouselFrontPage
TristAot Dec 23, 2021
e38eddd
picturesgame
TristAot Dec 23, 2021
15e1b81
platform
TristAot Dec 23, 2021
cb66ce5
frontpage
TristAot Dec 23, 2021
f7dbf12
protagonist
TristAot Dec 23, 2021
2202b96
genders
TristAot Dec 23, 2021
324d377
platforms
TristAot Dec 23, 2021
d3ad874
no double platform
TristAot Dec 23, 2021
2ff2b8d
zzzz
TristAot Dec 23, 2021
fb17bda
countrycompanies
TristAot Dec 23, 2021
a7e9822
newchanges
TristAot Dec 23, 2021
7c23924
zzzz
TristAot Dec 23, 2021
8cb2f2e
try
TristAot Dec 27, 2021
e58e69e
background change color
TristAot Dec 27, 2021
fcfe3e2
yarn delete
TristAot Dec 27, 2021
aef595b
bckgr color
TristAot Dec 27, 2021
eff8aab
morning
TristAot Dec 27, 2021
b9d13a9
platform_company
TristAot Dec 27, 2021
80a8d91
companyplatform
TristAot Dec 27, 2021
62ecf15
platformgames
TristAot Dec 27, 2021
2133ed8
games-characters
TristAot Dec 27, 2021
574ca64
Publisher
TristAot Dec 27, 2021
6e64d34
gendername
TristAot Dec 27, 2021
cee0647
release date
TristAot Dec 27, 2021
9fc0931
reviews
TristAot Dec 27, 2021
a71c19d
changeclrs
TristAot Dec 27, 2021
8653c4e
navig
TristAot Dec 27, 2021
d0bdeb7
hotjar
TristAot Dec 27, 2021
ca3b1df
google analytics
TristAot Dec 27, 2021
4608432
googleanalytics
TristAot Dec 27, 2021
2aa08ad
zzz
TristAot Dec 27, 2021
fe5f6de
zzzz
TristAot Dec 27, 2021
03597e6
LEEDFEEDER
TristAot Dec 27, 2021
35ba70a
chat
TristAot Dec 27, 2021
b109baf
emailoption
TristAot Dec 27, 2021
6cfe48a
bckgrcolor
TristAot Dec 27, 2021
7bfedde
whatevs
TristAot Dec 27, 2021
f432fe7
french
TristAot Dec 27, 2021
840a33a
colors
TristAot Dec 28, 2021
cc85eda
fr plateformes
TristAot Dec 28, 2021
331ab01
charachters position
TristAot Dec 28, 2021
3fcda93
video + link
TristAot Jan 1, 2022
afd77e3
fullscreen
TristAot Jan 1, 2022
613e120
company-games
TristAot Jan 1, 2022
fc8ac78
links and videos only if submitted
TristAot Jan 1, 2022
8118415
translate age
TristAot Jan 1, 2022
f2bf5a9
Company flag
TristAot Jan 2, 2022
b405d82
minimumage
TristAot Jan 2, 2022
cdafab3
linktopegi
TristAot Jan 3, 2022
5afd33d
Submit review
TristAot Jan 3, 2022
4d9d650
No order in platforms
TristAot Jan 3, 2022
ec707f6
nomoresortby
TristAot Jan 3, 2022
685d5bb
reviewlist
TristAot Jan 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified README.md
Binary file not shown.
Binary file added assets/200x0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions components/BigCard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React, { useState } from "react"
import { render } from "storyblok-rich-text-react-renderer"
import styles from "../styles/BigCard.module.scss"



const BigCard = ({ lang, title, short, picture, url, type, price }) => {

return (
<a href={`/${url}`} className={`bg-shadow-${type} ${styles.item}`}>
<div >
<div className={styles.mainpicture} style={{ backgroundImage: `url("${picture}")` }}>
</div>
{price && <div className={styles.price}>${price}</div>}
<div className={styles.textpart}>
<div className={styles.title}>
{title}
</div>
</div>
</div>
</a>
)
}

export default BigCard
46 changes: 46 additions & 0 deletions components/BigCardList.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import React, { useState } from "react"
import { render } from "storyblok-rich-text-react-renderer"
import styles from "../styles/BigCardList.module.scss"
import BigCard from "./BigCard"
import BiggestCard from "./BiggestCard"


const BigCardList = ({ items, title, type }) => {

return (
// <div className={styles.itemgallery}>
// <div className={styles.title}>{title}</div>
// <div className={styles.relateditems}>
// {items.map((item, index) => (
// const lang = item.lang === "default" ? "/en" : `/${item.lang}`;
// return(
// <div>
// {type=="product" && <SmallCard title={item.content.title} picture={item.content.mainpicture.filename} url={item.full_slug} type={type} price={item.content.price} />}
// {type!="product" && <SmallCard title={item.content.title} picture={item.content.mainpicture.filename} url={item.full_slug} type={type} />}
// </div>
// );
// ))}
// </div>
// </div>


<div className={styles.itemgallery}>
{title&&title!=""&&<div className={styles.title}>{title}</div>}
<div className={styles.gallerycontent}>
{items.map((item) => {
const lang = item.lang === "default" ? "/en" : `/${item.lang}`;
return (
<div className={styles.smallcardwrapper}>
{type == "minimumage" && <BiggestCard lang={lang} picture={item.content.logo.filename } url={"https://pegi.info/"} />}
{type != "product" && type != "minimumage"&& <BigCard lang={lang} title={item.content.title} picture={item.content.logo.filename} url={item.full_slug} type={type} />}
</div>
);
})}
</div>

</div>

)
}

export default BigCardList
25 changes: 25 additions & 0 deletions components/BiggestCard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React, { useState } from "react"
import { render } from "storyblok-rich-text-react-renderer"
import styles from "../styles/BigCard.module.scss"



const BigCard = ({ lang, title, short, picture, url, type, price }) => {

return (
<a href={url} className={`bg-shadow-${type} ${styles.item}`}>
<div >
<div className={styles.mainpicture} style={{ backgroundImage: `url("${picture}")` }}>
</div>
{price && <div className={styles.price}>${price}</div>}
<div className={styles.textpart}>
<div className={styles.title}>
{title}
</div>
</div>
</div>
</a>
)
}

export default BigCard
163 changes: 163 additions & 0 deletions components/Character.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
import React, { useState } from "react"
import SbEditable from "storyblok-react"
import { render } from "storyblok-rich-text-react-renderer"
import styles from "../styles/Character.module.scss"
import { getData } from "../utils/storyblok"
import RelatedItemGallerySmall from "./RelatedItemGallerySmall"
import RelatedItemGallery from "./RelatedItemGallery"
import InPageSlideshow from "./InPageSlideshow"
import SmallCardList from "./SmallCardList"
import { resolveHref } from "next/dist/next-server/lib/router/router"

// const resolveDirectors = {
// en: 'Directors',
// nl: 'Regisseurs',
// }

// const resolveWriters = {
// en: 'Writers',
// nl: 'Schrijvers',
// }

// const resolveStars = {
// en: 'Stars',
// nl: 'Sterren',
// }

// const resolveMerchandise = {
// en: 'Merchandise',
// nl: 'Producten',
// }

// const resolveNews = {
// en: 'News',
// nl: 'Nieuws',
// }
const resolveCharacters = {
en: 'Characters',
nl: 'Personages',
fr: 'Personnages'
}
const resolveEnnemies = {
en: 'Friends, family and ennemies',
nl: 'Vrienden, gezin en vijanden',
fr: 'Amis, famille et ennemis',
}
const resolveGames = {
en: 'Games',
nl: 'Spellen',
fr: 'Jeux',
}
const resolveAge = {
en: 'Age of the character:',
nl: 'Leeftijd van het personage:',
fr: 'Âge du personnage:',
}
const Character = ({ data, level }) => {
var locale = 'en';
//enriching data
if (level === 'data') {

locale = data.story.lang;
var content = data.story.content;
var roles = data.rels.filter(obj => {
return content.role.includes(obj.uuid);
});
// var genders =data.story.content.gender;
var genders=data.rels.filter(obj => {
return content.gender.includes(obj.uuid);
});
var relatedcharacters=data.rels.filter(obj => {
return content.character.includes(obj.uuid);
})
var playables = data.rels.filter(obj => {
return content.playable.includes(obj.uuid);
});
// var directors = data.rels.filter(obj => {
// return content.directors.includes(obj.uuid);
// });
// var stars = data.rels.filter(obj => {
// return content.stars.includes(obj.uuid);
// });
// var writers = data.rels.filter(obj => {
// return content.writers.includes(obj.uuid);
// })
// var studios = data.rels.filter(obj => {
// return content.studios.includes(obj.uuid);
// })


var pictures = content.mainpicture;
} else {
var content = data;
}
// const [products, setProducts] = useState([]);
// getData(data.story.uuid, locale, content.preview = false, 'product', 'game').then(
// function (result) {
// setProducts(result.data.stories);
// });

// const [newsitems, setNewsitems] = useState([]);
// getData(data.story.uuid, locale, content.preview = false, 'newsitem', 'game').then(
// function (result) {
// setNewsitems(result.data.stories);
// });
const [games_good, setGames] = useState([]);
getData(data.story.uuid, locale, content.preview = false, 'game', 'character').then(
function (result) {
setGames(result.data.stories);
});

//returning the HTML
return (
<SbEditable content={content} key={content._uid}>
<main>
{/* <div className={[styles.movie, styles.test].join(' ')}> */}
<div className={styles.character}>
<h1 className={styles.title}>
{content.title}
</h1>
<div className={styles.genders}>
{genders.map((item, index) => (
<div className={styles.gendersname}>
{item.content.title}
<div className={styles.gender}>
<img src={item.content.logo.filename}></img>

</div>
</div> ))}
<div className={styles.roles}>
{roles.map((item, index) => (
<div className={styles.role}>
<img src={item.content.logo.filename}></img>
</div>
))}
<div className={styles.roles}>
{roles.map((item, index) => (
<div className={styles.rolesname}>
{item.content.title}
</div>
))} </div>
</div>

<div className={styles.age}>
{resolveAge[locale]} {render(content.age)}
</div>
<div className={styles.mainpicture} style={{ backgroundImage: `url("${content.mainpicture.filename}")` }}>
</div>
<div className={styles.imagegallery} style={{ backgroundImage: `url("${content.mainpicture.filename}")` }}>
</div>
<div className={styles.relatedcharacters}>
{relatedcharacters && relatedcharacters.length > 0 && <SmallCardList items={relatedcharacters} title={resolveEnnemies[locale]} type='character'></SmallCardList>}
</div>
{/* <div className={styles.links}>
<a href={""}>VISIT</a>
</div> */}
</div>
{games_good && games_good.length > 0 && <SmallCardList items={games_good} title={resolveGames[locale]} type="game"></SmallCardList>}</div>
</main>
</SbEditable>
)
}

export default Character
32 changes: 32 additions & 0 deletions components/CharacterList.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import React, { useState } from "react"
import SbEditable from "storyblok-react"
import { render } from "storyblok-rich-text-react-renderer"
import styles from "../styles/CharacterList.module.scss"
import { getAllItems } from "../utils/storyblok"
import SmallCardList from "./SmallCardList"

const CharacterList = ({ data, level, locale }) => {
if (level === 'data') {
var content = data.story.content;
} else {
var content = data;
}
const [sortby, setSortby] = useState();

const [items, setItems] = useState([]);
getAllItems('character', locale, sortby).then(
function (result) {
setItems(result.data.stories);
});

return (
<div className={styles.list}>
<div>
{items && items.length > 0 && <SmallCardList items={items} type="character"></SmallCardList>}
</div>
</div>

);
};

export default CharacterList;
66 changes: 66 additions & 0 deletions components/Company.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import React, { useState } from "react"
import SbEditable from "storyblok-react"
import { render } from "storyblok-rich-text-react-renderer"
import styles from "../styles/Company.module.scss"
import { getData } from "../utils/storyblok"
import BigCardList from "./BigCardList"
import SmallCardList from "./SmallCardList"
const resolvePlatform ={
en: 'Platforms',
nl: 'Platforms',
fr: 'Plateformes',
}
const resolveGames = {
en: 'Games',
nl: 'Spellen',
fr: 'Jeux',
}
const Company= ({ data }) => {
var locale = data.story.lang;

var content = data.story.content;
var countries = data.rels.filter(obj => {
return content.country.includes(obj.uuid);
});

const [platforms_good, setPlatforms] = useState([]);
getData(data.story.uuid, locale, content.preview = false, 'platform', 'companies').then(
function (result) {
setPlatforms(result.data.stories);
});
const [games_good, setGames] = useState([]);
getData(data.story.uuid, locale, content.preview = false, 'game', 'publisher').then(
function (result) {
setGames(result.data.stories);
});
return (
<SbEditable content={content} key={content._uid}>
<main>
{/* <div className={[styles.movie, styles.test].join(' ')}> */}
<div className={styles.studio}>
<h1 className={styles.title}>
{content.title}
</h1><div className={styles.logo}>
<img src={content.logo.filename} />
</div>
{countries.map((item, index) => (
<div className={styles.country}>
<img src={item.content.flag.filename}></img>
</div>
))}


<div className={styles.description}>
{render(content.description)}
</div>


{platforms_good && platforms_good.length > 0 && <BigCardList items={platforms_good} title={resolvePlatform[locale]} type="platform"></BigCardList>}
{games_good && games_good.length > 0 && <SmallCardList items={games_good} title={resolveGames[locale]} type="game"></SmallCardList>} </div>

</main>
</SbEditable>
)
}

export default Company
32 changes: 32 additions & 0 deletions components/CompanyList.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import React, { useState } from "react"
import SbEditable from "storyblok-react"
import { render } from "storyblok-rich-text-react-renderer"
import styles from "../styles/CompanyList.module.scss"
import { getAllItems } from "../utils/storyblok"
import BigCardList from "./BigCardList"

const CompanyList = ({ data, level, locale }) => {
if (level === 'data') {
var content = data.story.content;
} else {
var content = data;
}
const [sortby, setSortby] = useState();

const [items, setItems] = useState([]);
getAllItems('Company', locale, sortby).then(
function (result) {
setItems(result.data.stories);
});

return (
<div className={styles.list}>
<div>
{items && items.length > 0 && <BigCardList items={items} type="Company"></BigCardList>}
</div>
</div>

);
};

export default CompanyList;
Loading