FUCKING BIG UPDATE: server, parallax, apis, new data models, style, layout, other

This commit is contained in:
tmshv committed 2016-03-03 01:34:45 +03:00
1 parent e0f54171a9
commit 359cc430f5
78 files changed
+1063 -445

No files matched your search

@@ -1,6 +1,6 @@
<div class="album-collection">
<h2 class="album-collection__title">{{$ctrl.title}}</h2>
<h2 class="album-collection__title">{{$.title}}</h2>
<div class="album-collection__body">
<gallery-item ng-repeat="album in $ctrl.albums" record="album"></gallery-item>
<gallery-item ng-repeat="i in $.albums" record="i"></gallery-item>
</div>
</div>
+15
View File
@@ -0,0 +1,15 @@
<article class="album">
<!--<header class="album__head">-->
<!--<h2>{{$.album.title}}</h2>-->
<!--<p class="date">{{$.album.date | date : "dd.MM.yyyy"}}</p>-->
<!--</header>-->
<!--<div class="album__body" ng-bind-html="$.post"></div>-->
<header class="album__head">
<h2>{{$.title}}</h2>
<!--<p class="date">{{$.album.date | date : "dd.MM.yyyy"}}</p>-->
</header>
<div class="album__body" ng-transclude></div>
</article>
+5 -3
View File
@@ -1,5 +1,7 @@
<div class="document">
<a href="{{$ctrl.document.thumbs.original.url}}" target="_blank">
<img ng-src="{{$ctrl.document.thumbs.medium.url}}">
</a>
<div class="document__image">
<a href="{{$.document.url}}" target="_blank" class="invisible">
<img ng-src="{{$.document.preview.data.small.url}}">
</a>
</div>
</div>
+4 -4
View File
@@ -1,8 +1,8 @@
<div class="event-post">
<div class="event-post__head">
<article class="event-post">
<header class="event-post__head">
<a href="{{$.url}}"><h3>{{$.post.title}}</h3></a>
<p class="date">{{$.post.date | date : "dd.MM.yyyy"}}</p>
</div>
</header>
<div class="event-post__body" ng-bind-html="$.message"></div>
</div>
</article>
+3 -6
View File
@@ -1,9 +1,6 @@
<div class="gallery-item">
<h3>
<a href="{{$ctrl.record.url}}">{{$ctrl.record.title}}</a>
</h3>
<a href="{{$ctrl.record.url}}" class="invisible">
<img ng-src="{{$ctrl.record.preview_url}}" alt="{{$ctrl.record.title}}"/>
<a href="{{$.record.url}}">
<h3>{{$.record.title}}</h3>
<img ng-src="{{$.previewImage}}" alt="{{$.record.title}}"/>
</a>
<p>{{$ctrl.record.course}}</p>
</div>
+1 -1
View File
@@ -1,5 +1,5 @@
<div class="navigation">
<main-menu items="$ctrl.menu"></main-menu>
<main-menu items="$.menu"></main-menu>
<div class="navigation__right">
<span>+7 (81362) 76-312</span>
+34
View File
@@ -0,0 +1,34 @@
<div class="content content_thin content--padding-top--menu">
<!--<album album="$.album"></album>-->
<album title="{{$.album.title}}">
<div ng-bind-html="$.post"></div>
</album>
<!--<breadcrumbs crumbs="$.crumbs"></breadcrumbs>-->
<!--<div class="album-block">-->
<!--<h1>{{$.album.title}}</h1>-->
<!--<div class="album" ng-show="$.album">-->
<!--<div class="album-info">-->
<!--<p>Предмет: {{$.album.course}}</p>-->
<!--<p>Преподаватель: {{$.album.teacherName}}</p>-->
<!--<p class="description" ng-show="$.album.description">{{$.album.description}}</p>-->
<!--</div>-->
<!--<div class="album-item" ng-repeat="product in $.album.content">-->
<!--<img ng-src="{{product.content.big.url}}" alt=""/>-->
<!--<div class="product-info">-->
<!--<div>-->
<!--<p ng-show="product.title" class="title">{{product.title | removeNewline}}</p>-->
<!--<p>{{product.author}}</p>-->
<!--<p ng-show="product.authorAge">{{product.authorAge}} лет</p>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
</div>
@@ -1,7 +1,12 @@
<div class="page-collective content content_full">
<!--<img ng-style="$ctrl.imageStyle" class="collective-image" src="https://static.shlisselburg.org/art/collective/collective.jpg" alt="">-->
<!--<div class="page-collective__body content content_semi-wide content_down-screen content_padding">-->
<div class="content content_semi-wide">
<teacher-profile ng-repeat="person in $ctrl.members track by $index" member="person"></teacher-profile>
<img class="page-collective__collective-image"
width="100%"
src="https://static.shlisselburg.org/art/graphics/collective.jpg">
<div class="content content_semi-wide content--padding-top--double">
<teacher-profile
ng-repeat="i in $ctrl.members"
profile="i"
show-url="{{true}}"></teacher-profile>
</div>
</div>
+3 -3
View File
@@ -1,5 +1,5 @@
<div class="content content_wide">
<div ng-repeat="c in $ctrl.collections">
<div class="content content_wide content--padding-top--menu">
<div ng-repeat="c in $.collections">
<h2>{{c.name}}</h2>
<div class="documents-container">
@@ -9,6 +9,6 @@
<h2>Награды</h2>
<div class="documents-container">
<award ng-repeat="i in $ctrl.awards" document="i"></award>
<award ng-repeat="i in $.awards" document="i"></award>
</div>
</div>
+2 -2
View File
@@ -1,3 +1,3 @@
<div class="content content_thin content--padding-top--double">
<section class="content content_thin content--padding-top--menu">
<event-post ng-repeat="i in $.posts" post="i"></event-post>
</div>
</section>
+3 -3
View File
@@ -1,3 +1,3 @@
<div class="content content_thin content--padding-top--double">
<event-post ng-repeat="i in $.posts" post="i"></event-post>
</div>
<section class="content content_thin content--padding-top--menu">
<event-post ng-repeat="i in $.events" post="i"></event-post>
</section>
+5 -3
View File
@@ -1,5 +1,7 @@
<div class="content content_wide">
<album-collection ng-repeat="i in $ctrl.years"
title="{{i.year}}" albums="i.albums"
<div class="content content_wide content--padding-top--menu">
<album-collection
ng-repeat="i in $.collections"
title="{{i.title}}"
albums="i.albums"
></album-collection>
</div>
+5 -5
View File
@@ -1,13 +1,13 @@
<div class="content content_wide">
<div class="content content_wide content--padding-top--menu">
<div class="schedule-selector">
<label> Семестр
<select
ng-model="$ctrl.currentSchedule"
ng-change="$ctrl.loadSchedule($ctrl.currentSchedule, true)"
ng-options="s.text for s in $ctrl.schedules">
ng-model="$ctrl.currentSchedule"
ng-change="$ctrl.loadSchedule($ctrl.currentSchedule, true)"
ng-options="s.text for s in $ctrl.schedules">
</select>
</label>
</div>
<schedule schedule="$ctrl.schedule"></schedule>
</div>
</div>
+8 -2
View File
@@ -1,8 +1,14 @@
<div class="content content_full">
<img src="https://static.shlisselburg.org/art/graphics/entrance.jpg" width="100%">
<div class="content content_full" ng-switch="$.helloBlock">
<img ng-switch-when="mobile-image"
src="https://static.shlisselburg.org/art/graphics/entrance.jpg" width="100%">
<parallax ng-switch-default></parallax>
</div>
<div class="content content_thin">
<div class="hudozka-title">
<p>МБОУДОД</p>
<h1>Шлиссельбургская детская художественная&nbsp;школа</h1>
</div>
<!--<div class="main-block">-->
<!--<div>-->
<!--&lt;!&ndash;<a href="tel://{{telephone}}"></a>&ndash;&gt;-->
@@ -0,0 +1,3 @@
<div class="content content_semi-wide content--padding-top--menu">
<teacher-profile profile="$.member" show-url="{{false}}"></teacher-profile>
</div>
+6
View File
@@ -0,0 +1,6 @@
<div class="parallax">
<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>
@@ -2,7 +2,7 @@
<div class="schedule-record__head">Группа {{$ctrl.record.name}} ({{$ctrl.record.time}})</div>
<div class="schedule-record__main">
<p class="schedule-record__name">{{$ctrl.record.content.lesson}}</p>
<p class="schedule-record__tutor">{{$ctrl.record.content.teacher}}</p>
<p class="schedule-record__tutor"><a href="{{$ctrl.record.content.teacher.url}}">{{$ctrl.record.content.teacher.name}}</a></p>
<p class="schedule-record__time" ng-repeat="time in $ctrl.record.content.time">{{time}}</p>
</div>
</div>
+12 -7
View File
@@ -28,17 +28,22 @@
</div>
<div class="schedule-table__body">
<div class="schedule-table__body-row" ng-repeat="group in $ctrl.schedule">
<div class="schedule-table__body-row"
ng-repeat="i in $ctrl.schedule">
<div class="schedule-table__body-group">
<p class="name">{{group.name}}</p>
<p class="time">{{group.time}}</p>
<p class="name">{{i.group}}</p>
<p class="time">{{i.time}}</p>
</div>
<div class="schedule-table__record" ng-repeat="day in group.days track by $index" ng-class="{current: $ctrl.isToday($index)}">
<div class="schedule-table__record"
ng-repeat="day in i.week track by $index"
ng-class="{current: $ctrl.isToday($index)}"
>
<p class="lesson"><a href="">{{day.lesson}}</a></p>
<p class="teacher"><a href="">{{day.teacher}}</a></p>
<p class="time">{{day.time[0] | join: '—'}}</p>
<p class="time">{{day.time[1] | join: '—'}}</p>
<p class="teacher"><a href="{{day.teacher.url}}">{{day.teacher.name}}</a></p>
<p class="time" ng-repeat="time in day.time">{{time}}</p>
</div>
</div>
</div>
@@ -1,18 +1,19 @@
<div class="teacher-profile">
<div class="teacher-profile__picture">
<img ng-src="{{$ctrl.image.url}}" >
<img ng-src="{{$.image.url}}" >
</div>
<div class="teacher-profile__info">
<h3>{{$ctrl.firstName}} {{$ctrl.middleName}} <strong>{{$ctrl.lastName}}</strong></h3>
<h3 ng-hide="$.url">{{$.firstName}} {{$.middleName}} <strong>{{$.lastName}}</strong></h3>
<h3 ng-show="$.url"><a href="{{$.profile.url}}">{{$.firstName}} {{$.middleName}} <strong>{{$.lastName}}</strong></a></h3>
<div class="info">
<p><strong>{{$ctrl.member.position}}</strong></p>
<p>{{$ctrl.member.status}}</p>
<p>Образование: {{$ctrl.member.edu}}</p>
<p>Диплом: {{$ctrl.member.diploma}}</p>
<div>
<p class="teacher-profile__position"><i><strong>{{$.profile.position}}</strong></i></p>
<p>{{$.profile.status}}</p>
<p>Образование: {{$.profile.edu}}</p>
<p>Диплом: <i>{{$.profile.diploma}}</i></p>
</div>
<div class="biography" ng-bind-html="$ctrl.biography"></div>
<div class="teacher-profile__biography" ng-bind-html="$.biography"></div>
</div>
</div>