add recent vods and clips to home page
All checks were successful
CI / Maven unit tests (push) Successful in 17s
CI / Build and push images (push) Has been skipped
CI / Deploy to server (push) Has been skipped

This commit is contained in:
2026-08-02 15:17:06 +01:00
parent 0b1ea8e089
commit 11809a7da8
5 changed files with 115 additions and 16 deletions

View File

@@ -75,9 +75,14 @@ const Sidebar = ({ className }: props) => {
alt={"Profile Picture"}
/>
<label className={"font-body text-text-strong text-sm"}>
{user.name}
</label>
<div className={"flex flex-col"}>
<p className={"font-body text-text-strong text-sm"}>
{user.name}
</p>
<p className={"text-[0.625rem] font-body text-muted wrap-break-word"}>
Signed in with Google
</p>
</div>
<button
className={"font-body text-muted text-xs hover:bg-hover p-1 pt-1.5 rounded"}

View File

@@ -0,0 +1,14 @@
import React from "react";
type Props = React.ButtonHTMLAttributes<HTMLButtonElement>;
const DarkButton: React.FC<Props> = ({ className = "", ...props }) => {
return (
<button
className={`bg-accent text-on-dark font-body rounded-lg hover:bg-accent-hover transition-colors duration-150 h-10 px-4 ${className}`}
{...props}
/>
);
};
export default DarkButton;

View File

@@ -1,7 +1,7 @@
import clsx from "clsx";
import { formatTime, stringToDate, dateToTimeAgo } from "../../utils/utils.ts";
import { Link } from "react-router-dom";
import { useEffect, useRef, useState } from "react";
import React, { useEffect, useRef, useState } from "react";
import { isThumbnailAvailable } from "../../utils/api/client.ts";
import { MoreVertical, Pencil, Trash2 } from "lucide-react";