Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
feat(1xp-banner): add banner to /signin, /account, and /error p…
Browse files Browse the repository at this point in the history
…ages (#2195)

* feat(1xp-banner): add banner to /signin and /account pages

* feat(1xp-banner): add banner to error template

---------

Co-authored-by: //va <vabarbosa@users.noreply.github.com>
  • Loading branch information
techtolentino and vabarbosa committed Sep 7, 2023
1 parent 10379d3 commit 5d9ba88
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
3 changes: 0 additions & 3 deletions frontend/scss/components/textbook__page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
@import '../variables/mq.scss';
@import '../variables/fonts.scss';

$one-xp-banner-height-desktop: 3.25rem;
$one-xp-banner-height-mobile: 5rem;

body {
max-height: 100vh;
display: grid;
Expand Down
3 changes: 3 additions & 0 deletions frontend/scss/variables/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ $textbook-page-width: 100%;
$qiskit-navbar-height: 3.5rem;
$textbook-page-banner-height: 40px;

$one-xp-banner-height-desktop: 3.25rem;
$one-xp-banner-height-mobile: 5rem;

$left-sidebar-width: 16rem;
$left-sidebar-width-hidden: 3rem;
$left-sidebar-width-sm: 3.5rem;
Expand Down
10 changes: 8 additions & 2 deletions frontend/vue/components/SignIn/SignIn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,26 @@ export default class SignIn extends Vue {
<style lang="scss" scoped>
@import 'carbon-components/scss/globals/scss/typography';
@import '~/../scss/variables/mq.scss';
@import '~/../scss/variables/settings.scss';
@import '~/../scss/mixins/mixins.scss';
@import '~/../scss/variables/colors.scss';
.sign-in {
position: fixed;
top: 3.5rem;
top: calc($qiskit-navbar-height + $one-xp-banner-height-desktop + 1px);
left: 0;
right: 0;
bottom: 0;
z-index: 3;
max-height: calc(100vh - 3.5rem);
max-height: calc(100vh - ($qiskit-navbar-height + $one-xp-banner-height-desktop + 1px));
overflow: hidden;
display: flex;
@include mq($from: medium, $until: large) {
top: calc($qiskit-navbar-height + $one-xp-banner-height-mobile + 1px);
max-height: calc(100vh - ($qiskit-navbar-height + $one-xp-banner-height-mobile + 1px));
}
@include mq($until: medium) {
flex-direction: column;
position: initial;
Expand Down
1 change: 1 addition & 0 deletions server/templates/error.pug
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ html(lang=`${req.locale.id}` dir=dir)
body
div.qiskit__navbar#qiskit-navbar
q-the-menu
q-one-xp-banner

.body
article.c-textbook__page.c-textbook__page__error
Expand Down
2 changes: 2 additions & 0 deletions server/templates/signIn.pug
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ html(lang=lang dir=dir)
body#app
div.qiskit__navbar#qiskit-navbar
q-the-menu
q-one-xp-banner


.body
q-sign-in
Expand Down
1 change: 1 addition & 0 deletions server/templates/userAccount.pug
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ html(lang=lang dir=dir)
body
div.qiskit__navbar#qiskit-navbar
q-the-menu
q-one-xp-banner

.body
q-user-account-layout(first-name=userData.firstName, last-name=userData.lastName email=userData.email user-id=userData.userId)
Expand Down

0 comments on commit 5d9ba88

Please sign in to comment.