Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon shield
dev_wandry5ac65dd1282f
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 78c7b2b5..3d5d48a5 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -58,6 +58,7 @@ import { SearchIconStatic } from "@/registry/remocn/icon-search";import { SendIconStatic } from "@/registry/remocn/icon-send";import { Share2IconStatic } from "@/registry/remocn/icon-share-2";import { SettingsIconStatic } from "@/registry/remocn/icon-settings";+import { ShieldIconStatic } from "@/registry/remocn/icon-shield";import { SkipForwardIconStatic } from "@/registry/remocn/icon-skip-forward";import { SparklesIconStatic } from "@/registry/remocn/icon-sparkles";import { StarIconStatic } from "@/registry/remocn/icon-star";@@ -140,6 +141,12 @@ export const ICONS: IconEntry[] = [category: "Status & feedback",Static: RefreshCwIconStatic,},+ {+ name: "icon-shield",+ label: "Shield",+ category: "Status & feedback",+ Static: ShieldIconStatic,+ },{name: "icon-search",label: "Search",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex a484b7c1..0e2a0b21 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -74,6 +74,7 @@ import { iconSearchConfig } from "@/registry/remocn/icon-search/config";import { iconSendConfig } from "@/registry/remocn/icon-send/config";import { iconSettingsConfig } from "@/registry/remocn/icon-settings/config";import { iconShare2Config } from "@/registry/remocn/icon-share-2/config";+import { iconShieldConfig } from "@/registry/remocn/icon-shield/config";import { iconSkipForwardConfig } from "@/registry/remocn/icon-skip-forward/config";import { iconSparklesConfig } from "@/registry/remocn/icon-sparkles/config";import { iconStarConfig } from "@/registry/remocn/icon-star/config";@@ -964,6 +965,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconShare2Config,},+ "icon-shield": {+ load: () =>+ import("@/registry/remocn/icon-shield").then((m) => ({+ default: m.ShieldIcon,+ })),+ config: iconShieldConfig,+ },"icon-skip-forward": {load: () =>import("@/registry/remocn/icon-skip-forward").then((m) => ({diff --git a/registry/remocn/icon-shield/config.ts b/registry/remocn/icon-shield/config.tsnew file mode 100644index 00000000..9ce73db7--- /dev/null+++ b/registry/remocn/icon-shield/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconShieldConfig: ComponentConfig = {+ componentName: "ShieldIcon",+ importPath: "@/components/remocn/icon-shield",+ controls: {+ animation: {+ type: "select",+ default: "both",+ options: ["draw", "action", "both"],+ label: "Animation",+ },+ loop: {+ type: "boolean",+ default: false,+ label: "Loop",+ },+ size: {+ type: "number",+ default: 48,+ min: 24,+ max: 200,+ step: 4,+ label: "Size",+ },+ color: {+ type: "color",+ default: "#171717",+ label: "Color",+ },+ strokeWidth: {+ type: "number",+ default: 2,+ min: 1,+ max: 3,+ step: 0.25,+ label: "Stroke width",+ },+ },+ durationInFrames: 70,+ fps: FPS,+ compositionWidth: 48,+ compositionHeight: 48,+};diff --git a/registry/remocn/icon-shield/index.tsx b/registry/remocn/icon-shield/index.tsxnew file mode 100644index 00000000..77f92076--- /dev/null+++ b/registry/remocn/icon-shield/index.tsx@@ -0,0 +1,109 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const SHIELD_PATH =+ "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z";++const CENTER = 12;++const TIMINGS = {+ drawDurationInFrames: 14,+ actionDelayInFrames: 2,+ actionDurationInFrames: 18,+ loop: false,+} as const;++export function ShieldIcon({+ animation = "both",+ loop,+ speed,+ size = 48,+ color = "currentColor",+ strokeWidth = 2,+ className,+}: IconAnimationProps) {+ const { drawProgress, scaleIn, actionProgress, actionFrame } =+ useIconAnimation({ animation, loop, speed }, TIMINGS);++ const acting = animation !== "draw" && actionFrame >= 0;++ const brace = acting+ ? interpolate(actionProgress, [0, 0.45, 1], [1, 1.1, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ })+ : 1;+ const lean = acting+ ? interpolate(actionProgress, [0, 0.45, 1], [0, -2, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ })+ : 0;++ const shield = drawnPathProps(SHIELD_PATH, drawProgress);++ const scale = 0.85 + 0.15 * scaleIn;++ return (+ <svg+ className={className}+ width={size}+ height={size}+ viewBox="0 0 24 24"+ fill="none"+ stroke={color}+ strokeWidth={strokeWidth}+ strokeLinecap="round"+ strokeLinejoin="round"+ style={{+ overflow: "visible",+ transformOrigin: "center",+ transform: `scale(${scale})`,+ }}+ >+ <g transform={`rotate(${lean} ${CENTER} ${CENTER}) translate(${CENTER * (1 - brace)} ${CENTER * (1 - brace)}) scale(${brace})`}>+ <path+ d={SHIELD_PATH}+ strokeDasharray={shield.strokeDasharray}+ strokeDashoffset={shield.strokeDashoffset}+ />+ </g>+ </svg>+ );+}++export function ShieldIconStatic({+ size = 48,+ color = "currentColor",+ strokeWidth = 2,+ className,+}: {+ size?: number;+ color?: string;+ strokeWidth?: number;+ className?: string;+}) {+ return (+ <svg+ className={className}+ width={size}+ height={size}+ viewBox="0 0 24 24"+ fill="none"+ stroke={color}+ strokeWidth={strokeWidth}+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d={SHIELD_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex cc3ec0de..cbaa06d1 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -2209,6 +2209,21 @@}]},+ {+ "name": "icon-shield",+ "type": "registry:component",+ "title": "Shield",+ "description": "Animated Lucide shield icon — draws on, then braces: a firm guard pulse that asserts protection.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-shield/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-shield.tsx"+ }+ ]+ },{"name": "icon-user","type": "registry:component",