Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
659281d
nice
paulk10 Nov 25, 2021
f71c9ef
color
paulk10 Nov 25, 2021
8d7ec68
lol
paulk10 Nov 27, 2021
cede0de
lol
paulk10 Nov 27, 2021
860805e
test
ge52din Nov 27, 2021
688be67
lol2.0
reevinh Nov 27, 2021
a476727
test2
ge52din Nov 27, 2021
2929cb5
Merge branch 'main' of https://github.com/paulk10/imdbplus
ge52din Nov 27, 2021
9e6e97d
vibes3.0
reevinh Nov 27, 2021
ce3ae67
lol
paulk10 Nov 28, 2021
153486f
added professors updates
paulk10 Nov 28, 2021
4ab0ca5
added agerating to movie
paulk10 Nov 29, 2021
7948d24
added agerating to Dune movie
paulk10 Nov 29, 2021
9d8ca21
added age rating to Dune 2
paulk10 Nov 30, 2021
f8ac0f3
Ghent
paulk10 Dec 2, 2021
b75e6d4
lol
paulk10 Dec 2, 2021
2256d7f
navigation
paulk10 Dec 2, 2021
38397f4
nice
paulk10 Dec 2, 2021
cdf8132
added the images of Ghent and Antwerp
paulk10 Dec 2, 2021
cca60ea
added restaurants
paulk10 Dec 4, 2021
31dfaa8
lol
paulk10 Dec 4, 2021
eb91f60
lol
paulk10 Dec 4, 2021
c6c9d7d
changed some stuff
paulk10 Dec 4, 2021
ec71dd0
changed some stuff
paulk10 Dec 4, 2021
df73e3e
added restaurant
paulk10 Dec 4, 2021
a319d48
added restaurant to navigation
paulk10 Dec 4, 2021
ad7f91f
changed the order in navigation
paulk10 Dec 4, 2021
0fc206e
added bar
paulk10 Dec 4, 2021
e2e9cce
i really dont remember what I did
paulk10 Dec 4, 2021
8cf12d5
pictures available for cities, bars + restaurants
paulk10 Dec 4, 2021
09946e6
blocks are now addable
paulk10 Dec 5, 2021
9ed41bc
Ghent design
reevinh Dec 21, 2021
5f7b1fb
Merge branch 'main' of https://github.com/paulk10/imdbplus
reevinh Dec 21, 2021
d6d8d64
Font change h1
reevinh Dec 21, 2021
e321381
font title and sib-form
reevinh Dec 21, 2021
e28c248
remove bold
reevinh Dec 21, 2021
4d92d04
body font change
reevinh Dec 21, 2021
6340879
change margin
reevinh Dec 21, 2021
b5f855e
change colour?
reevinh Dec 21, 2021
6876d7c
added social media
paulk10 Dec 26, 2021
338b137
logo + newsletter + chat
paulk10 Dec 26, 2021
f1d8da2
hotjar
paulk10 Dec 26, 2021
dd77404
google
paulk10 Dec 26, 2021
ecd3cca
leadfeeder
paulk10 Dec 26, 2021
5438316
google analytics
paulk10 Dec 26, 2021
e2d37be
lol
paulk10 Dec 26, 2021
6c72be9
Center small card list
jeanne-gy Dec 27, 2021
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
25 changes: 25 additions & 0 deletions components/AgeRating.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React from "react"
import SbEditable from "storyblok-react"
import { render } from "storyblok-rich-text-react-renderer"
import styles from "../styles/AgeRating.module.scss"

const AgeRating = ({ data }) => {
var content = data.story.content;
return (
<SbEditable content={content} key={content._uid}>
<main>
{/* <div className={[styles.movie, styles.test].join(' ')}> */}
<div className={styles.agerating}>
<h1 className={styles.title}>
{content.title}
</h1>
</div>
<div className={styles.description}>
{render(content.description)}
</div>
</main>
</SbEditable>
)
}

export default AgeRating
51 changes: 51 additions & 0 deletions components/Bar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import React, { useState } from "react"
import SbEditable from "storyblok-react"
import { render } from "storyblok-rich-text-react-renderer"
import styles from "../styles/Bar.module.scss"
import { getData } from "../utils/storyblok"
import RelatedItemGallerySmall from "./RelatedItemGallerySmall"
import RelatedItemGallery from "./RelatedItemGallery"
import InPageSlideshow from "./InPageSlideshow"
import SmallCardList from "./SmallCardList"
import DynamicComponent from './DynamicComponent' //this needs to be imported so that the blocks work
import { FacebookShareButton, FacebookIcon,TwitterShareButton, TwitterIcon, LinkedinShareButton, LinkedinIcon } from 'next-share';

