diff --git a/package-lock.json b/package-lock.json
index 38d3378..2c42a84 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,6 +10,7 @@
"dependencies": {
"@types/axios": "^0.14.0",
"axios": "^1.6.8",
+ "lucide-react": "^0.451.0",
"react": "^18.2.0",
"react-crossfade-image": "^1.2.0",
"react-dom": "^18.2.0",
@@ -2998,6 +2999,14 @@
"yallist": "^3.0.2"
}
},
+ "node_modules/lucide-react": {
+ "version": "0.451.0",
+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.451.0.tgz",
+ "integrity": "sha512-OwQ3uljZLp2cerj8sboy5rnhtGTCl9UCJIhT1J85/yOuGVlEH+xaUPR7tvNdddPvmV5M5VLdr7cQuWE3hzA4jw==",
+ "peerDependencies": {
+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc"
+ }
+ },
"node_modules/merge2": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
diff --git a/package.json b/package.json
index a77840b..7591a18 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
"dependencies": {
"@types/axios": "^0.14.0",
"axios": "^1.6.8",
+ "lucide-react": "^0.451.0",
"react": "^18.2.0",
"react-crossfade-image": "^1.2.0",
"react-dom": "^18.2.0",
diff --git a/src/App.tsx b/src/App.tsx
index c180b66..6b307af 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -24,6 +24,15 @@ class MovieClass implements Movie {
vote_average = 0
}
+const splash: Movie = {
+ id: 0,
+ overview: "Select a movie to see others like it. Keep going until you find something to watch!",
+ title: "Welcome to Movie Explorer!",
+ vote_average: 0,
+ poster_path: null,
+ backdrop_path: null
+}
+
class WatchProvidersClass implements WatchProviders {
flatrate = [];
rent = [];
@@ -41,7 +50,7 @@ function App() {
})
const [movies, setMovies] = useState([new MovieClass()])
const [backdrop, setBackdrop] = useState("")
- const [chosenMovie, setChosenMovie] = useState(new MovieClass())
+ const [chosenMovie, setChosenMovie] = useState(splash)
const [similarMoviesAvailable, setSimilarMoviesAvailable] = useState(true)
const [watchProviders, setWatchProviders] = useState(new WatchProvidersClass())
useEffect(() => { tmdb.getPopular(config, setMovies) }, [])
@@ -95,6 +104,7 @@ function App() {
+ {/* //TODO: fix initial screen */}
{
movie: Movie;
@@ -18,22 +19,23 @@ export function Sidebar({ movie, similarMoviesAvailable, watchProviders, config,
config.language == "en" ?
"Summary unavailable." :
""
- //TODO: fix initial screen
return