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:
label: 'Project Proposal'
icon: 'images/file.svg'
href: 'https://drive.google.com/file/d/1v-1R8juWUIptoO1ND8EZTh3zTcRJPkmG/view'
counterText: '03 - 06'
nextSectionLink:
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 }}"
style="
{{#if outlineColor }}
@ -15,4 +15,4 @@
</div>
{{/if}}
{{label}}
</button>
</{{#if href}}a{{else}}button{{/if}}>

View File

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