const Bar = ({ data, level }) => {
if (level === 'data') {
var content = data.story.content;
} else {
var content = data;
}

//returning the HTML
return (
<SbEditable content={content} key={content._uid}>
<main>
<div className={styles.bar}>
<h1 className={styles.title}>
{content.title}
</h1>

<div className="sharebar">
<FacebookShareButton url={"http://imdbplus.vercel.app/"+data.story.full_slug} quote={content.short} hashtag={'#imdbplus'}><FacebookIcon size={32} round /></FacebookShareButton>
<LinkedinShareButton url={"http://imdbplus.vercel.app/"+data.story.full_slug} summary={content.short}><LinkedinIcon size={32} round /></LinkedinShareButton>
<TwitterShareButton url={"http://imdbplus.vercel.app/"+data.story.full_slug} title={content.title}><TwitterIcon size={32} round /></TwitterShareButton>
</div>

<div className={styles.mainpicture} style={{ backgroundImage: `url("${content.mainpicture.filename}")` }}></div>

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

{content.body ? content.body.map((content) =>
<DynamicComponent data={content} key={content._uid} />
) : null}

</div>
</main>
</SbEditable>
)
}

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

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

function updateSortby(sortby){
setSortby(sortby);
getAllItems('bar', locale, sortby).then(
function (result) {
setItems(result.data.stories);
});
}

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

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

);
};

export default BarList;
1 change: 1 addition & 0 deletions components/BlogPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ const BlogPost = ({ blok }) => {
}

export default BlogPost
//test123
57 changes: 57 additions & 0 deletions components/City.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import React, { useState } from "react"
import SbEditable from "storyblok-react"
import { render } from "storyblok-rich-text-react-renderer"
import styles from "../styles/City.module.scss"
import { getData } from "../utils/storyblok"
import RelatedItemGallerySmall from "./RelatedItemGallerySmall"
import RelatedItemGallery from "./RelatedItemGallery"
import InPageSlideshow from "./InPageSlideshow"
import SmallCardList from "./SmallCardList"
import DynamicComponent from './DynamicComponent' //this needs to be imported so that the blocks work
import { FacebookShareButton, FacebookIcon,TwitterShareButton, TwitterIcon, LinkedinShareButton, LinkedinIcon } from 'next-share';


const City = ({ data, level }) => {
if (level === 'data') {
var content = data.story.content;
} else {
var content = data;
}

//returning the HTML
return (
<SbEditable content={content} key={content._uid}>
<main>
{/* <div className={[styles.movie, styles.test].join(' ')}> */}
<div className={styles.city}>
<h1 className={styles.title}>
{content.title}
</h1>

<div className={styles.score}>
Population: {render(content.population)}
</div>

<div className="sharebar">
<FacebookShareButton url={"http://tripadvisorplus.vercel.app/"+data.story.full_slug} quote={content.short} hashtag={'#imdbplus'}><FacebookIcon size={32} round /></FacebookShareButton>
<LinkedinShareButton url={"http://tripadvisorplus.vercel.app/"+data.story.full_slug} summary={content.short}><LinkedinIcon size={32} round /></LinkedinShareButton>
<TwitterShareButton url={"http://tripadvisorplus.vercel.app/"+data.story.full_slug} title={content.title}><TwitterIcon size={32} round /></TwitterShareButton>
</div>

<div className={styles.mainpicture} style={{ backgroundImage: `url("${content.mainpicture.filename}")` }}></div>

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

{content.body ? content.body.map((content) =>
<DynamicComponent data={content} key={content._uid} />
) : null}

</main>
</SbEditable>
)
}

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

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

function updateSortby(sortby){
setSortby(sortby);
getAllItems('city', locale, sortby).then(
function (result) {
setItems(result.data.stories);
});
}

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

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

);
};

export default CityList;
19 changes: 18 additions & 1 deletion components/DynamicComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ import EmailOptin from './EmailOptin'
import TwoCol from './TwoCol'
import Title from './Title'
import TopMovies from './TopMovies'
import AgeRating from './AgeRating'
import City from './City'
import CityList from './CityList'
import Restaurant from './Restaurant'
import RestaurantList from './RestaurantList'
import Bar from './Bar'
import BarList from './BarList'
import TopRestaurant from './TopRestaurant'

