Comments (9)
I like <iframe>
s. I wish they were all using them 🌾
from cloudfour.com-patterns.
Can we just link to code demos? :)
from cloudfour.com-patterns.
Can we just link to code demos? :)
from cloudfour.com-patterns.
Here is a little way to embed Gists: http://codepen.io/erikjung/pen/waOxJK
(without using their script....if we just wanted to output the code itself in some customized way)
from cloudfour.com-patterns.
That's interesting, but I think moving in the wrong direction (empty semantic elements sitting in code).
I think something like Gist is easy to argue for "well, we should just add the code to the post." The value it's lending to the post is very low.
CodePen is a harder argument because most of the reason I've used it (and I assume others use it) is so folks can actually run the code without leaving the context of the post (something I find important when teaching complex, technical concepts).
from cloudfour.com-patterns.
@erikjung I second @tylersticka 's concerns about semantics on this one.
from cloudfour.com-patterns.
I'm all for adding the code directly to the posts when possible. That Gist example was just for fun, and to think about alternative methods of embedding if we don't like using a bunch of <script>
elements.
CodePen is a harder argument because most of the reason I've used it (and I assume others use it) is so folks can actually run the code without leaving the context of the post (something I find important when teaching complex, technical concepts).
I thought CodePen had <iframe>
embeds as well. Also, I'd be curious to see data regarding how often these embeds are actually engaged. Personally speaking, if the code is something I'm really interested in enough to tinker with, I immediately open up the actual Pen/Fiddle/whatever because I find the embedded versions to be too cramped (even on desktop).
from cloudfour.com-patterns.
I thought CodePen had
<iframe>
embeds as well.
I have never noticed that option, before, though considering it's like a four-pixel-tall light-gray link, I'm not that surprised:
Now that I know that exists, we should totally be using that instead. Paired with the flexible embed component, that could work really nicely.
Also, I'd be curious to see data regarding how often these embeds are actually engaged. Personally speaking, if the code is something I'm really interested in enough to tinker with, I immediately open up the actual Pen/Fiddle/whatever because I find the embedded versions to be too cramped (even on desktop).
I guess I do that sometimes, but most of the time I'm less interested in the code specifically than I am in an illustration or example of a specific, bite-sized concept. If I didn't find embedded pens useful, I wouldn't embed them in my own posts. (That'd be silly!) 😄
from cloudfour.com-patterns.
I'm going to close this because it feels like more of a theme or content issue than a pattern issue, and our use of oembed probably solves some of these issues.
from cloudfour.com-patterns.
Related Issues (20)
- Adjust `o-deck` column minimum width based on use cases that shipped HOT 2
- Comment component docs in Storybook cause the browser to hang HOT 8
- Image block captions should be able to extend past the width of the image HOT 3
- Add ability to limit video width HOT 3
- Tables in comments are unstyled
- Allow Group block to use o-rhythm class
- Unable to require/import files other than main export in Node HOT 2
- [Contact Page] Make WordPress font size `big` utility responsive
- [Contact Page] Download icon
- [Contact Page] Add `c-input` modifier for more padding HOT 1
- Create Highlight theme in preparation for server-side rendering HOT 4
- Explore updates to our fluid type calculations for simplicity and accessibility
- Explore alternate button pointer effects
- Media-text block not handling most common use case very well HOT 1
- Embed block contents do not fill their container
- I would love a "Side Note" block
- Radio component
- Quote citation styles intended for WordPress blocks are leaking out to all blockquotes
- Inline code color has too little contrast against lightest gray
- Should we disable the CSSNano calc optimization? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudfour.com-patterns.