Spaces:
Build error
Build error
Commit ·
9b2ddd6
1
Parent(s): 2a7bea3
minor UI improvent
Browse files- frontend/src/App.css +2 -2
- frontend/src/App.js +12 -6
- frontend/src/pages/filmsPage.css +1 -1
- frontend/src/pages/tvShowsPage.css +1 -1
- frontend/src/pages/tvshowsPage.js +1 -1
frontend/src/App.css
CHANGED
|
@@ -42,7 +42,7 @@ nav {
|
|
| 42 |
display: flex;
|
| 43 |
align-items: center;
|
| 44 |
justify-content: center;
|
| 45 |
-
width:
|
| 46 |
height: 50px;
|
| 47 |
position: relative;
|
| 48 |
font-size: 1em;
|
|
@@ -128,7 +128,7 @@ sup {
|
|
| 128 |
/* Media Queries for Mobile Devices */
|
| 129 |
@media (max-width: 768px) {
|
| 130 |
.nav-link {
|
| 131 |
-
width:
|
| 132 |
padding: 10px;
|
| 133 |
}
|
| 134 |
}
|
|
|
|
| 42 |
display: flex;
|
| 43 |
align-items: center;
|
| 44 |
justify-content: center;
|
| 45 |
+
width: 70px;
|
| 46 |
height: 50px;
|
| 47 |
position: relative;
|
| 48 |
font-size: 1em;
|
|
|
|
| 128 |
/* Media Queries for Mobile Devices */
|
| 129 |
@media (max-width: 768px) {
|
| 130 |
.nav-link {
|
| 131 |
+
width: 70px;
|
| 132 |
padding: 10px;
|
| 133 |
}
|
| 134 |
}
|
frontend/src/App.js
CHANGED
|
@@ -14,7 +14,10 @@ import {
|
|
| 14 |
faCaretDown,
|
| 15 |
faCaretLeft,
|
| 16 |
faCaretRight,
|
| 17 |
-
faMagnifyingGlass
|
|
|
|
|
|
|
|
|
|
| 18 |
} from "@fortawesome/free-solid-svg-icons";
|
| 19 |
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
| 20 |
import HomePage from "./pages/homePage";
|
|
@@ -37,7 +40,10 @@ library.add(
|
|
| 37 |
faCaretDown,
|
| 38 |
faCaretLeft,
|
| 39 |
faCaretRight,
|
| 40 |
-
faMagnifyingGlass
|
|
|
|
|
|
|
|
|
|
| 41 |
);
|
| 42 |
|
| 43 |
function Navbar() {
|
|
@@ -82,7 +88,7 @@ function Navbar() {
|
|
| 82 |
onMouseEnter={handleMouseEnter}
|
| 83 |
onMouseLeave={handleMouseLeave}
|
| 84 |
>
|
| 85 |
-
|
| 86 |
</Link>
|
| 87 |
</li>
|
| 88 |
<li>
|
|
@@ -94,7 +100,7 @@ function Navbar() {
|
|
| 94 |
onMouseEnter={handleMouseEnter}
|
| 95 |
onMouseLeave={handleMouseLeave}
|
| 96 |
>
|
| 97 |
-
<FontAwesomeIcon icon="fa-solid fa-magnifying-glass" size="lg"/>
|
| 98 |
</Link>
|
| 99 |
</li>
|
| 100 |
<li>
|
|
@@ -106,7 +112,7 @@ function Navbar() {
|
|
| 106 |
onMouseEnter={handleMouseEnter}
|
| 107 |
onMouseLeave={handleMouseLeave}
|
| 108 |
>
|
| 109 |
-
|
| 110 |
</Link>
|
| 111 |
</li>
|
| 112 |
<li>
|
|
@@ -118,7 +124,7 @@ function Navbar() {
|
|
| 118 |
onMouseEnter={handleMouseEnter}
|
| 119 |
onMouseLeave={handleMouseLeave}
|
| 120 |
>
|
| 121 |
-
|
| 122 |
</Link>
|
| 123 |
</li>
|
| 124 |
<li>
|
|
|
|
| 14 |
faCaretDown,
|
| 15 |
faCaretLeft,
|
| 16 |
faCaretRight,
|
| 17 |
+
faMagnifyingGlass,
|
| 18 |
+
faHome,
|
| 19 |
+
faFilm,
|
| 20 |
+
faTv,
|
| 21 |
} from "@fortawesome/free-solid-svg-icons";
|
| 22 |
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
| 23 |
import HomePage from "./pages/homePage";
|
|
|
|
| 40 |
faCaretDown,
|
| 41 |
faCaretLeft,
|
| 42 |
faCaretRight,
|
| 43 |
+
faMagnifyingGlass,
|
| 44 |
+
faHome,
|
| 45 |
+
faFilm,
|
| 46 |
+
faTv
|
| 47 |
);
|
| 48 |
|
| 49 |
function Navbar() {
|
|
|
|
| 88 |
onMouseEnter={handleMouseEnter}
|
| 89 |
onMouseLeave={handleMouseLeave}
|
| 90 |
>
|
| 91 |
+
<FontAwesomeIcon icon="fa-solid fa-house" size="lg" />
|
| 92 |
</Link>
|
| 93 |
</li>
|
| 94 |
<li>
|
|
|
|
| 100 |
onMouseEnter={handleMouseEnter}
|
| 101 |
onMouseLeave={handleMouseLeave}
|
| 102 |
>
|
| 103 |
+
<FontAwesomeIcon icon="fa-solid fa-magnifying-glass" size="lg" />
|
| 104 |
</Link>
|
| 105 |
</li>
|
| 106 |
<li>
|
|
|
|
| 112 |
onMouseEnter={handleMouseEnter}
|
| 113 |
onMouseLeave={handleMouseLeave}
|
| 114 |
>
|
| 115 |
+
<FontAwesomeIcon icon="fa-solid fa-film" size="lg" />
|
| 116 |
</Link>
|
| 117 |
</li>
|
| 118 |
<li>
|
|
|
|
| 124 |
onMouseEnter={handleMouseEnter}
|
| 125 |
onMouseLeave={handleMouseLeave}
|
| 126 |
>
|
| 127 |
+
<FontAwesomeIcon icon="fa-solid fa-tv" size="lg" />
|
| 128 |
</Link>
|
| 129 |
</li>
|
| 130 |
<li>
|
frontend/src/pages/filmsPage.css
CHANGED
|
@@ -73,6 +73,6 @@
|
|
| 73 |
opacity: 1;
|
| 74 |
}
|
| 75 |
}
|
| 76 |
-
.
|
| 77 |
animation: pageLoad 1s ease;
|
| 78 |
}
|
|
|
|
| 73 |
opacity: 1;
|
| 74 |
}
|
| 75 |
}
|
| 76 |
+
.films-page-container {
|
| 77 |
animation: pageLoad 1s ease;
|
| 78 |
}
|
frontend/src/pages/tvShowsPage.css
CHANGED
|
@@ -25,7 +25,7 @@
|
|
| 25 |
opacity: 1;
|
| 26 |
}
|
| 27 |
}
|
| 28 |
-
.tvshows-page {
|
| 29 |
animation: pageLoad 1s ease;
|
| 30 |
}
|
| 31 |
|
|
|
|
| 25 |
opacity: 1;
|
| 26 |
}
|
| 27 |
}
|
| 28 |
+
.tvshows-page-container {
|
| 29 |
animation: pageLoad 1s ease;
|
| 30 |
}
|
| 31 |
|
frontend/src/pages/tvshowsPage.js
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
|
| 2 |
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
| 3 |
import apiClient from '../api/apiClient';
|
| 4 |
import { useTvShowsContext } from '../context/TvShowsContext';
|
| 5 |
-
import './
|
| 6 |
import TvShowCard from '../components/tv/card';
|
| 7 |
|
| 8 |
const TVSHOWS_PER_PAGE = 10;
|
|
|
|
| 2 |
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
| 3 |
import apiClient from '../api/apiClient';
|
| 4 |
import { useTvShowsContext } from '../context/TvShowsContext';
|
| 5 |
+
import './tvshowsPage.css';
|
| 6 |
import TvShowCard from '../components/tv/card';
|
| 7 |
|
| 8 |
const TVSHOWS_PER_PAGE = 10;
|