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 and /account pages
Browse files Browse the repository at this point in the history
  • Loading branch information
techtolentino committed Sep 6, 2023
1 parent c155f0a commit 3d21ff3
Show file tree
Hide file tree
Showing 5 changed files with 14 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
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 3d21ff3

Please sign in to comment.