Skip to content

Commit

Permalink
Application launch button per card
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Aug 22, 2023
1 parent c04a873 commit aba9829
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
10 changes: 6 additions & 4 deletions welcome/src/pages/Proceed.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@ export const Proceed = () => {
<h3>{role.name}</h3>
<MoreLessText txt={role.description}/>
<p><a href={role.landingPage}>{role.landingPage}</a></p>

</section>
<div className={"launch"}>
<Button txt={I18n.t("proceed.launch")} onClick={() => {
window.href = invitationRole.landingPage;
}}/>
</div>

</div>;
return (
<Card key={index} cardType={CardType.Big} children={children}/>
Expand Down Expand Up @@ -76,9 +81,6 @@ export const Proceed = () => {
<h4>{I18n.t("proceed.goto")}</h4>
<span>{I18n.t("proceed.nextStep")}</span>
</div>
<Button txt={I18n.t("proceed.launch")} onClick={() => {
window.href = invitation.roles[0].role.landingPage;
}}/>
</div>
{invitation.roles.map((invitationRole, index) => renderInvitationRole(invitationRole, index))}
</section>
Expand Down
26 changes: 23 additions & 3 deletions welcome/src/pages/Proceed.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
align-content: center;
margin-bottom: 25px;

button {
margin: auto;
}
}

.step-actions {
Expand All @@ -38,13 +35,36 @@
.user-role {
display: flex;

@media (max-width: 680px) {
flex-direction: column;
}

img, svg {
height: 56px;
width: auto;
margin-right: 35px;
border-radius: $br;

@media (max-width: 680px) {
margin: 0 auto 20px 0;
}
}

.launch {
margin-left: auto;

@media (max-width: 680px) {
margin: 20px auto 0 0;
}

}
}

.sds--card {
margin-bottom: 25px;
background-color: var(--sds--color--white);
border-radius: 0.175rem;
box-shadow: 0 0.1rem 0.1rem 0 var(--sds--color--pitch-black--dimmed--25);
}
}
}

0 comments on commit aba9829

Please sign in to comment.