diff --git a/src/client/app.js b/src/client/app.js
index 7ee2ed19..5297c74c 100644
--- a/src/client/app.js
+++ b/src/client/app.js
@@ -16,8 +16,9 @@ import ScheduleSlide from './components/ScheduleSlide';
import ScheduleRecord from './components/ScheduleRecord';
import FooterLinks from './components/FooterLinks';
+import PageSchool from './components/PageSchool';
+
import AppController from './controllers/AppController';
-import HomeController from './controllers/HomeController';
import ScheduleController from './controllers/ScheduleController';
import CollectiveController from './controllers/CollectiveController';
import GalleryController from './controllers/GalleryController';
@@ -89,8 +90,8 @@ app.run(($location, $rootScope, $http) => {
GalleryItem,
AlbumCollection,
TeacherProfile,
+ PageSchool,
AppController,
- HomeController,
ScheduleController,
CollectiveController,
GalleryController,
@@ -105,10 +106,6 @@ app.run(($location, $rootScope, $http) => {
ScheduleRecord,
FooterLinks,
function (app) {
- app.controller('HomePageController', ($scope) => {
- $scope.pageClass = 'page-home';
- });
-
app.controller('SchedulePageController', ($scope) => {
$scope.pageClass = 'page-schedule';
});
diff --git a/src/client/components/PageSchool.js b/src/client/components/PageSchool.js
new file mode 100644
index 00000000..f8b2baad
--- /dev/null
+++ b/src/client/components/PageSchool.js
@@ -0,0 +1,37 @@
+import template from '../../templates/components/page-school.html';
+
+export default function (app) {
+ app.component('pageSchool', {
+ template: template,
+ controller: () => {
+ this.pageClass = 'page-school';
+
+ let fotorama;
+ let $tape = $('.tape-block');
+ let $fotorama = $tape.find('.tape-block__content');
+
+ $tape.addClass('simplified');
+ $fotorama.on('fotorama:ready', () => {
+ $tape.removeClass('simplified');
+ fotorama.setOptions({
+ nav: 'dots',
+ transition: 'crossfade',
+ autoplay: '6000',
+ arrows: 'false',
+ width: '100%',
+ fit: 'cover',
+ loop: 'true'
+ });
+ });
+
+ fotorama = $fotorama.fotorama().data('fotorama');
+ setTimeout(() => {
+ fotorama.load([
+ {img: 'https://static.shburg.org/art/img/cat1.jpg'},
+ {img: 'https://static.shburg.org/art/img/cat2.jpg'},
+ {img: 'https://static.shburg.org/art/img/cat3.jpg'}
+ ]);
+ }, 100);
+ }
+ });
+};
\ No newline at end of file
diff --git a/src/client/config.js b/src/client/config.js
index 73463d7a..4c605835 100644
--- a/src/client/config.js
+++ b/src/client/config.js
@@ -22,8 +22,7 @@ export let collectiveSortPattern = [
export let routes = [
{
name: '/',
- templateUrl: '/views/home.html',
- controller: 'HomePageController',
+ template: '