Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Web Components #22

Closed
wants to merge 1 commit into from
Closed

Conversation

thescientist13
Copy link
Member

Related Issue

#14 / #7

Just a demo based on the concept of HTML Web Components

Summary of Changes

Where in some cases, especially in content heavy sites, it might be nicer to "transclude" content through nesting, rather than through attributes. This kind of mixes up the styling paradigm a bit, assuming we're going with something like #11 , but something worth considering at least.

As attributes

<app-card
  imageUrl="https://www.greenwoodjs.io/assets/greenwood-logo-og.png"
  caption="This is the caption"
></app-card>

As HTML content

<app-card>
  <img src="https://www.greenwoodjs.io/assets/greenwood-logo-og.png" height="200px" width="200px"/>
  <p>This is the caption</p>
</app-card>

This concept more or less exists because the concept <slot> based content only exists in the context of using Shadow DOM, which for a content heavy site, operating in the light DOM is more desirable (and opens up more opportunities for shared styling and no JavaScript required)

Copy link

netlify bot commented Apr 7, 2024

Deploy Preview for super-tapioca-5987ce ready!

Name Link
🔨 Latest commit b033051
🔍 Latest deploy log https://app.netlify.com/sites/super-tapioca-5987ce/deploys/6612c2fda8d8e200085146cb
😎 Deploy Preview https://deploy-preview-22--super-tapioca-5987ce.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@thescientist13 thescientist13 changed the title demo/HTML web component demo/HTML web components Apr 7, 2024
@thescientist13 thescientist13 changed the title demo/HTML web components demo/HTML Web Components Apr 7, 2024
@thescientist13 thescientist13 self-assigned this Apr 7, 2024
@thescientist13 thescientist13 marked this pull request as draft April 7, 2024 16:35
@thescientist13 thescientist13 changed the title demo/HTML Web Components HTML Web Components Apr 7, 2024
@thescientist13 thescientist13 added the question Further information is requested label Apr 7, 2024
@thescientist13 thescientist13 mentioned this pull request Jun 7, 2024
16 tasks
@thescientist13
Copy link
Member Author

This pattern was explored implemented as part of #33 / #94 and will become part of the next WCC release and should land unpatched in #107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demo question Further information is requested
Projects
Development

Successfully merging this pull request may close these issues.

1 participant