Created
March 16, 2019 19:06
-
-
Save FineasGavre/57c53544b6421d92f9e47bf3cc778b38 to your computer and use it in GitHub Desktop.
This file contains 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
<div id="moodselector"> | |
<header class="SectionHeader SectionHeader--center"> | |
<h2 class="SectionHeader__Heading Heading u-h1">{{ section.settings.title | escape }}</h2> | |
</header> | |
<div class="mds-container"> | |
{% for block in section.blocks %} | |
<div></div> | |
{% endfor %} | |
</div> | |
</div> | |
{% schema %} | |
{ | |
"name": "Mood Selector", | |
"settings": [ | |
{ | |
"id": "title", | |
"type": "text", | |
"label": "Title", | |
"default": "Titlu" | |
} | |
], | |
"blocks": [ | |
{ | |
"type": "select", | |
"name": "Add Mood", | |
"settings": [ | |
{ | |
"id": "moodname", | |
"type": "text", | |
"label": "Mood name" | |
}, | |
{ | |
"id": "moodphoto", | |
"type": "image_picker", | |
"label": "Mood image" | |
} | |
] | |
} | |
], | |
"presets": [ | |
{ | |
"category": "Advanced", | |
"name": "Mood Selector", | |
"blocks": [ | |
"type": "select" | |
], | |
"settings": {} | |
} | |
] | |
} | |
{% endschema %} | |
{% stylesheet %} | |
.mds-container { | |
display: flex; | |
} | |
{% endstylesheet %} | |
{% javascript %} | |
{% endjavascript %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment