Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
feat: update marketing footer (#643)
Maximilian Kaske87535fe40079
diff --git a/apps/web/src/app/(redirect)/linkedin/page.tsx b/apps/web/src/app/(redirect)/linkedin/page.tsxnew file mode 100644index 000000000..7424a8107--- /dev/null+++ b/apps/web/src/app/(redirect)/linkedin/page.tsx@@ -0,0 +1,5 @@+import { redirect } from "next/navigation";++export default function LinkedinRedirect() {+ return redirect("https://www.linkedin.com/company/openstatus");+}diff --git a/apps/web/src/app/(redirect)/twitter/page.tsx b/apps/web/src/app/(redirect)/twitter/page.tsxnew file mode 100644index 000000000..46fea36d7--- /dev/null+++ b/apps/web/src/app/(redirect)/twitter/page.tsx@@ -0,0 +1,5 @@+import { redirect } from "next/navigation";++export default function TwitterRedirect() {+ return redirect("https://twitter.com/openstatusHQ");+}diff --git a/apps/web/src/app/(redirect)/youtube/page.tsx b/apps/web/src/app/(redirect)/youtube/page.tsxnew file mode 100644index 000000000..14958eb24--- /dev/null+++ b/apps/web/src/app/(redirect)/youtube/page.tsx@@ -0,0 +1,5 @@+import { redirect } from "next/navigation";++export default function YoutubeRedirect() {+ return redirect("https://www.youtube.com/@OpenStatusHQ");+}diff --git a/apps/web/src/components/icons.tsx b/apps/web/src/components/icons.tsxindex 872f24f97..f8c6a586b 100644--- a/apps/web/src/components/icons.tsx+++ b/apps/web/src/components/icons.tsx@@ -15,6 +15,7 @@ import {LayoutDashboard,LineChart,Link,+ Linkedin,Megaphone,MessageCircle,Minus,@@ -36,6 +37,7 @@ import {Trash,TwitterIcon,Webhook,+ Youtube,Zap,} from "lucide-react";import type { LucideIcon, LucideProps } from "lucide-react";@@ -82,6 +84,8 @@ export const Icons = {timer: Timer,clock: Clock,"line-chart": LineChart,+ linkedin: Linkedin,+ youtube: Youtube,discord: ({ ...props }: LucideProps) => (<svg viewBox="0 0 640 512" {...props}><pathdiff --git a/apps/web/src/components/layout/app-header.tsx b/apps/web/src/components/layout/app-header.tsxindex e8bb9424a..a08ce4b30 100644--- a/apps/web/src/components/layout/app-header.tsx+++ b/apps/web/src/components/layout/app-header.tsx@@ -6,9 +6,7 @@ import { ArrowUpRight } from "lucide-react";import { Button, Skeleton } from "@openstatus/ui";-import { socialsConfig } from "@/config/socials";import { Shell } from "../dashboard/shell";-import { Icons } from "../icons";/*** TODO: work on a better breadcrumb navigation like Vercel@@ -40,18 +38,6 @@ export function AppHeader() {</Link></Button></li>- {socialsConfig.map(({ title, href, icon }) => {- const Icon = Icons[icon];- return (- <li key={title} className="w-full">- <Button size="icon" variant="ghost" asChild>- <a href={href} target="_blank" rel="noreferrer">- <Icon className="h-5 w-5" />- </a>- </Button>- </li>- );- })}</ul><div className="relative"><Skeleton className="h-8 w-8 rounded-full" />diff --git a/apps/web/src/components/layout/app-sidebar.tsx b/apps/web/src/components/layout/app-sidebar.tsxindex ff277491e..f6749f03b 100644--- a/apps/web/src/components/layout/app-sidebar.tsx+++ b/apps/web/src/components/layout/app-sidebar.tsx@@ -7,6 +7,9 @@ import { ProBanner } from "../billing/pro-banner";import { SelectWorkspace } from "../workspace/select-workspace";import { AppLink } from "./app-link";+// import { socialsConfig } from "@/config/socials";+// import { SocialIconButton } from "./social-icon-button";+export function AppSidebar() {const params = useParams();@@ -32,6 +35,12 @@ export function AppSidebar() {<li className="w-full"><ProBanner /></li>+ {/* <li className="flex w-full gap-1">+ {socialsConfig.map((props, i) => (+ <SocialIconButton key={i} {...props} />+ ))}+ </li> */}+ {/* maybe add the icons of the socials in here... */}<li className="w-full"><SelectWorkspace /></li>diff --git a/apps/web/src/components/layout/brand-name.tsx b/apps/web/src/components/layout/brand-name.tsxindex 7367690b8..1188cfb9f 100644--- a/apps/web/src/components/layout/brand-name.tsx+++ b/apps/web/src/components/layout/brand-name.tsx@@ -1,6 +1,9 @@import * as React from "react";import Link from "next/link";+// Hottake: you don't need a features page if you have a changelog page+// Except for SEO+import {ContextMenu,ContextMenuContent,diff --git a/apps/web/src/components/layout/marketing-footer.tsx b/apps/web/src/components/layout/marketing-footer.tsxindex ed4ea36d4..c6880af78 100644--- a/apps/web/src/components/layout/marketing-footer.tsx+++ b/apps/web/src/components/layout/marketing-footer.tsx@@ -1,9 +1,12 @@import Link from "next/link";import { ArrowUpRight } from "lucide-react";+import { socialsConfig } from "@/config/socials";import { cn } from "@/lib/utils";import { Shell } from "../dashboard/shell";import { ThemeToggle } from "../theme-toggle";+import { BrandName } from "./brand-name";+import { SocialIconButton } from "./social-icon-button";import { StatusWidgetContainer } from "./status-widget-suspense";interface Props {@@ -14,34 +17,47 @@ export function MarketingFooter({ className }: Props) {return (<footer className={cn("w-full", className)}><Shell className="grid gap-6">- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">- <div className="order-4 flex flex-col justify-between gap-3 md:order-1">- <StatusWidgetContainer slug="status" />- <div className="text-right md:text-left">- <ThemeToggle />+ <div className="grid grid-cols-2 gap-6 md:grid-cols-5">+ <div className="col-span-2 flex flex-col gap-3">+ <div>+ <BrandName />+ <p className="text-muted-foreground mt-2 text-sm font-light">+ We are on a mission to provide a reliable, easy and fast way to+ synthetically monitor your APIs and websites.+ </p></div>+ <StatusWidgetContainer slug="status" /></div>- <div className="order-1 flex flex-col gap-3 text-sm md:order-2">- <p className="text-foreground font-semibold">Community</p>- <FooterLink href="/github" label="GitHub" external />- <FooterLink href="/discord" label="Discord" external />- <FooterLink href="https://twitter.com/openstatusHQ" label="X" />- </div>- <div className="order-2 flex flex-col gap-3 text-sm md:order-3">+ <div className="order-2 flex flex-col gap-3 text-sm"><p className="text-foreground font-semibold">Resources</p><FooterLink href="/blog" label="Blog" />- <FooterLink href="/changelog" label="Changelog" /><FooterLink href="/pricing" label="Pricing" />- <FooterLink href="/about" label="About" /><FooterLink href="https://docs.openstatus.dev" label="Docs" /><FooterLink href="/oss-friends" label="OSS Friends" /><FooterLink href="/status" label="External Providers Monitoring" /></div>- <div className="order-3 flex flex-col gap-3 text-sm md:order-4">- <p className="text-foreground font-semibold">Legal</p>+ <div className="order-3 flex flex-col gap-3 text-sm">+ <p className="text-foreground font-semibold">Company</p>+ <FooterLink href="/about" label="About" />+ <FooterLink href="/changelog" label="Changelog" /><FooterLink href="/legal/terms" label="Terms" /><FooterLink href="/legal/privacy" label="Privacy" /></div>+ <div className="order-3 flex flex-col gap-3 text-sm">+ <p className="text-foreground font-semibold">Tools</p>+ <FooterLink href="/play/checker" label="Speed Checker" />+ <FooterLink href="https://openstat.us" label="All Status Codes" />+ </div>+ </div>+ <div className="flex items-center justify-between gap-3">+ <div className="flex flex-wrap gap-2">+ {socialsConfig.map(({ title, href, icon }) => (+ <SocialIconButton key={title} {...{ href, icon, title }} />+ ))}+ </div>+ <div className="text-right md:text-left">+ <ThemeToggle />+ </div></div></Shell></footer>@@ -57,8 +73,6 @@ interface FooterLinkProps {function FooterLink({ href, label, external = false }: FooterLinkProps) {const isExternal = external || href.startsWith("http");- const LinkSlot = isExternal ? "a" : Link;-const externalProps = isExternal? {target: "_blank",@@ -67,7 +81,7 @@ function FooterLink({ href, label, external = false }: FooterLinkProps) {: {};return (- <LinkSlot+ <LinkclassName="text-muted-foreground hover:text-foreground inline-flex items-center underline underline-offset-4 hover:no-underline"href={href}{...externalProps}@@ -76,6 +90,6 @@ function FooterLink({ href, label, external = false }: FooterLinkProps) {{isExternal ? (<ArrowUpRight className="ml-1 h-4 w-4 flex-shrink-0" />) : null}- </LinkSlot>+ </Link>);}diff --git a/apps/web/src/components/layout/marketing-menu.tsx b/apps/web/src/components/layout/marketing-menu.tsxindex cb7674f83..5ba02d004 100644--- a/apps/web/src/components/layout/marketing-menu.tsx+++ b/apps/web/src/components/layout/marketing-menu.tsx@@ -13,7 +13,9 @@ import {SheetTrigger,} from "@openstatus/ui";+import { socialsConfig } from "@/config/socials";import { AppLink } from "./app-link";+import { SocialIconButton } from "./social-icon-button";const pages = [{ href: "/blog", label: "Blog", segment: "blog" },@@ -65,13 +67,12 @@ export function MarketingMenu() {);})}</ul>- <ul className="grid gap-1">- <li className="w-full">- <AppLink href="/github" label="GitHub" icon="github" />- </li>- <li className="w-full">- <AppLink href="/discord" label="Discord" icon="discord" />- </li>+ <ul className="flex gap-1">+ {socialsConfig.map((props, i) => (+ <li key={i}>+ <SocialIconButton {...props} />+ </li>+ ))}</ul></div></SheetContent>diff --git a/apps/web/src/components/layout/social-icon-button.tsx b/apps/web/src/components/layout/social-icon-button.tsxnew file mode 100644index 000000000..c92d6ed54--- /dev/null+++ b/apps/web/src/components/layout/social-icon-button.tsx@@ -0,0 +1,19 @@+import Link from "next/link";++import { Button } from "@openstatus/ui";++import type { Social } from "@/config/socials";+import { Icons } from "../icons";++export function SocialIconButton({ href, title, icon }: Social) {+ const Icon = Icons[icon];++ return (+ <Button asChild size="icon" variant="outline">+ <Link href={href} target="_blank" rel="noreferrer">+ <span className="sr-only">{title}</span>+ <Icon className="h-4 w-4" />+ </Link>+ </Button>+ );+}diff --git a/apps/web/src/config/socials.ts b/apps/web/src/config/socials.tsindex 48c63ccc2..c8aa8104d 100644--- a/apps/web/src/config/socials.ts+++ b/apps/web/src/config/socials.ts@@ -1,6 +1,6 @@import type { ValidIcon } from "@/components/icons";-type Social = {+export type Social = {title: string;href: string;icon: ValidIcon;@@ -17,5 +17,19 @@ export const socialsConfig: Social[] = [href: "/github",icon: "github",},- // add cal.com+ {+ title: "Twitter",+ href: "/twitter",+ icon: "twitter",+ },+ {+ title: "LinkedIn",+ href: "/linkedin",+ icon: "linkedin",+ },+ // {+ // title: "YouTube",+ // href: "/youtube",+ // icon: "youtube",+ // },];diff --git a/apps/web/src/content/faq/about-us.mdx b/apps/web/src/content/faq/about-us.mdxindex 48756d4e5..ac05f6833 100644--- a/apps/web/src/content/faq/about-us.mdx+++ b/apps/web/src/content/faq/about-us.mdx@@ -4,6 +4,6 @@ order: 2---We are [Thibault](https://twitter.com/thibaultleouay) and-[Max](https://twitter.com/mxkaske).+[Max](https://twitter.com/mxkaske) and we take you with us on our journey.-> An about us page is coming soon where we will share our values and history.+Read more on our [about](/about) page.