const Components = {
'teaser': Teaser,
Expand Down Expand Up @@ -51,7 +59,16 @@ const Components = {
'emailoptin':EmailOptin,
'twocol':TwoCol,
'title':Title,
'topmovies':TopMovies
'topmovies':TopMovies,
'agerating':AgeRating,
'city':City,
'citylist':CityList,
'restaurant':Restaurant,
'restaurantlist':RestaurantList,
'bar':Bar,
'barlist':BarList,
'toprestaurants':TopRestaurant

}


Expand Down
2 changes: 1 addition & 1 deletion components/EmailOptin.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const EmailOptin = ({ }) => {

<div className={styles.emailoptin}>
<div className={styles.optinbutton} onClick={() => toggleformstate()}>Keep me posted through the newsletter</div>
{/* {formstate&&<iframe width="540" height="900" src="" frameborder="0" scrolling="auto" allowfullscreen style={{ display: `block`, marginLeft: `auto`, marginRight: `auto`, maxWidth: '100%' }}></iframe>} */}
{formstate&&<iframe width="540" height="900" src="https://1dbb886b.sibforms.com/serve/MUIEAEXK1N8UeTJcQ55aYijH0yiIkH1WoozB8yNzOTg6BwhGfHNVDIftZmyBa6EuhmlkAsTM4J7oTwKhX6DJ0fQmryzQrQ3xB_rpGTL505D694DnVlFzBTVHgP-clhcOvB46SLP-CnFLy0ZjdgHe8vuCT64zNlaUJGW5IaA0f5WV1J1TDiEd35HWGFWHX_CWuGYgvKx4ducikVsg" frameborder="0" scrolling="auto" allowfullscreen style={{ display: `block`, marginLeft: `auto`, marginRight: `auto`, maxWidth: '100%' }}></iframe>}
</div>
);
};
Expand Down
15 changes: 7 additions & 8 deletions components/Footer.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import styles from "../styles/Footer.module.scss"
import Image from "next/image"


const Footer = () => {
return (
<footer className={styles.footerwrapper}>
<footer className={styles.footerwrapper}>
<div className={styles.footer}>

<div className="">
<img
src="https://a.storyblok.com/f/133261/3039x582/a60d166ec2/logo-colored-full.png/m/200x0"
alt="IMDBPlus Logo"
className=""
/>
<div className="">
<Image src="/trip-advisor-+-logo .png" alt="IMDBPlus Logo" width="150" height="150" />
</div>
<p>IMDB Plus is every bit as good as IMDB. Plus!</p>

<p>TripAdvisorPlus is every bit as good as TripAdvisor. Plus!</p>
</div>
</footer>

Expand Down
4 changes: 2 additions & 2 deletions components/FrontpageSlideshow.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const FrontpageSlideshow = ({ data, level, locale }) => {

const [newsitems, setNewsitems] = useState([]);

getFPSData(content._uid, locale, content.preview = false, 'newsitem').then(
getFPSData(content._uid, locale, content.preview = false, 'city').then(
function (result) {
setNewsitems(result.data.stories);
});
Expand All @@ -69,7 +69,7 @@ const FrontpageSlideshow = ({ data, level, locale }) => {
const lang = item.lang === "default" ? "/en" : `/${item.lang}`;
return (
<a
href={`${lang}/newsitem/${item.slug}`}
href={`${lang}/city/${item.slug}`}
>
<div className={styles.item}>
<div className={styles.mainpicture} style={{ backgroundImage: `url("${item.content.mainpicture.filename}")` }}>
Expand Down
18 changes: 18 additions & 0 deletions components/Movie.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ const Movie = ({ data, level }) => {
var genres = data.rels.filter(obj => {
return content.genres.includes(obj.uuid);
})
var ageratings = data.rels.filter(obj => {
return content.agerating.includes(obj.uuid);
})
} else {
var content = data;
}
Expand Down Expand Up @@ -88,6 +91,16 @@ const Movie = ({ data, level }) => {
</div>
))}
</div>

<div className={styles.ageratinglist}>
{ageratings.map((item, index) => (
<a href={`/${item.full_slug}`}><div className={styles.agerating}>
{item.content.title}
</div></a>
))}
</div>


<div className={styles.mainpicture} style={{ backgroundImage: `url("${content.mainpicture.filename}")` }}>
</div>
<div className={styles.imagegallery}>
Expand All @@ -97,6 +110,11 @@ const Movie = ({ data, level }) => {
<div className={styles.short}>
{render(content.short)}
</div>

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

<div className={styles.synopsis}>
{render(content.synopsis)}
</div>
Expand Down
Loading