diff --git a/example.json b/example.json new file mode 100644 index 0000000000000000000000000000000000000000..28042f411c7ad834eb447b8431dcb7efdfcffbb6 --- /dev/null +++ b/example.json @@ -0,0 +1,84 @@ +{ + "root_page": { + "template": "Pijar Custom Template", + "metadata": { + "title": "Hello Pijar !", + "description": "A website for Pijar", + "image": "https://pijar.com/static/images/pijar_pic.png", + "css": [], + "js": [] + }, + "body": [ + { + "layout": { + "display": "flex", + "padding": "20px" + }, + "contents": [ + { + "tag": "h1", + "text": "Pijar Story" + }, + { + "tag": "p", + "text": "Hello Pijar<br />Oui oui oui.", + "class": "pijar_p_class" + }, + { + "tag": "img", + "src": "/img/url.png" + } + ] + } + ] + }, + "assets_index": { + "images": [ + "/static/images/toto.jpg" + ], + "sounds": [ + "/static/sounds/toto.mp3" + ], + "video": [ + "/static/video/toto.mp4" + ], + "docs": [ + "/static/docs/toto.xcf" + ], + "source_code": [ + "/static/source_code/toto.js" + ] + }, + "templates": [ + { + "name": "Pijar Custom template", + "layout": { + "display": "grid" + }, + "fixed_contents": [ + { + "tag": "nav", + "contents": [ + { + "tag": "ul", + "contents": [ + { + "tag": "li", + "text": "menu item 1" + }, + { + "tag": "li", + "text": "menu item 2" + } + ] + } + ] + }, + { + "tag": "footer", + "contents": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/model.dia b/model.dia new file mode 100644 index 0000000000000000000000000000000000000000..597d424aac6e8a01527dacf244a11593bfc25138 Binary files /dev/null and b/model.dia differ