Skip to content

Commit

Permalink
feat: seed now complete
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhadwen committed Apr 24, 2020
1 parent 2700780 commit e3dc6d1
Show file tree
Hide file tree
Showing 9 changed files with 232 additions and 57 deletions.
Binary file modified public/images/series/children/arthur/large.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/series/children/dora-the-explorer/large.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/series/documentaries/amanda-knox/large.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/series/documentaries/citizenfour/large.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/series/documentaries/man-on-wire/large.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/series/documentaries/man-on-wire/small.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/components/card/styles/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const Image = styled.img`
border: 0;
width: 100%;
max-width: 305px;
cursor: pointer;
height: auto;
padding: 0;
margin: 0;
Expand Down Expand Up @@ -100,9 +101,12 @@ export const Feature = styled.div`
display: flex;
flex-direction: row;
background: url(${({ src }) => src});
background-size: cover;
background-size: contain;
position: relative;
height: 500px;
background-position-x: right;
background-repeat: no-repeat;
background-color: black;
`;

export const FeatureTitle = styled(Title)`
Expand Down
283 changes: 227 additions & 56 deletions src/seed.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ export function seedDatabase(firebase) {
firebase.firestore().collection('series').add({
id: getUUID(),
title: 'The Confession Killer',
description: '',
description:
'Henry Lee Lucas was an American convicted serial killer whose crimes spanned from 1960 to 1983. He was convicted of murdering eleven people and condemned to death for the murder of Debra Jackson, although his sentence would be commuted to life in prison in 1998.',
genre: 'crime',
maturity: '18',
slug: 'the-confession-killer',
Expand Down Expand Up @@ -247,67 +248,237 @@ export function seedDatabase(firebase) {
/* Films
============================================ */
// Drama
for (let index = 0; index < 5; index += 1) {
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'The Prestige',
description:
'Two friends and fellow magicians become bitter enemies after a sudden tragedy. As they devote themselves to this rivalry, they make sacrifices that bring them fame but with terrible consequences.',
genre: 'drama',
maturity: '15',
slug: 'the-prestige',
});
}
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'The Prestige',
description:
'Two friends and fellow magicians become bitter enemies after a sudden tragedy. As they devote themselves to this rivalry, they make sacrifices that bring them fame but with terrible consequences.',
genre: 'drama',
maturity: '15',
slug: 'the-prestige',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Fight Club',
description:
'Discontented with his capitalistic lifestyle, a white-collared insomniac forms an underground fight club with Tyler, a careless soap salesman. The project soon spirals down into something sinister.',
genre: 'drama',
maturity: '15',
slug: 'fight-club',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Kings Speech',
description:
'King George VI tries to overcome his stammering problem with the help of speech therapist Lionel Logue and makes himself worthy enough to lead his country through World War II.',
genre: 'drama',
maturity: '15',
slug: 'kings-speech',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'The Revenant',
description:
'Hugh Glass, a legendary frontiersman, is severely injured in a bear attack and is abandoned by his hunting crew. He uses his skills to survive and take revenge on his companion, who betrayed him.',
genre: 'drama',
maturity: '15',
slug: 'the-revenant',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'The Social Network',
description:
'Mark Zuckerberg creates a social networking site, Facebook, with the help of his friend Eduardo Saverin. But soon, a string of lies tears their relationship apart even as Facebook connects people.',
genre: 'drama',
maturity: '12',
slug: 'the-social-network',
});

// Suspense
for (let index = 0; index < 5; index += 1) {
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Shutter Island',
description:
'Teddy Daniels and Chuck Aule, two US marshals, are sent to an asylum on a remote island in order to investigate the disappearance of a patient, where Teddy uncovers a shocking truth about the place.',
genre: 'suspense',
maturity: '15',
slug: 'shutter-island',
});
}
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Shutter Island',
description:
'Teddy Daniels and Chuck Aule, two US marshals, are sent to an asylum on a remote island in order to investigate the disappearance of a patient, where Teddy uncovers a shocking truth about the place.',
genre: 'suspense',
maturity: '15',
slug: 'shutter-island',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Gone Girl',
description:
'Nick Dunne discovers that the entire media focus has shifted on him when his wife Amy Dunne disappears on the day of their fifth wedding anniversary.',
genre: 'suspense',
maturity: '15',
slug: 'gone-girl',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Prisoners',
description:
"When the police take time to find Keller Dover's daughter and her friend, he decides to go on a search himself. His desperation leads him closer to finding the truth and also jeopardises his own life.",
genre: 'suspense',
maturity: '15',
slug: 'prisoners',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Seven',
description:
'A serial killer begins murdering people according to the seven deadly sins. Two detectives, one new to the city and the other about to retire, are tasked with apprehending the criminal.',
genre: 'suspense',
maturity: '15',
slug: 'seven',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Zodiac',
description:
'Robert Graysmith, a cartoonist by profession, finds himself obsessively thinking about the Zodiac killer. He uses his puzzle-solving abilities to get closer to revealing the identity of the killer.',
genre: 'suspense',
maturity: '15',
slug: 'zodiac',
});

