Skip to content

Instantly share code, notes, and snippets.

@deyceg
Last active April 27, 2016 18:04
Show Gist options
  • Save deyceg/c0ed4b48a6c16005ceef167a04ab72eb to your computer and use it in GitHub Desktop.
Save deyceg/c0ed4b48a6c16005ceef167a04ab72eb to your computer and use it in GitHub Desktop.
<Accordion>
<PanelHeader>Your Risk Illustration</PanelHeader>
<PanelContent>
<Illustration id="risk" /> { /* Dynamically load widget from CDN. Different "house view" loads different widget */ }
</PanelContent>
</Accordion>
<Promo>
<PromoImage>
<StaticImageAsset id="advisor-portrait" /> { /* Images fetched by the browser, CDN url constructed by server */ }
</PromoImage>
<PromoContent>
<ContentBlock id="advisor-name" />
<ContentBlock id="advisor-company" />
<StaticImageAsset id="advisor-signature" />
</PromoContent>
</Promo>
<TwoColumnLayout>
<LeftColumn>...</LeftColumn>
<RightColumn>
<SectionHeader>A summary of what you've told us</SectionHeader>
<List>
<ContentBlock id="target-retirement-age" />
<ContentBlock id="default-retirement-date" />
<ContentBlock id="target-retirement-income" />
{
this.factfind.outputs.disposableIncome > 0 ?
<ContentBlock id="has-disposable-income" /> :
<ContentBlock id="no-disposable-income" />
}
<ContentBlock id="planned-contribution" />
<ContentBlock id="employer-contribution" />
{
this.factfind.outputs.reducedNetIncome > 0 ?
<ContentBlock id="net-income-reduced" /> :
<ContentBlock id="net-income-unchanged" />
}
</List>
</RightColumn>
</TwoColumnLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment