Skip to content

Commit

Permalink
adding section names
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Nov 17, 2023
1 parent cfada64 commit 22fe9df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/templates/components/section.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
{% set rowIcon %}<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path d="M200,42H56A14,14,0,0,0,42,56V200a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42ZM56,54H200a2,2,0,0,1,2,2v66H54V56A2,2,0,0,1,56,54ZM200,202H56a2,2,0,0,1-2-2V134H202v66A2,2,0,0,1,200,202Z"></path></svg>{% endset %}
{% set gridIcon %}<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path d="M200,42H56A14,14,0,0,0,42,56V200a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,14v66H134V54h66A2,2,0,0,1,202,56ZM56,54h66v68H54V56A2,2,0,0,1,56,54ZM54,200V134h68v68H56A2,2,0,0,1,54,200Zm146,2H134V134h68v66A2,2,0,0,1,200,202Z"></path></svg>{% endset %}
{% export icon = component.data.getDataAttributes()['markhuot\\keystone\\attributes\\Display']|default(false) == 'grid' ? gridIcon : rowIcon %}
{% export propTypes = {
name: field('\\craft\\fields\\PlainText')
} %}
{% export summary = props.name %}
<div {{ attributes}}>
{% slot %}{% endslot %}
</div>

0 comments on commit 22fe9df

Please sign in to comment.