// Children
for (let index = 0; index < 5; index += 1) {
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Hotel Transylvania',
description:
'Dracula, who owns a high-end resort for monsters, attempts to keep his daughter from falling in love with Jonathan, a human.',
genre: 'children',
maturity: '0',
slug: 'hotel-transylvania',
});
}
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Hotel Transylvania',
description:
'Dracula, who owns a high-end resort for monsters, attempts to keep his daughter from falling in love with Jonathan, a human.',
genre: 'children',
maturity: '0',
slug: 'hotel-transylvania',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Despicable Me',
description:
'Gru, a criminal mastermind, adopts three orphans as pawns to carry out the biggest heist in history. His life takes an unexpected turn when the little girls see him as their potential father.',
genre: 'children',
maturity: '0',
slug: 'despicable-me',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Frozen',
description:
'Anna sets out on a journey with an iceman, Kristoff, and his reindeer, Sven, in order to find her sister, Elsa, who has the power to convert any object or person into ice.',
genre: 'children',
maturity: '0',
slug: 'frozen',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Spirited Away',
description:
'In this animated feature by noted Japanese director Hayao Miyazaki, 10-year-old Chihiro (Rumi Hiiragi) and her parents (Takashi Naitô, Yasuko Sawaguchi) stumble upon a seemingly abandoned amusement park.',
genre: 'children',
maturity: '0',
slug: 'spirited-away',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Up',
description:
"Carl, an old widower, goes off on an adventure in his flying house in search of Paradise Falls, his wife's dream destination.",
genre: 'children',
maturity: '0',
slug: 'up',
});

// Thriller
for (let index = 0; index < 5; index += 1) {
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Joker',
description:
'Forever alone in a crowd, failed comedian Arthur Fleck seeks connection as he walks the streets of Gotham City.',
genre: 'thriller',
maturity: '15',
slug: 'joker',
});
}
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Joker',
description:
'Forever alone in a crowd, failed comedian Arthur Fleck seeks connection as he walks the streets of Gotham City.',
genre: 'thriller',
maturity: '15',
slug: 'joker',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'A Quiet Place',
description:
'The Abbott family must now face the terrors of the outside world as they fight for survival in silence. Forced to venture into the unknown, they realize that the creatures that hunt by sound are not the only threats that lurk beyond the sand path.',
genre: 'thriller',
maturity: '15',
slug: 'a-quiet-place',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Black Swan',
description:
'Nina, a ballerina, gets the chance to play the White Swan, Princess Odette. But she finds herself slipping into madness when Thomas, the artistic director, decides that Lily might fit the role better.',
genre: 'thriller',
maturity: '15',
slug: 'black-swan',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Nightcrawler',
description:
'Louis Bloom, a petty thief, realises that he can make money by capturing photographs of criminal activities and starts resorting to extreme tactics to get them.',
genre: 'thriller',
maturity: '15',
slug: 'nightcrawler',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'The Silence of The Lambs',
description:
'Clarice Starling, an FBI agent, seeks help from Hannibal Lecter, a psychopathic serial killer and former psychiatrist, in order to apprehend another serial killer who has been claiming female victims.',
genre: 'thriller',
maturity: '15',
slug: 'the-silence-of-the-lambs',
});

// Romance
for (let index = 0; index < 5; index += 1) {
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'A Star Is Born',
description:
'After falling in love with struggling artist Ally, Jackson, a musician, coaxes her to follow her dreams, while he battles with alcoholism and his personal demons.',
genre: 'romance',
maturity: '15',
slug: 'a-star-is-born',
});
}
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'A Star Is Born',
description:
'After falling in love with struggling artist Ally, Jackson, a musician, coaxes her to follow her dreams, while he battles with alcoholism and his personal demons.',
genre: 'romance',
maturity: '15',
slug: 'a-star-is-born',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Blue Valentine',
description:
'Dean and Cynthia are married with a daughter and their marriage is about to fall apart. Both come from dysfunctional families and struggle to make sense of their relationship.',
genre: 'romance',
maturity: '15',
slug: 'blue-valentine',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'La La Land',
description:
'Sebastian (Ryan Gosling) and Mia (Emma Stone) are drawn together by their common desire to do what they love. But as success mounts they are faced with decisions that begin...',
genre: 'romance',
maturity: '15',
slug: 'la-la-land',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'The Notebook',
description:
"Duke reads the story of Allie and Noah, two lovers who were separated by fate, to Ms Hamilton, an old woman who suffers from Alzheimer's, on a daily basis out of his notebook.",
genre: 'romance',
maturity: '15',
slug: 'the-notebook',
});
firebase.firestore().collection('films').add({
id: getUUID(),
title: 'Titanic',
description:
'Seventeen-year-old Rose hails from an aristocratic family and is set to be married. When she boards the Titanic, she meets Jack Dawson, an artist, and falls in love with him.',
genre: 'romance',
maturity: '15',
slug: 'titanic',
});
}

0 comments on commit e3dc6d1

Please sign in to comment.