Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mediator oob webpage added logo #42

Merged
merged 1 commit into from
Jul 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions webapp/src/main/scala/io/iohk/atala/mediator/AppUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ object AppUtils {
onClick --> menuClickObserver,
"menu"
)

typings.materialRipple.mod.MDCRipple.attachTo(menuButton.ref)

// def makeLi(didName: String, icon: String) =
Expand Down Expand Up @@ -81,32 +82,30 @@ object AppUtils {
typings.materialMenu.mod.MDCMenu.attachTo(options.ref)

headerTag(
className("mdc-top-app-bar"),
div(
className("mdc-top-app-bar__row"),
sectionTag(
className("mdc-top-app-bar__section mdc-top-app-bar__section--align-start"),
menuButton,
span(className("mdc-top-app-bar__title"), child.text <-- title)
),
sectionTag(
className("mdc-top-app-bar__section mdc-top-app-bar__section--align-start"),
div(
a(
href := "https://atalaprism.io",
target := "_blank",
img(
src := "https://atalaprism.io/images/atala-prism-logo-suite.svg",
className := "logo vanilla",
alt := "Prism Mediator"
),
)
)
),
sectionTag(
className("mdc-top-app-bar__section mdc-top-app-bar__section--align-end"),
role("toolbar"),
a(
className("material-icons mdc-top-app-bar__action-item mdc-icon-button"),
href("https://github.com/FabioPinheiro/fmgp-generative-design"),
i(aria.label("Github")),
),
// button(
// className("material-icons mdc-top-app-bar__action-item mdc-icon-button"),
// aria.label("Search"),
// "search"
// ),
// select(
// value <-- Global.agentVar.signal.map(Global.getAgentName(_)),
// onChange.mapToValue.map(e => fmgp.did.AgentProvider.allAgents.get(e)) --> Global.agentVar,
// Global.dids.map { step => option(value := step, step) }
// ),
div(
className("mdc-menu-surface--anchor"),
optionsButton,
Expand All @@ -123,7 +122,7 @@ object AppUtils {
className("mdc-drawer mdc-drawer--modal"),
div(
className("mdc-drawer__header"),
h3(className("mdc-drawer__title"), "IOHP - Atala PRISM Mediator"),
h3(className("mdc-drawer__title"), "IOHK - Atala PRISM Mediator"),
h6(className("mdc-drawer__subtitle"), "[email protected]"),
),
div(
Expand Down