diff --git a/src/client/app.js b/src/client/app.js index dc989989..d9807ba9 100644 --- a/src/client/app.js +++ b/src/client/app.js @@ -3,6 +3,7 @@ import Breadcrumbs from './components/Breadcrumbs'; import Document from './components/Document'; import Award from './components/Award'; import GalleryItem from './components/GalleryItem'; +import AlbumCollection from './components/AlbumCollection'; import TeacherProfile from './components/TeacherProfile'; import Timeline from './components/Timeline'; import TimelineRecord from './components/TimelineRecord'; @@ -85,6 +86,7 @@ app.run(($location, $rootScope, $http) => { Document, Award, GalleryItem, + AlbumCollection, TeacherProfile, AppController, HomeController, diff --git a/src/client/components/AlbumCollection.js b/src/client/components/AlbumCollection.js new file mode 100644 index 00000000..c054a103 --- /dev/null +++ b/src/client/components/AlbumCollection.js @@ -0,0 +1,11 @@ +import template from '../../templates/components/album-collection.html'; + +export default function (app) { + app.component('albumCollection', { + bindings: { + title: '@', + albums: '<' + }, + template: template + }); +}; \ No newline at end of file diff --git a/src/style/components/album-collection.scss b/src/style/components/album-collection.scss new file mode 100644 index 00000000..65dbf9c0 --- /dev/null +++ b/src/style/components/album-collection.scss @@ -0,0 +1,14 @@ +@import "../variables"; + +.album-collection{ + &__body{ + display: flex; + flex-wrap: wrap; + position: relative; + align-items:flex-end; + } + + &__title{ + + } +} diff --git a/src/style/components/gallery-item.scss b/src/style/components/gallery-item.scss index 4851020b..7986e682 100644 --- a/src/style/components/gallery-item.scss +++ b/src/style/components/gallery-item.scss @@ -1,14 +1,18 @@ @import "../variables"; $img-max-width: 500px; +$double-margin-half: $double-margin / 2; +$percentage: 25%; + +gallery-item { + width: $percentage; + padding: 0 $double-margin-half; + box-sizing: padding-box; -.gallery-item { - width: calc(33% - #{$single-margin}); margin-bottom: $single-margin; - img { + img{ width: 100%; - max-width: $img-max-width; } } diff --git a/src/style/gallery.scss b/src/style/gallery.scss deleted file mode 100644 index e478c2c8..00000000 --- a/src/style/gallery.scss +++ /dev/null @@ -1,18 +0,0 @@ -@import "variables"; - -.album-collection{ - -} - -.album-collection__body{ - display: flex; - justify-content: space-between; - flex-wrap: wrap; - align-items: flex-start; - - margin-bottom: $double-margin; -} - -.album-collection__title{ - -} diff --git a/src/style/style.scss b/src/style/style.scss index b739845d..6dc07478 100644 --- a/src/style/style.scss +++ b/src/style/style.scss @@ -1,3 +1,4 @@ +@import "components/album-collection"; @import "components/gallery-item"; @import "components/document"; @import "components/teacher-proifile"; @@ -15,7 +16,6 @@ @import "content"; @import "page-animation"; -@import "gallery"; @import "docs"; @import "document"; @import "album"; diff --git a/src/templates/components/album-collection.html b/src/templates/components/album-collection.html new file mode 100644 index 00000000..2bfe07ec --- /dev/null +++ b/src/templates/components/album-collection.html @@ -0,0 +1,6 @@ +
+

{{$ctrl.title}}

+
+ +
+
\ No newline at end of file diff --git a/src/templates/views/gallery.html b/src/templates/views/gallery.html index b1a8ffe0..61b8a4ea 100644 --- a/src/templates/views/gallery.html +++ b/src/templates/views/gallery.html @@ -1,8 +1,5 @@
-
-

{{period.year}}

-
- -
-
+