Last active
May 15, 2016 15:08
-
-
Save MattRix/81d0716f4a15febd702d22db9da52582 to your computer and use it in GitHub Desktop.
A simple website using JSON. HTML version is here: https://gist.github.com/MattRix/be7f8222edfc24ac1d1a98e04d826f1e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type": "html", | |
| "content": [ | |
| { | |
| "type": "head", | |
| "content": [ | |
| { | |
| "type": "title", | |
| "content": [ | |
| "Hello world!" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "body", | |
| "content": [ | |
| { | |
| "type": "h1", | |
| "content": [ | |
| "Welcome" | |
| ] | |
| }, | |
| { | |
| "type": "p", | |
| "content": [ | |
| "This is a ", | |
| { | |
| "type": "b", | |
| "content": [ | |
| "cool" | |
| ] | |
| }, | |
| " web site ", | |
| { | |
| "type": "i", | |
| "content": [ | |
| "all about ", | |
| { | |
| "type": "b", | |
| "content": [ | |
| "cool" | |
| ] | |
| }, | |
| " stuff and ", | |
| { | |
| "type": "b", | |
| "content": [ | |
| "cool" | |
| ] | |
| }, | |
| " things" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "p", | |
| "content": [ | |
| "Here's ", | |
| { | |
| "type": "a", | |
| "content": [ | |
| "a link to a site" | |
| ], | |
| "attributes": { | |
| "href": "http://www.google.com" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "p", | |
| "content": [ | |
| "Here's a simple image ", | |
| { | |
| "type": "img", | |
| "attributes": { | |
| "src": "http://i.imgur.com/TXhVsrq.gif", | |
| "alt": "cool dudes", | |
| "width": "300", | |
| "height": "165" | |
| } | |
| }, | |
| " being shown inline" | |
| ] | |
| }, | |
| { | |
| "type": "ul", | |
| "content": [ | |
| { | |
| "type": "li", | |
| "content": [ | |
| "This is boring stuff" | |
| ] | |
| }, | |
| { | |
| "type": "li", | |
| "content": [ | |
| "This is ", | |
| { | |
| "type": "b", | |
| "content": [ | |
| "cool" | |
| ] | |
| }, | |
| " stuff" | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment