diff --git a/pages/index.js b/pages/index.js
index f2e8f63..1deb30b 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -10,7 +10,7 @@ import VideoPlayer from '../components/VideoPlayer';
import FilterList from '../components/FilterList';
import PointsList from '../components/PointsList';
import Toolbar from '../components/Toolbar.js';
-import Select, {components} from 'react-select';
+import Select from 'react-select';
export default function Home() {
@@ -31,7 +31,7 @@ export default function Home() {
const returnFilteredPoints = () => {
let filteredPoints = matchData.points;
const filterMap = new Map();
-
+
// Group filters by key
filterList.forEach(filter => {
const [key, value] = filter;
@@ -41,7 +41,7 @@ export default function Home() {
filterMap.set(key, [value]);
}
});
-
+
// Apply filters
filterMap.forEach((values, key) => {
if (values.length > 1) {
@@ -87,7 +87,7 @@ export default function Home() {
Or get started by:
- Uploading a video
+ Uploading a video
Tagging a match
@@ -102,82 +102,86 @@ export default function Home() {
{matchData && (
<>
{/* Toolbar */}
-
- {matchData.name}
+
+
+
+
{matchData.name}
+
+ {/* Options Container */}
+
+
setShowOptions(!showOptions)}
+ viewBox="0 0 24 24"
+ fill="black"
+ xmlns="http://www.w3.org/2000/svg">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {showOptions && (
+ <>
+
+ setShowPercent(!showPercent)}
+ />
+ Show Percentage
+
+ {showPercent && (
+
setShowCount(selectedOption.value === "option2")}
+ options={[
+ { value: "option1", label: "Percent" },
+ { value: "option2", label: "Count" }
+ ]}
+ isSearchable={false}
+ />
+ )}
+ >
+ )}
+
+
+
{/* Video Player */}
- {/* Options Container */}
-
-
setShowOptions(!showOptions)}
- viewBox="0 0 24 24"
- fill="black"
- xmlns="http://www.w3.org/2000/svg">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {showOptions && (
- <>
-
- setShowPercent(!showPercent)}
- />
- Show Percentage
-
- {showPercent && (
-
setShowCount(selectedOption.value === "option2")}
- options={[
- { value: "option1", label: "Percent" },
- { value: "option2", label: "Count" }
- ]}
- isSearchable={false}
- />
- )}
- >
- )}
-
-
{/* Filter List */}
-
- Active Filters:
-
- {sortedFilterList.map(([key, value]) => (
- removeFilter(key, value)}>
- {nameMap[key]}: {value}
-
- ))}
-
-
+
+ Active Filters:
+
+ {sortedFilterList.map(([key, value]) => (
+ removeFilter(key, value)}>
+ {nameMap[key]}: {value}
+
+ ))}
+
+
{/* List Holders */}
{/* Filter List */}
-
+
- {/* Points List */}
+ {/* Points List */}
@@ -189,7 +193,7 @@ export default function Home() {
- Developed by Bruin Sports Analytics for use by UCLA Tennis
+ Developed by Bruin Sports Analytics for use by UCLA Tennis
diff --git a/styles/Home.module.css b/styles/Home.module.css
index 68643c4..872d571 100644
--- a/styles/Home.module.css
+++ b/styles/Home.module.css
@@ -101,6 +101,21 @@
align-items: flex-start;
}
+.headerRow {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ width: 100%;
+}
+
+.titleContainer {
+ flex-grow: 1; /* This allows the container to grow and take up available space */
+ display: flex;
+ justify-content: center; /* This centers the title horizontally within the title container */
+ align-items: center; /* This centers the title vertically */
+ margin: 0 auto; /* This may help maintain the centering if other elements are taking up space */
+}
+
.pdfView {
width: 100%;
border: 1px solid #eaeaea;