Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: refactor sponsor page
kapishdima8cf5fbde833a
diff --git a/.github/workflows/shadscan.yml b/.github/workflows/shadscan.ymlnew file mode 100644index 00000000..e1aa9a19--- /dev/null+++ b/.github/workflows/shadscan.yml@@ -0,0 +1,27 @@+name: shadscan++on:+ pull_request:+ push:+ branches: [main]++permissions:+ contents: read+ issues: write++jobs:+ audit:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4+ # Pinned to the v0.6.0 tag commit; `@main` is a moving ref.+ - uses: TheOrcDev/shadscan@be690038a6edace1ab63c5185bd0ab80957da947+ with:+ path: .+ version: 0.6.1+ # Ratchet floor: today's score. Raise it as findings get fixed,+ # never lower it.+ fail-under: "60"+ # The issue tracks the standing audit on main; PRs only get the+ # job summary and the score gate.+ create-issue: ${{ github.event_name == 'push' }}diff --git a/app/(home)/components/sections/landing-partners.tsx b/app/(home)/components/sections/landing-partners.tsxindex 34b6035f..2640df63 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 { getFeaturedSponsors, type Sponsor } from "@/config/sponsors";+import { getPromotedSponsors, 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 featured = getFeaturedSponsors();+ const featured = getPromotedSponsors();return (<section id="partners" className="relative py-14 sm:py-20">diff --git a/app/(home)/sponsors/components/sections/tiers.tsx b/app/(home)/sponsors/components/sections/tiers.tsxindex a7616864..33c21530 100644--- a/app/(home)/sponsors/components/sections/tiers.tsx+++ b/app/(home)/sponsors/components/sections/tiers.tsx@@ -95,7 +95,7 @@ function TierCard({{tier.name}</h3></div>- {tier.highlighted && <Badge variant="secondary">Most popular</Badge>}+ {tier.badge && <Badge variant="secondary">{tier.badge}</Badge>}</div><div className="relative mt-6 flex items-baseline gap-2 overflow-hidden">@@ -131,7 +131,7 @@ function TierCard({))}</ul>- <div className="relative mt-8 pt-2">+ <div className="relative mt-auto pt-10"><Buttonvariant={tier.highlighted ? "default" : "outline"}size="lg"diff --git a/app/(home)/sponsors/components/sections/wall-of-love.tsx b/app/(home)/sponsors/components/sections/wall-of-love.tsxindex 92844ed9..549ecd72 100644--- a/app/(home)/sponsors/components/sections/wall-of-love.tsx+++ b/app/(home)/sponsors/components/sections/wall-of-love.tsx@@ -78,9 +78,9 @@ function SponsorGroup({export function WallOfLove() {const legendary = sponsors.filter((s) => s.tier === "legendary");+ const featured = sponsors.filter((s) => s.tier === "featured");const partners = sponsors.filter((s) => s.tier === "partner");const builders = sponsors.filter((s) => s.tier === "builder");- const supporters = sponsors.filter((s) => s.tier === "supporter");const isEmpty = sponsors.length === 0;return (@@ -119,6 +119,14 @@ export function WallOfLove() {aspectClassName="aspect-[3/2]"maxH="max-h-24"/>+ <SponsorGroup+ label="Featured"+ note="On the landing page"+ items={featured}+ gridClassName="grid gap-6 md:grid-cols-2"+ aspectClassName="aspect-[3/2]"+ maxH="max-h-20"+ /><SponsorGrouplabel="Partners"items={partners}@@ -133,13 +141,6 @@ export function WallOfLove() {aspectClassName="aspect-[3/2]"maxH="max-h-14"/>- <SponsorGroup- label="Supporters"- items={supporters}- gridClassName="grid gap-3 md:grid-cols-4 lg:grid-cols-6"- aspectClassName="aspect-square"- maxH="max-h-10"- /></FadeUp>)}</div>diff --git a/app/(home)/sponsors/page.tsx b/app/(home)/sponsors/page.tsxindex 96958c2d..c626b581 100644--- a/app/(home)/sponsors/page.tsx+++ b/app/(home)/sponsors/page.tsx@@ -4,7 +4,7 @@ import { Tiers } from "./components/sections/tiers";import { WallOfLove } from "./components/sections/wall-of-love";const DESCRIPTION =- "Support remocn and keep the components free and open source. Back the project monthly or one-time and get your logo in front of the community.";+ "Support remocn and keep the components free and open source. Back the project monthly or one-time, from a name in the README to your logo on the landing page.";export const metadata: Metadata = {title: "Sponsors",diff --git a/components/docs/docs-sponsor.tsx b/components/docs/docs-sponsor.tsxindex 646114a4..f0180316 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 { getFeaturedSponsors } from "@/config/sponsors";+import { getPromotedSponsors } from "@/config/sponsors";import { cn } from "@/lib/utils";export const DocsSponsor: React.FC = () => {- const featuredSponsors = getFeaturedSponsors();+ const featuredSponsors = getPromotedSponsors();return (<Card size="sm" className="w-full gap-4 shadow-2xs">diff --git a/config/sponsors.ts b/config/sponsors.tsindex 8e240268..d05f448a 100644--- a/config/sponsors.ts+++ b/config/sponsors.ts@@ -1,12 +1,12 @@import { LAVENDER, MINT, PEACH } from "@/config/site";-export type SponsorTier = "legendary" | "partner" | "builder" | "supporter";+export type SponsorTier = "legendary" | "featured" | "partner" | "builder";const TIER_RANK: Record<SponsorTier, number> = {legendary: 0,- partner: 1,- builder: 2,- supporter: 3,+ featured: 1,+ partner: 2,+ builder: 3,};export type Sponsor = {@@ -22,7 +22,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.- hideFromFeatured?: boolean;+ onLanding?: boolean;layout?: "row" | "col";};@@ -47,6 +47,7 @@ export const sponsors: Sponsor[] = (tier: "partner",customStyles: "opacity-90 max-w-full",isPaste: false,+ onLanding: true,},{id: "reactbits",@@ -57,6 +58,7 @@ export const sponsors: Sponsor[] = (tier: "partner",customStyles: "opacity-90 max-w-full",isPaste: false,+ onLanding: true,},{id: "reui",@@ -67,6 +69,7 @@ export const sponsors: Sponsor[] = (tier: "partner",customStyles: "opacity-90 max-w-full",isPaste: false,+ onLanding: true,},{id: "shadcnblocks",@@ -78,6 +81,7 @@ export const sponsors: Sponsor[] = (logoScale: 1.2,customStyles: "opacity-90",isPaste: false,+ onLanding: true,},// Paste:{@@ -157,7 +161,6 @@ export const sponsors: Sponsor[] = (tier: "partner",customStyles: "opacity-90 max-h-12",isPaste: false,- hideFromFeatured: true,layout: "row",},{@@ -171,17 +174,19 @@ export const sponsors: Sponsor[] = (logoScale: 1,customStyles: "rounded-sm opacity-100 grayscale-0 dark:[filter:none]",isPaste: false,+ onLanding: true,layout: "row",},] satisfies Sponsor[]).filter((sponsor) => !sponsor.isPaste);-export function getFeaturedSponsors(): Sponsor[] {+export function getPromotedSponsors(): Sponsor[] {return sponsors.filter((sponsor) =>- (sponsor.tier === "legendary" || sponsor.tier === "partner") &&- !sponsor.hideFromFeatured,+ sponsor.tier === "legendary" ||+ sponsor.tier === "featured" ||+ sponsor.onLanding === true,).sort((a, b) => TIER_RANK[a.tier] - TIER_RANK[b.tier]);}@@ -189,44 +194,30 @@ export function getFeaturedSponsors(): Sponsor[] {export type BillingMode = "monthly" | "one-time";export type Tier = {- id: "supporter" | "builder" | "partner";+ id: "builder" | "partner" | "featured";price: number;name: string;tagline: string;perks: string[];glow: string;highlighted: boolean;+ badge?: string;monthlyUrl: string;oneTimeUrl: string;};export const tiers: Tier[] = [- {- id: "supporter",- price: 5,- name: "Supporter",- tagline: "Show some love",- perks: [- "Sponsor badge in our Discord",- "Our endless gratitude",- "Early access to release notes",- ],- glow: MINT,- highlighted: false,- monthlyUrl: "https://www.creem.io/payment/prod_1PtwNGZVHfXZgChBSCwmJA",- oneTimeUrl: "https://www.creem.io/payment/prod_66n8fHDfCVmwSNswCHL5OH",- },{id: "builder",price: 10,name: "Builder",- tagline: "Help us build",+ tagline: "Start here",perks: [- "Everything in Supporter",+ "Sponsor badge in our Discord","Your name in the repository README",- "Priority on feature requests",+ "Early access to release notes",],- glow: PEACH,+ glow: MINT,highlighted: false,monthlyUrl: "https://www.creem.io/payment/prod_6fpKhXCzk9KkbA4FSUzGIU",oneTimeUrl: "https://www.creem.io/payment/prod_1C3cCbVoYsDPJrdlDhrhSG",@@ -238,12 +229,29 @@ export const tiers: Tier[] = [tagline: "Power the project",perks: ["Everything in Builder",- "Your logo featured on the main remocn landing page",+ "Your logo on the Sponsors page",+ "Priority on feature requests","Direct line to the maintainers",],- glow: LAVENDER,- highlighted: true,+ glow: PEACH,+ highlighted: false,monthlyUrl: "https://www.creem.io/payment/prod_6tdCLqKgSA14P0IEVZ2GaG",oneTimeUrl: "https://www.creem.io/payment/prod_2sb9zG2oJn232utqh5TN1S",},+ {+ id: "featured",+ price: 100,+ name: "Featured",+ tagline: "Own the top spot",+ perks: [+ "Everything in Partner",+ "Your logo on the remocn landing page",+ "Your logo in the docs sidebar",+ ],+ glow: LAVENDER,+ highlighted: true,+ badge: "Front page",+ monthlyUrl: "https://www.creem.io/payment/prod_1PtwNGZVHfXZgChBSCwmJA",+ oneTimeUrl: "https://www.creem.io/payment/prod_66n8fHDfCVmwSNswCHL5OH",+ },];