Skip to content

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

feat: added shieldcn sponsor

kapishdima841b33c7c782
diff --git a/app/(home)/components/sections/landing-partners.tsx b/app/(home)/components/sections/landing-partners.tsx
index ce00c765..fb1cb5ce 100644
--- a/app/(home)/components/sections/landing-partners.tsx
+++ b/app/(home)/components/sections/landing-partners.tsx
@@ -1,6 +1,6 @@
import { ArrowRight } from "lucide-react";
import Link from "next/link";
-import { getPromotedSponsors, type Sponsor } from "@/config/sponsors";
+import { getLandingSponsors, type Sponsor } from "@/config/sponsors";
import { cn } from "@/lib/utils";
import { FadeUp } from "../fade-up";
import { SectionHeading } from "../section-heading";
@@ -33,7 +33,7 @@ function SponsorLogoCard({ sponsor }: { sponsor: Sponsor }) {
}
export function LandingPartners() {
- const promoted = getPromotedSponsors();
+ const promoted = getLandingSponsors();
const ordered = [
...promoted.filter((s) => s.tier !== "featured"),
...promoted.filter((s) => s.tier === "featured"),
diff --git a/components/docs/docs-sponsor.tsx b/components/docs/docs-sponsor.tsx
index f0180316..dd621ba8 100644
--- a/components/docs/docs-sponsor.tsx
+++ b/components/docs/docs-sponsor.tsx
@@ -2,11 +2,11 @@ import { ArrowUpRight } from "lucide-react";
import Link from "next/link";
import type React from "react";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
-import { getPromotedSponsors } from "@/config/sponsors";
+import { getDocsSponsors } from "@/config/sponsors";
import { cn } from "@/lib/utils";
export const DocsSponsor: React.FC = () => {
- const featuredSponsors = getPromotedSponsors();
+ const featuredSponsors = getDocsSponsors();
return (
<Card size="sm" className="w-full gap-4 shadow-2xs">
diff --git a/config/sponsors.ts b/config/sponsors.ts
index 7338821f..cbbb246d 100644
--- a/config/sponsors.ts
+++ b/config/sponsors.ts
@@ -9,6 +9,15 @@ const TIER_RANK: Record<SponsorTier, number> = {
builder: 3,
};
+export type SponsorPlacement = "landing" | "docs";
+
+const TIER_PLACEMENTS: Record<SponsorTier, SponsorPlacement[]> = {
+ legendary: ["landing", "docs"],
+ featured: ["landing", "docs"],
+ partner: [],
+ builder: [],
+};
+
export type Sponsor = {
id: string;
name: string;
@@ -22,7 +31,7 @@ export type Sponsor = {
/** Optional Tailwind classes for fine-tuning a specific logo. */
customStyles?: string;
isPaste?: boolean; // Whether this sponsor is from our Paste integration. Used to add a "via Paste" badge on the frontend.
- onLanding?: boolean;
+ placements?: SponsorPlacement[];
layout?: "row" | "col";
};
@@ -59,7 +68,7 @@ export const sponsors: Sponsor[] = (
tier: "partner",
customStyles: "opacity-90 max-w-full",
isPaste: false,
- onLanding: true,
+ placements: ["landing", "docs"],
},
{
id: "reactbits",
@@ -70,7 +79,7 @@ export const sponsors: Sponsor[] = (
tier: "partner",
customStyles: "opacity-90 max-w-full",
isPaste: false,
- onLanding: true,
+ placements: ["landing", "docs"],
},
{
id: "reui",
@@ -81,7 +90,7 @@ export const sponsors: Sponsor[] = (
tier: "partner",
customStyles: "opacity-90 max-w-full",
isPaste: false,
- onLanding: true,
+ placements: ["landing", "docs"],
},
{
id: "shadcnblocks",
@@ -93,7 +102,20 @@ export const sponsors: Sponsor[] = (
logoScale: 1.2,
customStyles: "opacity-90",
isPaste: false,
- onLanding: true,
+ placements: ["landing", "docs"],
+ },
+ {
+ id: "shieldcn",
+ name: "shieldcn",
+ displayName: "shieldcn",
+ logoUrl: "/sponsors/shieldcn.svg",
+ website:
+ "https://shieldcn.dev/?utm_source=remocn&utm_medium=sponsor&utm_campaign=remocn_sponsors_page",
+ tier: "partner",
+ customStyles: "opacity-90",
+ isPaste: false,
+ placements: ["landing"],
+ layout: "row",
},
// Paste:
{
@@ -142,7 +164,7 @@ export const sponsors: Sponsor[] = (
isPaste: false,
},
{
- id: "shieldcn",
+ id: "justin",
name: "Justin",
displayName: "Justin",
logoUrl: "https://unavatar.io/x/jalcowastaken",
@@ -186,23 +208,28 @@ export const sponsors: Sponsor[] = (
logoScale: 1,
customStyles: "rounded-sm opacity-100 grayscale-0 dark:[filter:none]",
isPaste: false,
- onLanding: true,
+ placements: ["landing", "docs"],
layout: "row",
},
] satisfies Sponsor[]
).filter((sponsor) => !sponsor.isPaste);
-export function getPromotedSponsors(): Sponsor[] {
+function getSponsorsFor(placement: SponsorPlacement): Sponsor[] {
return sponsors
- .filter(
- (sponsor) =>
- sponsor.tier === "legendary" ||
- sponsor.tier === "featured" ||
- sponsor.onLanding === true,
+ .filter((sponsor) =>
+ (sponsor.placements ?? TIER_PLACEMENTS[sponsor.tier]).includes(placement),
)
.sort((a, b) => TIER_RANK[a.tier] - TIER_RANK[b.tier]);
}
+export function getLandingSponsors(): Sponsor[] {
+ return getSponsorsFor("landing");
+}
+
+export function getDocsSponsors(): Sponsor[] {
+ return getSponsorsFor("docs");
+}
+
export type BillingMode = "monthly" | "one-time";
export type Tier = {
diff --git a/public/sponsors/shieldcn.svg b/public/sponsors/shieldcn.svg
new file mode 100644
index 00000000..81ce70a0
--- /dev/null
+++ b/public/sponsors/shieldcn.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 1600" fill="currentColor"><path d="M1088.4,565.1c-6.5-4.7-15.5,0-15.5,7.9v510.2c0,21.3-18.1,38.6-40.4,38.6H160.9c-22.3,0-40.4,17.3-40.4,38.6v280.8c0,21.3,18.1,38.6,40.4,38.6h1004.5c10.8,0,21.2-4.2,28.8-11.6l273.4-266.3c7.4-7.2,11.6-16.9,11.6-27v-308.7c0-12.1-5.9-23.5-16.1-30.8l-374.7-270.3Z"/><path d="M511.2,1035.9c6.5,4.7,15.5,0,15.5-7.9v-510.2c0-21.3,18.1-38.6,40.4-38.6h871.7c22.3,0,40.4-17.3,40.4-38.6V159.7c0-21.3-18.1-38.6-40.4-38.6H434.3c-10.8,0-21.2,4.2-28.8,11.6L132,399c-7.4,7.2-11.6,16.9-11.6,27v308.7c0,12.1,5.9,23.5,16.1,30.8l374.7,270.3Z"/></svg>