page school main image update
This commit is contained in:
1 parent
3419c8e0a5
commit
b44ef862af
6 files changed
+33
-51
No files matched your search
@@ -1,39 +0,0 @@
|
|||||||
@import "../variables";
|
|
||||||
|
|
||||||
.page-school {
|
|
||||||
&.ng-leave {
|
|
||||||
transform-origin: 0% 0%;
|
|
||||||
animation: rotateFall $short-duration both ease-in;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.ng-enter {
|
|
||||||
animation: scaleUp $short-duration both ease-in;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.hudozka-title {
|
|
||||||
padding: $double-margin 0;
|
|
||||||
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
p {
|
|
||||||
color: $light-color;
|
|
||||||
margin-bottom: $single-margin;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
margin-top: $single-margin;
|
|
||||||
font-size: 2em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: $mobile-width) {
|
|
||||||
.hudozka-title {
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: 1em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +1,15 @@
|
|||||||
@import "../variables";
|
@import "../variables";
|
||||||
|
|
||||||
.parallax {
|
.parallax {
|
||||||
|
min-width: 1280px;
|
||||||
width: 1280px;
|
width: 1280px;
|
||||||
height: 1000px;
|
height: 1000px;
|
||||||
margin: 0 auto;
|
|
||||||
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
//&__container {
|
||||||
|
//
|
||||||
|
//}
|
||||||
|
|
||||||
&__layer {
|
&__layer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -1,7 +1,18 @@
|
|||||||
@import "variables";
|
@import "variables";
|
||||||
|
|
||||||
.main-image{
|
.main-image{
|
||||||
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 1280px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__content {
|
||||||
|
min-width: 1280px;
|
||||||
|
width: 1280px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
@import "components/album";
|
@import "components/album";
|
||||||
@import "components/parallax";
|
@import "components/parallax";
|
||||||
|
|
||||||
@import "components/page-school";
|
|
||||||
@import "components/page-schedule";
|
@import "components/page-schedule";
|
||||||
@import "components/page-collective";
|
@import "components/page-collective";
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,14 @@
|
|||||||
<div class="content content_full" ng-switch="$.helloBlock">
|
<div class="content content_full">
|
||||||
<div class="main-image">
|
<div class="main-image" ng-switch="$.helloBlock">
|
||||||
<img ng-switch-when="mobile-image"
|
<img src="https://static.shlisselburg.org/art/graphics/entrance.jpg"
|
||||||
src="https://static.shlisselburg.org/art/graphics/entrance.jpg" width="100%">
|
ng-switch-when="mobile-image"
|
||||||
<parallax ng-switch-default></parallax>
|
/>
|
||||||
|
|
||||||
|
<div class="main-image__content"
|
||||||
|
ng-switch-default
|
||||||
|
>
|
||||||
|
<parallax></parallax>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
<div class="parallax">
|
<div class="parallax">
|
||||||
<div class="parallax__layer" ng-repeat="i in layers" ng-style="{top: i.y, left: i.x}">
|
<div class="parallax__container">
|
||||||
<img ng-src="{{i.url}}" alt="">
|
<div class="parallax__layer" ng-repeat="i in layers" ng-style="{top: i.y, left: i.x}">
|
||||||
|
<img ng-src="{{i.url}}" alt="">
|
||||||
|
</div>
|
||||||
|
<div class="parallax__end"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="parallax__end"></div>
|
|
||||||
</div>
|
</div>
|
||||||
Reference in new issue
Block a user