Updates to SemiCollapsibleText component.
The more/less toggles should be inline with the text. The caller should pass in the first and second halves of the content to be displayed.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
{% from "components/sticky_cta.html" import StickyCTA %}
|
||||
{% from "components/icon.html" import Icon %}
|
||||
{% from "components/semi_collapsible_text.html" import SemiCollapsibleText %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
@@ -23,15 +24,7 @@
|
||||
|
||||
<h1>{{ "home.head" | translate }}</h1>
|
||||
|
||||
<semi-collapsible-text inline-template>
|
||||
<div>
|
||||
<p v-bind:class="{ 'semi-collapsed' : !open }">
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||
</p>
|
||||
<a v-on:click='toggle' v-show="!open" class="right more">More{{ Icon('caret_down') }}</a>
|
||||
<a v-on:click='toggle' v-show="open" class="right more">Less{{ Icon('caret_up') }}</a>
|
||||
</div>
|
||||
</semi-collapsible-text>
|
||||
{{ SemiCollapsibleText() }}
|
||||
|
||||
<div class="your-project">
|
||||
<h2 class="h3">{{ "home.your_project" | translate }}</h2>
|
||||
|
Reference in New Issue
Block a user