layout update; mobile version; data update;

This commit is contained in:
tmshv committed 2015-03-02 04:44:53 +03:00
1 parent 8d0f88ec81
commit 5b477aa41c
18 files changed
+348 -138

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

+11 -7
View File
@@ -15,15 +15,9 @@
} }
.docblock{ .docblock{
// width:100%;
margin-bottom: 40px; margin-bottom: 40px;
text-align: center; text-align: center;
// .docs{
// text-align: left;
// }
h2{ h2{
margin-left: 50px; margin-left: 50px;
text-align: left; text-align: left;
@@ -61,4 +55,14 @@
padding: 0; padding: 0;
display: block; display: block;
} }
} }
@media screen and (max-device-width: 400px){
.doc{
margin: 30px 35px;
img{
max-width: 250px;
}
}
}
+26 -1
View File
@@ -2,6 +2,8 @@ footer{
position: relative; position: relative;
background-color: black; background-color: black;
color: #ffffff; color: #ffffff;
overflow-x: scroll;
margin: 0;
&:before{ &:before{
content: ''; content: '';
@@ -14,7 +16,7 @@ footer{
.info-block{ .info-block{
display: flex; display: flex;
margin: 0 20px; margin: 0;
& > div{ & > div{
margin: 0 30px 0 10px; margin: 0 30px 0 10px;
@@ -28,4 +30,27 @@ footer{
ul{ ul{
list-style: none; list-style: none;
} }
}
.footer-content{
min-width: 500px;
}
@media screen and (max-device-width: 500px){
footer{
font-size: 8pt;
.info-block{
display: block;
margin: 0;
& > div{
margin: 0 30px 0 10px;
}
p{
margin: 0;
}
}
}
} }
+26
View File
@@ -8,3 +8,29 @@
animation: scaleUp 0.3s both ease-in; animation: scaleUp 0.3s both ease-in;
} }
} }
.main-block {
width: 100%;
margin-top: 5px;
.telephone {
font-size: 1.25em;
margin-left: 30px;
}
h1 {
font-size: 18pt;
text-align: center;
font-weight: normal;
margin: 0;
padding: 0;
}
}
@media screen and (max-device-width: 500px) {
.main-block {
.telephone {
display: none;
}
}
}
+1 -16
View File
@@ -2,23 +2,8 @@ body {
font-family: "PT Sans", Arial, sans-serif; font-family: "PT Sans", Arial, sans-serif;
margin: 0; margin: 0;
padding: 0; padding: 0;
}
.main { min-width: 320px;
margin-top: 5px;
.telephone {
font-size: 1.25em;
margin-left: 30px;
}
h1 {
font-size: 20pt;
text-align: center;
font-weight: normal;
margin: 0;
padding: 0;
}
} }
a { a {
+17 -1
View File
@@ -8,7 +8,7 @@
font-size: 13pt; font-size: 13pt;
ul { ul {
margin: 0 0 0 20px; margin: 0 0 0 10px;
li { li {
display: inline-block; display: inline-block;
@@ -62,3 +62,19 @@
} }
} }
@media screen and (max-device-width: 500px){
.menu {
font-size: 10pt;
ul {
margin: 0 0 0 5px;
padding: 0 0 0 0;
li {
display: inline-block;
padding: 3px 3px 10px 3px;
margin: 0 4px 5px 0;
}
}
}
}
+13 -1
View File
@@ -15,6 +15,10 @@
padding-bottom: 50px; padding-bottom: 50px;
text-align: center; text-align: center;
.schedule-block{
overflow-x: scroll;
}
table{ table{
position: relative; position: relative;
margin: 30px auto 0 auto; margin: 30px auto 0 auto;
@@ -196,4 +200,12 @@
display: block; display: block;
margin-top: 90px; margin-top: 90px;
} }
} }
@media screen and (max-device-width: 400px){
.schedule{
thead.fix{
display: none;
}
}
}
+44
View File
@@ -40,4 +40,48 @@
right: -25px; right: -25px;
background-image: url(/graphics/tape-rb.png); background-image: url(/graphics/tape-rb.png);
} }
}
@media screen and (max-device-width: 400px) {
.tape-block {
width: 70%;
max-width: 250px;
min-width: 200px;
margin: 50px auto 100px;
}
.tape-block-content {
.tape {
width: 62px;
height: 62px;
position: absolute;
z-index: 10;
}
.tape-tl {
top: -20px;
left: -20px;
background-image: url(/graphics/m-tape-tl.png);
background-size: 100%;
}
.tape-tr {
top: -20px;
right: -20px;
background-image: url(/graphics/m-tape-tr.png);
}
.tape-bl {
bottom: 10px;
left: -20px;
background-image: url(/graphics/m-tape-bl.png);
}
.tape-br {
bottom: 10px;
right: -20px;
background-image: url(/graphics/m-tape-br.png);
}
}
} }
+68 -1
View File
@@ -1,5 +1,5 @@
.timeline{ .timeline{
min-width: 500px; min-width: 400px;
position: relative; position: relative;
margin: 0 0 50px; margin: 0 0 50px;
@@ -100,4 +100,71 @@
background: url(/graphics/timeline-arrow-right.png) no-repeat; background: url(/graphics/timeline-arrow-right.png) no-repeat;
} }
} }
}
@media screen and (max-device-width: 400px) {
.timeline {
min-width: 0;
position: relative;
margin: 0 0 50px;
.head{
margin: 0;
padding: 0;
}
.body{
margin: 0 0 40px;
padding: 0;
}
.body p{
text-align: left;
margin: 0 0 2px;
padding: 0;
}
.post {
position: relative;
display: flex;
.head, .body {
position: relative;
width: 90%;
box-sizing: border-box;
}
&.left {
display: block;
.body:after, .head:after {
background: none;
}
}
&.right {
display: block;
.body:after, .head:after {
background: none;
}
}
&.left .head {
text-align: left;
}
&.right .head {
text-align: left;
}
.head {
padding: 5px 20px;
}
.body {
padding: 0 20px;
}
}
}
} }
+11 -1
View File
@@ -49,11 +49,21 @@ app.config(function ($locationProvider, $routeProvider) {
}); });
}); });
app.run(function($location, $rootScope, $http) { app.run(function($location, $rootScope, $http, config) {
$rootScope.$on("$routeChangeSuccess", function (event, current) { $rootScope.$on("$routeChangeSuccess", function (event, current) {
$rootScope.title = current["$$route"].title; $rootScope.title = current["$$route"].title;
}); });
$rootScope.contact = {
address: config.address,
telephone: config.telephone,
email: config.email
};
$rootScope.now = {
year: new Date().getFullYear()
};
$http.defaults.headers.common["Accept"] = "application/json"; $http.defaults.headers.common["Accept"] = "application/json";
}); });
+3 -1
View File
@@ -14,6 +14,8 @@ angular.module("hudozhka.data", [])
}) })
.service("config", function(){ .service("config", function(){
return { return {
telephone: "8 (81362) 76-312" telephone: "8 (81362) 76-312",
email: "hudozka@gmail.com",
address: "г. Шлиссельбург, ул. 18-го января, д. 3"
}; };
}); });
-1
View File
@@ -5,7 +5,6 @@
module.exports = function (app) { module.exports = function (app) {
app.controller("HomePageController", function ($scope, config) { app.controller("HomePageController", function ($scope, config) {
$scope.pageClass = "page-home"; $scope.pageClass = "page-home";
$scope.telephone = config.telephone;
$(".fotorama").fotorama(); $(".fotorama").fotorama();
}); });
+37 -28
View File
@@ -4,6 +4,7 @@
<base href="/"> <base href="/">
<meta name="fragment" content="!"> <meta name="fragment" content="!">
<meta name="google-site-verification" content="8BxOTw-Q02DS2KAdcGcnIMwiPZ58DVB18XpOfRibCcg"> <meta name="google-site-verification" content="8BxOTw-Q02DS2KAdcGcnIMwiPZ58DVB18XpOfRibCcg">
<meta name="viewport" content="width=device-width, maximum-scale=1.0" />
<title ng-bind="title">ДШХ Шлиссельбурга</title> <title ng-bind="title">ДШХ Шлиссельбурга</title>
@@ -48,44 +49,52 @@
<span ng-hide="isValid(item)">{{item.text}}</span> <span ng-hide="isValid(item)">{{item.text}}</span>
<a href="{{item.url}}" ng-show="isValid(item)">{{item.text}}</a> <a href="{{item.url}}" ng-show="isValid(item)">{{item.text}}</a>
</li> </li>
<a href="{{vkgroup}}" class="vk"><img src="/graphics/icon.vk.png"></a> <!--<a href="{{vkgroup}}" class="vk"><img src="/graphics/icon.vk.png"></a>-->
</ul> </ul>
</div> </div>
<div class="page {{pageClass}}" ng-view></div> <div class="page {{pageClass}}" ng-view></div>
<footer> <footer>
<div class="info-block"> <div class="footer-content">
<div> <div class="info-block">
<h4>Ссылки на образовательные сайты</h4> <div>
<ul> <h4>Ссылки на образовательные сайты</h4>
<li><a href="http://минобрнауки.рф">минобрнауки.рф</a> — Министерство образования и науки Российской Федерации</li> <ul>
<li><a href="http://edu.ru">edu.ru</a> — Федеральный сайт «Российское образование»</li> <li><a href="http://минобрнауки.рф">минобрнауки.рф</a> — Министерство образования и науки Российской Федерации</li>
<li><a href="http://window.edu.ru">window.edu.ru</a> — Единое окно доступа к образовательным ресурсам</li> <li><a href="http://edu.ru">edu.ru</a> — Федеральный сайт «Российское образование»</li>
<li><a href="http://school-collection.edu.ru">school-collection.edu.ru</a> — Единая коллекция цифровых образовательных ресурсов</li> <li><a href="http://window.edu.ru">window.edu.ru</a> — Единое окно доступа к образовательным ресурсам</li>
<li><a href="http://fcior.edu.ru">fcior.edu.ru</a> — Федеральный центр информационных образовательных ресурсов</li> <li><a href="http://school-collection.edu.ru">school-collection.edu.ru</a> — Единая коллекция цифровых образовательных ресурсов</li>
</ul> <li><a href="http://fcior.edu.ru">fcior.edu.ru</a> — Федеральный центр информационных образовательных ресурсов</li>
<ul> </ul>
<li><a href="http://dkhshmga.ru">dkhshmga.ru</a> — Художественная школа Мги</li> <ul>
<li><a href="http://kirovskdmh.ucoz.ru">kirovskdmh.ucoz.ru</a> — Музыкальная школа Кировска</li> <li><a href="http://dkhshmga.ru">dkhshmga.ru</a> — Художественная школа Мги</li>
</ul> <li><a href="http://kirovskdmh.ucoz.ru">kirovskdmh.ucoz.ru</a> — Музыкальная школа Кировска</li>
</ul>
</div>
<div>
<h4>Документы</h4>
<ul>
<li><a target="_blank" href="/document/edu-license">Лицензия на осуществление образовательной деятельности</a></li>
<li><a target="_blank" href="/document/gov-certificate">Свидетельство о государственной регистрации права</a></li>
<li><a target="_blank" href="/document/EGRYL1">Свидетельство о внесении в «ЕГРЮЛ»</a></li>
<li><a target="_blank" href="/document/VAT">ИНН</a></li>
<li><a target="_blank" href="/document/statue-2013">Устав школы</a></li>
</ul>
</div>
</div> </div>
<div> <div class="info-block">
<h4>Документы</h4> <div>
<ul> <p>© 2014...{{now.year}}</p>
<li><a target="_blank" href="/document/edu-license">Лицензия на осуществление образовательной деятельности</a></li> <p>Художественная школа Шлиссельбурга</p>
<li><a target="_blank" href="/document/gov-certificate">Свидетельство о государственной регистрации права</a></li> <p>Адрес: {{contact.address}}</p>
<li><a target="_blank" href="/document/EGRYL1">Свидетельство о внесении в «ЕГРЮЛ»</a></li> <p>Телефон: {{contact.telephone}}</p>
<li><a target="_blank" href="/document/VAT">ИНН</a></li> <p>Почта: <a href="mailto:{{contact.email}}">{{contact.email}}</a></p>
<li><a target="_blank" href="/document/statue-2013">Устав школы</a></li> </div>
</ul>
</div> </div>
</div> </div>
<div class="info-block">
<p>Художественная школа Шлиссельбурга, 2014 год</p>
</div>
</footer> </footer>
</body> </body>
</html> </html>
+32 -33
View File
@@ -1,39 +1,38 @@
<div> <div class="main-block">
<div class="main"> <div>
<div class="block"> <!--&lt;!&ndash;<a href="tel://{{telephone}}"></a>&ndash;&gt;-->
<!--<a href="tel://{{telephone}}"></a>--> <span class="telephone">{{contact.telephone}}</span>
<span class="telephone">{{telephone}}</span>
<!--<ul class="submenu">--> <!--&lt;!&ndash;<ul class="submenu">&ndash;&gt;-->
<!--<li><a href="/team#director">директор</a><p>М. Г. Тимашева</p></li>--> <!--&lt;!&ndash;<li><a href="/team#director">директор</a><p>М. Г. Тимашева</p></li>&ndash;&gt;-->
<!--<li><a href="/enter">поступление</a></li>--> <!--&lt;!&ndash;<li><a href="/enter">поступление</a></li>&ndash;&gt;-->
<!--<li><a href="/contacts">контактная информация</a></li>--> <!--&lt;!&ndash;<li><a href="/contacts">контактная информация</a></li>&ndash;&gt;-->
<!--<li><a href="/awards">награды</a></li>--> <!--&lt;!&ndash;<li><a href="/awards">награды</a></li>&ndash;&gt;-->
<!--</ul>--> <!--&lt;!&ndash;</ul>&ndash;&gt;-->
</div>
<h1>«Шлиссельбургская детская художественная школа»</h1>
</div> </div>
<div class="tape-block"> <h1>Шлиссельбургская детская художественная&nbsp;школа</h1>
<div class="tape-block-content"> </div>
<div class="tape tape-tl"></div>
<div class="tape tape-tr"></div> <div class="tape-block">
<div class="tape tape-bl"></div> <div class="tape-block-content">
<div class="tape tape-br"></div> <div class="tape tape-tl"></div>
<div class="fotorama" <div class="tape tape-tr"></div>
data-transition="crossfade" <div class="tape tape-bl"></div>
data-autoplay="6000" <div class="tape tape-br"></div>
data-arrows="false"
data-width="100%" <div class="fotorama"
data-fit="cover" data-transition="crossfade"
data-loop="true"> data-autoplay="6000"
<img src="http://static.shlisselburg.org/art/graphics/sample2.jpg" alt=""> data-arrows="false"
<img src="http://static.shlisselburg.org/art/graphics/sample4.jpg" alt=""> data-width="100%"
<img src="http://static.shlisselburg.org/art/graphics/sample5.jpg" alt=""> data-fit="cover"
</div> data-loop="true">
<img src="http://static.shburg.org/art/img/cat1.jpg" alt="">
<img src="http://static.shburg.org/art/img/cat2.jpg" alt="">
<img src="http://static.shburg.org/art/img/cat3.jpg" alt="">
</div> </div>
</div> </div>
</div>
<timeline></timeline> <timeline></timeline>
</div>
+59 -47
View File
@@ -1,49 +1,61 @@
<div class="schedule" ng-controller="ScheduleController"> <div class="schedule" ng-controller="ScheduleController">
<p> Расписание {{sem}} семестра {{year}} года</p> <p> Расписание {{sem}} семестра {{year}} года</p>
<table> <div class="schedule-block">
<thead class=""> <table>
<tr> <thead class="">
<th class="group">Гр.</th> <tr>
<th ng-class="{current: isToday(0)}"> <th class="group">Гр.</th>
<p class="day">Понедельник</p> <th ng-class="{current: isToday(0)}">
<p class="date">{{weekDay(0)}}</p> <p class="day">Понедельник</p>
</th>
<th ng-class="{current: isToday(1)}">
<p class="day">Вторник</p>
<p class="date">{{weekDay(1)}}</p>
</th>
<th ng-class="{current: isToday(2)}">
<p class="day">Среда</p>
<p class="date">{{weekDay(2)}}</p>
</th>
<th ng-class="{current: isToday(3)}">
<p class="day">Четверг</p>
<p class="date">{{weekDay(3)}}</p>
</th>
<th ng-class="{current: isToday(4)}">
<p class="day">Пятница</p>
<p class="date">{{weekDay(4)}}</p>
</th>
<th ng-class="{current: isToday(5)}">
<p class="day">Суббота</p>
<p class="date">{{weekDay(5)}}</p>
</th>
</tr>
</thead>
<tbody class="">
<tr ng-repeat="group in schedule">
<td class="group">
<p class="name">{{group.name}}</p>
<p class="time">{{group.time}}</p>
</td>
<td ng-repeat="day in group.days track by $index" ng-class="{current: isToday($index)}"> <p class="date">{{weekDay(0)}}</p>
<p class="lesson"><a href="">{{day.lesson}}</a></p> </th>
<p class="teacher"><a href="">{{day.teacher}}</a></p> <th ng-class="{current: isToday(1)}">
<p class="time">{{day.time[0]}}</p> <p class="day">Вторник</p>
<p class="time">{{day.time[1]}}</p>
</td> <p class="date">{{weekDay(1)}}</p>
</tr> </th>
</tbody> <th ng-class="{current: isToday(2)}">
</table> <p class="day">Среда</p>
<p class="date">{{weekDay(2)}}</p>
</th>
<th ng-class="{current: isToday(3)}">
<p class="day">Четверг</p>
<p class="date">{{weekDay(3)}}</p>
</th>
<th ng-class="{current: isToday(4)}">
<p class="day">Пятница</p>
<p class="date">{{weekDay(4)}}</p>
</th>
<th ng-class="{current: isToday(5)}">
<p class="day">Суббота</p>
<p class="date">{{weekDay(5)}}</p>
</th>
</tr>
</thead>
<tbody class="">
<tr ng-repeat="group in schedule">
<td class="group">
<p class="name">{{group.name}}</p>
<p class="time">{{group.time}}</p>
</td>
<td ng-repeat="day in group.days track by $index" ng-class="{current: 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]}}</p>
<p class="time">{{day.time[1]}}</p>
</td>
</tr>
</tbody>
</table>
</div>
</div> </div>