Fix public layout
This commit is contained in:
parent
5be7428b70
commit
490ce15db2
|
|
@ -48,7 +48,10 @@ describe('The Login Page', () => {
|
|||
|
||||
cy.get('[data-cy=logout]').click();
|
||||
|
||||
cy.get('[data-cy=email-input]').should('exist').within(() => {
|
||||
cy.visit('/beta-login');
|
||||
});
|
||||
|
||||
cy.login(user, pw);
|
||||
|
||||
cy.get('[data-cy=header-user-widget]').should('exist').within(() => {
|
||||
|
|
|
|||
|
|
@ -1,17 +1,22 @@
|
|||
<template>
|
||||
<div class="layout layout--public public">
|
||||
<logo class="public__logo"></logo>
|
||||
<router-view class="layout__content"></router-view>
|
||||
<footer class="layout__footer">Footer</footer>
|
||||
<div class="public__logo">
|
||||
<logo></logo>
|
||||
</div>
|
||||
<router-view class="public__content"></router-view>
|
||||
<default-footer class="skillbox__footer public__footer footer"></default-footer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import Logo from '@/components/icons/Logo';
|
||||
import DefaultFooter from '@/layouts/DefaultFooter';
|
||||
|
||||
export default {
|
||||
components: {Logo},
|
||||
components: {
|
||||
Logo,
|
||||
DefaultFooter
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
@ -20,17 +25,39 @@ import Logo from '@/components/icons/Logo';
|
|||
@import "@/styles/_mixins.scss";
|
||||
@import "@/styles/_default-layout.scss";
|
||||
|
||||
.public {
|
||||
@mixin content-block {
|
||||
padding-right: $medium-spacing;
|
||||
padding-left: $medium-spacing;
|
||||
max-width: 800px;
|
||||
min-width: 320px;
|
||||
padding-top: 4*$large-spacing;
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
&__logo {
|
||||
.logo {
|
||||
position: relative;
|
||||
|
||||
width: 260px;
|
||||
height: 43px;
|
||||
}
|
||||
|
||||
.public {
|
||||
grid-template-areas: "h" "c" "f";
|
||||
|
||||
&__content {
|
||||
@include content-block();
|
||||
margin-bottom: $large-spacing;
|
||||
}
|
||||
|
||||
&__logo {
|
||||
@include content-block();
|
||||
margin-top: $medium-spacing
|
||||
}
|
||||
|
||||
&__footer {
|
||||
background-color: $color-silver-light;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
|
|
|
|||
Loading…
Reference in New Issue