Skip to content

Open source alternative to Semrush and Ahrefs

Add an EveryApp star banner to the marketing site (#1087)

Ben Senescuf504238f8692
diff --git a/web/src/components/every-app-banner.tsx b/web/src/components/every-app-banner.tsx
new file mode 100644
index 00000000..c03c3f6f
--- /dev/null
+++ b/web/src/components/every-app-banner.tsx
@@ -0,0 +1,38 @@
+const EVERY_APP_REPO_URL = "https://github.com/every-app/every-app";
+
+function StarIcon() {
+ return (
+ <svg
+ width={15}
+ height={15}
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="2"
+ strokeLinejoin="round"
+ aria-hidden="true"
+ >
+ <path d="M12 3l2.7 5.6 6.1.8-4.5 4.2 1.1 6.1L12 16.8 6.6 19.7l1.1-6.1-4.5-4.2 6.1-.8z" />
+ </svg>
+ );
+}
+
+export function EveryAppBanner() {
+ return (
+ <div className="flex flex-wrap items-center justify-center gap-x-2 gap-y-1 border-b border-white/10 bg-[#1b1d1d] px-4 py-2.5 text-center text-sm text-neutral-300">
+ <span>Support our new OSS project, EveryApp.</span>
+ <a
+ href={EVERY_APP_REPO_URL}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="group inline-flex items-center gap-1.5 font-medium text-neutral-100 transition-colors hover:text-white"
+ >
+ <StarIcon />
+ <span className="underline decoration-neutral-500 underline-offset-4 transition-colors group-hover:decoration-white">
+ Give it a star
+ </span>
+ <span aria-hidden="true">&rarr;</span>
+ </a>
+ </div>
+ );
+}
diff --git a/web/src/routes/_marketing.tsx b/web/src/routes/_marketing.tsx
index d3323054..d97cc0fd 100644
--- a/web/src/routes/_marketing.tsx
+++ b/web/src/routes/_marketing.tsx
@@ -5,6 +5,7 @@ import {
useLocation,
} from "@tanstack/react-router";
import { useEffect, useState } from "react";
+import { EveryAppBanner } from "@/components/every-app-banner";
import { NewsletterSignup } from "@/components/newsletter-signup";
import { SiteFooter } from "@/components/site-footer";
import { featureGroups } from "@/lib/feature-pages";
@@ -174,6 +175,7 @@ function MarketingLayout() {
return (
<main className="fd-light min-h-screen bg-[var(--color-surface)] text-[var(--color-brand)]">
+ <EveryAppBanner />
<header className="sticky top-0 z-50 w-full border-b border-[#ded9d2] bg-[#f5f1ec]/95 backdrop-blur-xl">
<div className="relative mx-auto w-full max-w-[1232px] px-6">
<nav