Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
example.json 2.32 KiB
Newer Older
{
    "root_page": {
peterrabbit's avatar
peterrabbit committed
        "template_name": "Pijar Custom Template",
        "metadata": {
            "title": "Hello Pijar !",
            "description": "A website for Pijar",
            "image": "https://pijar.com/static/images/pijar_pic.png",
            "css": [],
peterrabbit's avatar
peterrabbit committed
            "js": [],
            "url_slug": ""
        },
        "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"
                    }
                ]
            }
peterrabbit's avatar
peterrabbit committed
        ],
        "sub_pages": []
    },
    "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"
            },
peterrabbit's avatar
peterrabbit committed
            "contents": [
                {
                    "tag": "nav",
                    "contents": [
                        {
                            "tag": "ul",
                            "contents": [
                                {
                                    "tag": "li",
                                    "text": "menu item 1"
                                },
                                {
                                    "tag": "li",
                                    "text": "menu item 2"
                                }
                            ]
                        }
                    ]
                },
                {
                    "tag": "footer",
                    "contents": []
                }
            ]
        }
    ]
}