mirror of
https://github.com/status-im/artproject.git
synced 2025-02-23 21:28:20 +00:00
Button component could be a link
This commit is contained in:
parent
ca9fa59470
commit
a9ce1bbd36
@ -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 ↓'
|
||||||
|
@ -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}}>
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user