Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

2.3 KB
Raw Blame
import type { Metadata } from "next";
import Link from "next/link";
import { SITE_PAGES, sitePageOgImage } from "@/config/site-pages";
import { LandingButton } from "../components/landing/ui/landing-button";
import {
  pageHeaderButton,
  SitePageHeader,
} from "../components/site-page/page-header";

const STARWALL_URL = "https://starwall.radiumcoders.com/";
const AUTHOR_X_URL = "https://x.com/radiumcoders";

const TITLE = "GitHub Stars Video Generator · Remocn";
const DESCRIPTION = SITE_PAGES.stars.description;

export const metadata: Metadata = {
  title: "GitHub Stars Video Generator",
  description: DESCRIPTION,
  alternates: { canonical: "/stars" },
  openGraph: {
    type: "website",
    url: "/stars",
    siteName: "Remocn",
    title: TITLE,
    description: DESCRIPTION,
    locale: "en_US",
    images: [sitePageOgImage("stars")],
  },
  twitter: {
    card: "summary_large_image",
    title: TITLE,
    description: DESCRIPTION,
    images: [sitePageOgImage("stars").url],
  },
};

export default function StarsPage() {
  return (
    <SitePageHeader
      eyebrow="GitHub stars video"
      title="GitHub turned off"
      continuation="the public stargazers API."
      lead={
        <>
          Reading stargazers now requires authentication, so this tool can no
          longer build your video.{" "}
          <Link
            href={STARWALL_URL}
            target="_blank"
            rel="noreferrer"
            className="-mx-1 rounded-tag px-1 text-foreground transition-colors hover:bg-muted"
          >
            Starwall
          </Link>{" "}
          by Jay does it for you.
        </>
      }
      className="pb-16 md:pb-24 xl:pb-[120px]"
    >
      <div className="flex flex-col gap-4">
        <LandingButton
          href={STARWALL_URL}
          target="_blank"
          rel="noreferrer"
          arrow="↗"
          className={`${pageHeaderButton} w-full md:w-fit`}
        >
          Open Starwall
        </LandingButton>
        <p className="text-small text-muted-foreground">
          Starwall is built entirely by{" "}
          <Link
            href={AUTHOR_X_URL}
            target="_blank"
            rel="noreferrer"
            className="-mx-1 rounded-tag px-1 text-foreground transition-colors hover:bg-muted"
          >
            @radiumcoders
          </Link>
        </p>
      </div>
    </SitePageHeader>
  );
}