aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-11-03 23:14:24 -0800
committerPinapelz <yukais@pinapelz.com>2024-11-03 23:14:24 -0800
commita4289ad223fe2f06d3c8a2bcd49dd50ce90ecece (patch)
treebdbeb499e16fe26d42539a426466d67200f4fbca /src/components
parent221cb6fba838ac287860c660a4c3f94a7fe47e77 (diff)
fix: make sidebar scrollable if list grows too long
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Footer/Footer.tsx52
-rw-r--r--src/components/SubscriberTable/SubscriberTable.tsx5
-rw-r--r--src/components/TitleBar/TitleBar.tsx8
3 files changed, 34 insertions, 31 deletions
diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx
index 1c501d8..39262d8 100644
--- a/src/components/Footer/Footer.tsx
+++ b/src/components/Footer/Footer.tsx
@@ -1,33 +1,31 @@
import React from "react";
-import Link from 'next/link';
-
+import Link from "next/link";
const Footer = () => {
- return (
- <footer>
- <div className="text-center mt-4">
- <Link href="/about">
- <p className="font-bold hover:underline text-blue-600 animate-pulse">About</p>
- </Link>
- <p className="text-m">
- Created by Pinapelz <br/>
- This page is in no way affiliated with Phase Connect or with any of
- the channels listed here
- <br />
-
- </p>
- <p className="p-4">
- <a
- className="hover:underline text-bold text-blue-600"
- href="https://github.com/pinapelz/Nijitrack"
- >
- Source Code
- </a>
- <br />
- </p>
- </div>
- </footer>
- );
+ return (
+ <footer>
+ <div
+ className="text-center mt-4"
+ style={{ fontFamily: "Quantico, sans-serif" }}
+ >
+ <p className="text-m">
+ Created by Pinapelz <br />
+ This page is in no way affiliated with Phase Connect or with
+ any of the channels listed here
+ <br />
+ </p>
+ <p className="p-4">
+ <a
+ className="hover:underline text-bold text-blue-600"
+ href="https://github.com/pinapelz/Nijitrack"
+ >
+ Source Code
+ </a>
+ <br />
+ </p>
+ </div>
+ </footer>
+ );
};
export default Footer;
diff --git a/src/components/SubscriberTable/SubscriberTable.tsx b/src/components/SubscriberTable/SubscriberTable.tsx
index 766cd3d..6c19e44 100644
--- a/src/components/SubscriberTable/SubscriberTable.tsx
+++ b/src/components/SubscriberTable/SubscriberTable.tsx
@@ -26,7 +26,10 @@ const DataTable = ({ channel_data, timestamp }: SubscriberDataTableProp) => {
return (
<>
- <div className="text-center sm:mt-5">
+ <div
+ className="text-center sm:mt-5"
+ style={{ fontFamily: "Quantico, sans-serif" }}
+ >
<h1 className="text-2xl font-bold text-gray-800">
Subscriber Count
</h1>
diff --git a/src/components/TitleBar/TitleBar.tsx b/src/components/TitleBar/TitleBar.tsx
index c4a65c4..2d5da15 100644
--- a/src/components/TitleBar/TitleBar.tsx
+++ b/src/components/TitleBar/TitleBar.tsx
@@ -122,7 +122,11 @@ const TitleBar: React.FC<TitleBarProps> = ({
className={`fixed top-0 left-0 h-screen bg-black text-white shadow-lg transition-transform transform ${
isSidebarOpen ? "translate-x-0" : "-translate-x-full"
} duration-500 ease-in-out z-50`}
- style={{ width: "16rem", fontFamily: "Quantico, sans-serif" }}
+ style={{
+ width: "16rem",
+ fontFamily: "Quantico, sans-serif",
+ overflowY: "auto",
+ }}
>
<div className="p-4 text-3xl font-bold border-b border-gray-700">
PhaseTracker
@@ -202,8 +206,6 @@ const TitleBar: React.FC<TitleBarProps> = ({
)}
</ul>
</div>
-
- {/* Content overlay when sidebar is open */}
{isSidebarOpen && (
<div
className="fixed top-0 left-0 w-full h-full bg-black opacity-50 transition-opacity duration-500"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage