diff --git a/packages/experiments-realm/website.gts b/packages/experiments-realm/website.gts index dfb46c0b82..3555f954fc 100644 --- a/packages/experiments-realm/website.gts +++ b/packages/experiments-realm/website.gts @@ -3,17 +3,32 @@ import { UrlField } from './url'; import { Component } from 'https://cardstack.com/base/card-api'; import { EntityDisplay } from './components/entity-display'; +const domainWithPath = (urlString: string | null) => { + if (!urlString) { + return ''; + } + + const url = new URL(urlString); + return `${url.hostname}${url.pathname === '/' ? '' : url.pathname}`; +}; + export class WebsiteField extends UrlField { static icon = WorldWwwIcon; static displayName = 'Website'; - static atom = class Atom extends Component { + static atom = class Atom extends Component { }; + + static embedded = class Embedded extends Component { + + }; }