Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
feat: Built with webstudio badge (#5243)
Oleg Isonen0219de6d630d
diff --git a/packages/sdk/src/core-templates.tsx b/packages/sdk/src/core-templates.tsxindex a5e9d1bf60..5c15406e5a 100644--- a/packages/sdk/src/core-templates.tsx+++ b/packages/sdk/src/core-templates.tsx@@ -7,7 +7,11 @@ import {ws,type TemplateMeta,} from "@webstudio-is/template";-import { CheckboxCheckedIcon, RadioCheckedIcon } from "@webstudio-is/icons/svg";+import {+ CheckboxCheckedIcon,+ RadioCheckedIcon,+ Webstudio1cIcon,+} from "@webstudio-is/icons/svg";import {blockComponent,collectionComponent,@@ -350,6 +354,66 @@ const forms: Record<string, TemplateMeta> = {},};+const builtWithWebstudioMeta: TemplateMeta = {+ category: "other",+ description:+ "A “Built with Webstudio” badge should be added to every project page on the free plan. This helps Webstudio spread awareness as a platform.",+ icon: Webstudio1cIcon,+ template: (+ <ws.element+ ws:tag="a"+ ws:label="Built with Webstudio"+ href="https://webstudio.is"+ target="_blank"+ ws:style={css`+ display: inline-flex;+ gap: 6px;+ align-items: center;+ justify-content: center;+ position: fixed;+ z-index: 1000;+ padding: 6px 10px;+ right: 16px;+ bottom: 16px;+ color: rgba(251, 252, 253, 1);+ font-family: system-ui, sans-serif;+ font-size: 12px;+ font-weight: 500;+ line-height: 1;+ border: 1px solid transparent;+ border-radius: 9px;+ text-decoration-line: none;+ text-wrap-mode: nowrap;+ background-clip: padding-box, border-box;+ background-origin: padding-box, border-box;+ background-image:+ linear-gradient(135deg, #4a4efa 0%, #bd2fdb 66%, #ec59ce 100%),+ linear-gradient(+ 135deg,+ #92fddc 0%,+ #7d7ffb 31.94%,+ #ed72fe 64.24%,+ #fdd791 100%+ );+ `}+ >+ <$.HtmlEmbed+ ws:label="Logo"+ code={Webstudio1cIcon}+ ws:style={css`+ display: block;+ width: 16px;+ height: 16px;+ flex-shrink: 0;+ `}+ ></$.HtmlEmbed>+ <ws.element ws:tag="div" ws:label="Text">+ Built with Webstudio+ </ws.element>+ </ws.element>+ ),+};+export const coreTemplates = {[elementComponent]: elementMeta,link: linkMeta,@@ -358,4 +422,5 @@ export const coreTemplates = {[blockComponent]: blockMeta,...typography,...forms,+ builtWithWebstudio: builtWithWebstudioMeta,};diff --git a/packages/sdk/src/schema/component-meta.ts b/packages/sdk/src/schema/component-meta.tsindex 411d1dcd03..7fd18e8584 100644--- a/packages/sdk/src/schema/component-meta.ts+++ b/packages/sdk/src/schema/component-meta.ts@@ -31,6 +31,7 @@ export const componentCategories = ["localization","radix","xml",+ "other","hidden","internal",] as const;diff --git a/packages/template/src/template.ts b/packages/template/src/template.tsindex 9ccf49d5ee..5e3487ae13 100644--- a/packages/template/src/template.ts+++ b/packages/template/src/template.ts@@ -11,6 +11,7 @@ export const templateCategories = ["localization","radix","xml",+ "other","hidden","internal",] as const;