Button component could be a link

This commit is contained in:
wswidzinski 2018-01-13 21:31:19 +01:00
parent ca9fa59470
commit a9ce1bbd36
3 changed files with 4 additions and 3 deletions

View File

@ -50,7 +50,7 @@ project:
button: button:
label: 'Project Proposal' label: 'Project Proposal'
icon: 'images/file.svg' icon: 'images/file.svg'
href: 'https://drive.google.com/file/d/1v-1R8juWUIptoO1ND8EZTh3zTcRJPkmG/view'
counterText: '03 - 06' counterText: '03 - 06'
nextSectionLink: nextSectionLink:
text: 'Learn more about the structure ↓' text: 'Learn more about the structure ↓'

View File

@ -1,4 +1,4 @@
<button <{{#if href}}a href={{href}} rel="noopener" target="_blank"{{else}}button{{/if}}
class="button {{ class }}" class="button {{ class }}"
style=" style="
{{#if outlineColor }} {{#if outlineColor }}
@ -15,4 +15,4 @@
</div> </div>
{{/if}} {{/if}}
{{label}} {{label}}
</button> </{{#if href}}a{{else}}button{{/if}}>

View File

@ -19,6 +19,7 @@
class="project__button" class="project__button"
backgroundColor="#ff5301" backgroundColor="#ff5301"
label=project.button.label label=project.button.label
href=project.button.href
icon=(svg project.button.icon) icon=(svg project.button.icon)
}} }}
</div> </div>