Skip to content

Commit

Permalink
Make sections on landing page more visually distinct #86
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Haarhoff committed Nov 21, 2024
1 parent 5a7d2f0 commit 3132def
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions src/queries/me/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,25 @@ const superUserNav = html`
`;

export const render = (viewModel: ViewModel) => html`
<div class="stack">
<div class="stack-large">
<h1>Your Makespace profile</h1>
<h2>Your details</h2>
${renderMemberDetails(viewModel)}
<h2>Train members</h2>
${renderTrainerStatus(viewModel.member.trainerFor)}
<h2>Your training record</h2>
${renderTrainingStatus(viewModel.member.trainedOn, false)}
<h2>Area ownership</h2>
${renderOwnerAgreementStatus(viewModel.member.agreementSigned, false)}
${renderOwnerStatus(viewModel.member.ownerOf, false)}
${viewModel.member.isSuperUser ? superUserNav : ''}
<section>
<h2>Your details</h2>
${renderMemberDetails(viewModel)}
</section>
<section>
<h2>Train members</h2>
${renderTrainerStatus(viewModel.member.trainerFor)}
</section>
<section>
<h2>Your training record</h2>
${renderTrainingStatus(viewModel.member.trainedOn, false)}
</section>
<section>
<h2>Area ownership</h2>
${renderOwnerAgreementStatus(viewModel.member.agreementSigned, false)}
${renderOwnerStatus(viewModel.member.ownerOf, false)}
</section>
<section>${viewModel.member.isSuperUser ? superUserNav : ''}</section>
</div>
`;

0 comments on commit 3132def

Please sign in to comment.