diff --git a/mon-pix/app/components/module/_beta-banner.scss b/mon-pix/app/components/module/_beta-banner.scss deleted file mode 100644 index e8571d77630..00000000000 --- a/mon-pix/app/components/module/_beta-banner.scss +++ /dev/null @@ -1,3 +0,0 @@ -.beta-banner { - z-index: 2; -} diff --git a/mon-pix/app/components/module/_passage.scss b/mon-pix/app/components/module/_passage.scss index 201470a007d..12501fd489c 100644 --- a/mon-pix/app/components/module/_passage.scss +++ b/mon-pix/app/components/module/_passage.scss @@ -1,3 +1,28 @@ +.module-navbar { + position: sticky; + top: 0; + z-index: var(--modulix-z-index-above-all); + height: var(--module-navbar-height); + padding: var(--pix-spacing-4x); + background: var(--pix-neutral-0); + box-shadow: 0 4px 20px 0 rgb(0 0 0 / 6%); + + &__content { + display: flex; + max-width: var(--modulix-max-content-width); + margin: 0 auto; + + &__current-step { + padding: var(--pix-spacing-1x) var(--pix-spacing-2x); + color: var(--pix-primary-700); + background-color: var(--pix-primary-100); + border-radius: var(--modulix-radius-xs); + } + } + + +} + .module-passage { max-width: var(--modulix-max-content-width); margin: 0 auto; diff --git a/mon-pix/app/components/module/beta-banner.gjs b/mon-pix/app/components/module/beta-banner.gjs index 68713704d84..0f94289b7c5 100644 --- a/mon-pix/app/components/module/beta-banner.gjs +++ b/mon-pix/app/components/module/beta-banner.gjs @@ -2,7 +2,7 @@ import PixBanner from '@1024pix/pix-ui/components/pix-banner'; import { t } from 'ember-intl'; diff --git a/mon-pix/app/components/module/element/_embed.scss b/mon-pix/app/components/module/element/_embed.scss index 61e1c8f9315..72f013e223e 100644 --- a/mon-pix/app/components/module/element/_embed.scss +++ b/mon-pix/app/components/module/element/_embed.scss @@ -3,8 +3,6 @@ } .element-embed { - position: relative; - &__container { position: relative; } @@ -32,12 +30,10 @@ } } - &__overlay { position: absolute; top: 0; left: 0; - z-index: 2; display: flex; align-items: center; justify-content: center; diff --git a/mon-pix/app/components/module/element/embed.gjs b/mon-pix/app/components/module/element/embed.gjs index ea598caf867..5aeea19b166 100644 --- a/mon-pix/app/components/module/element/embed.gjs +++ b/mon-pix/app/components/module/element/embed.gjs @@ -71,6 +71,15 @@ export default class ModulixEmbed extends ModuleElement { {{/if}}
+ + {{#unless this.isSimulatorLaunched}}
{{/unless}} - -
{{#if this.isSimulatorLaunched}} diff --git a/mon-pix/app/components/module/passage.gjs b/mon-pix/app/components/module/passage.gjs index d8e8de93d20..9892a743d5e 100644 --- a/mon-pix/app/components/module/passage.gjs +++ b/mon-pix/app/components/module/passage.gjs @@ -2,6 +2,7 @@ import { action } from '@ember/object'; import { service } from '@ember/service'; import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; +import { t } from 'ember-intl'; import { pageTitle } from 'ember-page-title'; import didInsert from '../../modifiers/modifier-did-insert'; @@ -34,6 +35,10 @@ export default class ModulePassage extends Component { return this.grainsToDisplay.length - 1; } + get currentPassageStep() { + return this.currentGrainIndex + 1; + } + @action onGrainSkip() { const currentGrain = this.displayableGrains[this.currentGrainIndex]; @@ -193,9 +198,24 @@ export default class ModulePassage extends Component {