aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/TitledColumn.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-20 22:18:14 +0900
committernsfisis <nsfisis@gmail.com>2025-03-20 22:18:14 +0900
commitcca0f63e50684d6806697589b620ee4b4c1b21b5 (patch)
tree592bf93ac15a325b9b86e9455c2007f857907efc /frontend/app/components/TitledColumn.tsx
parentf1701822ed069d70841e8b40392e55bb28bf3eb6 (diff)
downloadphperkaigi-2025-albatross-cca0f63e50684d6806697589b620ee4b4c1b21b5.tar.gz
phperkaigi-2025-albatross-cca0f63e50684d6806697589b620ee4b4c1b21b5.tar.zst
phperkaigi-2025-albatross-cca0f63e50684d6806697589b620ee4b4c1b21b5.zip
feat(frontend): improve watch page layout
Diffstat (limited to 'frontend/app/components/TitledColumn.tsx')
-rw-r--r--frontend/app/components/TitledColumn.tsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/frontend/app/components/TitledColumn.tsx b/frontend/app/components/TitledColumn.tsx
new file mode 100644
index 0000000..4272ad4
--- /dev/null
+++ b/frontend/app/components/TitledColumn.tsx
@@ -0,0 +1,15 @@
+import React from "react";
+
+type Props = {
+ children: React.ReactNode;
+ title: React.ReactNode;
+};
+
+export default function TitledColumn({ children, title }: Props) {
+ return (
+ <div className="p-4 flex flex-col gap-4">
+ <div className="text-center text-xl font-bold">{title}</div>
+ {children}
+ </div>
+ );
+}