frontend: improve main interface

This commit is contained in:
nemunaire 2016-01-23 12:29:19 +01:00
commit 32e8f931b9
8 changed files with 477 additions and 354 deletions

View file

@ -23,6 +23,12 @@
</head>
<body>
<noscript>
<div class="alert alert-danger">
<strong>Veuillez activer le JavaScript.</strong> Ce site requiert un navigateur interprêtant le JavaScript pour fonctionner. Veuillez l'activer ou en télécharger un supportant cette technologie.
</div>
</noscript>
<div class="navbar navbar-default">
<div class="container">
<div class="row">
@ -36,12 +42,12 @@
<img src="/img/epita.png" alt="Epita" class="center-block">
</a>
</div>
<div id="clock" class="col-sm-7">
<span id="hours">03</span>
<div id="clock" class="col-sm-7" ng-class="{expired: time.expired, end: time.end}">
<span id="hours">{{ time.hours | time }}</span>
<span class="point">:</span>
<span id="min">00</span>
<span id="min">{{ time.minutes | time }}</span>
<span class="point">:</span>
<span id="sec">00</span>
<span id="sec">{{ time.seconds | time }}</span>
</div>
</div>
</div>
@ -52,7 +58,7 @@
<div class="row">
<div class="col-sm-9 col-sm-offset-3">
<div class="page-header">
<h1 ng-show="(current_theme)">{{ themes[current_theme].name }} <small>{{ themes[current_theme].authors }}</small></h1>
<h1 ng-show="(current_theme)">{{ themes[current_theme].name }} <small class="authors" ng-show="themes[current_theme].authors">{{ themes[current_theme].authors }}</small></h1>
<h1 ng-show="(!current_theme && title)">{{ title }}</h1>
<h1 ng-show="(!current_theme && !title)">Challenge FIC 2016 <small>Laboratoire SRS, Epita</small></h1>
</div>
@ -74,7 +80,7 @@
</div>
<div class="list-group">
<a ng-repeat="(k,theme) in themes" ng-class="{active: k == current_theme}" class="list-group-item" href="/{{ k }}"><span class="badge">{{ theme.exercice_solved }}/{{ theme.exercice_count }}</span>{{ theme.name }}</a>
<a ng-repeat="(k,theme) in themes" ng-class="{active: k == current_theme}" class="list-group-item" href="/{{ k }}"><span class="badge"><span ng-show="(my.team_id)">{{ theme.exercice_solved }}/</span>{{ theme.exercice_count }}</span>{{ theme.name }}</a>
</div>
<a href="https://srs.epita.fr/">
@ -92,6 +98,7 @@
<script src="/js/bootstrap.min.js"></script>
<script src="/js/angular-resource.min.js"></script>
<script src="/js/angular-route.min.js"></script>
<script src="/js/angular-sanitize.min.js"></script>
<script src="/js/app.js"></script>
</body>
</html>