Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 0dbad50

Browse files
committed
add margin and update less
1 parent a61e9c3 commit 0dbad50

File tree

6 files changed

+63
-40
lines changed

6 files changed

+63
-40
lines changed

2015/index.html

+11-5
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,23 @@
3838
<body>
3939
<div class="wrapper">
4040
<header>
41-
<h1><span>Tech</span>Week</h1>
41+
<h1 class="title"><a href="/"><span class="title__colour">Tech</span>Week</a></h1>
4242
<p>Dublin City University 9<sup>th</sup> - 13<sup>th</sup> March 2015</p>
43-
<ul><li><a href="../2016">Feb 2016</a></li><li><a href="..">Oct 2016</a></li></ul>
43+
<ul class="menu">
44+
<li class="menu__item">
45+
<a href="../2016">Feb 2016</a>
46+
</li>
47+
<li>
48+
<a href="..">Oct 2016</a>
49+
</li>
50+
</ul>
4451
</header>
45-
<!-- 10 minutes before start of the event the livestream will come on -->
46-
<div class="container" id="playlist">
52+
<div class="container playlist">
4753
<iframe id="live" src="https://www.youtube.com/embed/videoseries?list=PLPaLJSHTDMFgYNnnEOjuvdm6WqOFTSQ9z" width="100%" height="400" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" webkitallowfullscreen="" allowfullscreen=""></iframe>
4854
</div>
4955
<!-- All events are loaded into this element -->
5056
<div class="card-container">
51-
<ul class="collapsible popout events" data-collapsible="accordion"></ul>
57+
<ul class="collapsible popout card-container__events" data-collapsible="accordion"></ul>
5258
</div>
5359
</div>
5460
<!-- The script is loaded and ran -->

2016/index.html

+11-5
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,23 @@
3838
<body>
3939
<div class="wrapper">
4040
<header>
41-
<h1><span>Tech</span>Week</h1>
41+
<h1 class="title"><a href="/"><span class="title__colour">Tech</span>Week</a></h1>
4242
<p>Dublin City University 15<sup>th</sup> - 19<sup>th</sup> Febuary 2015</p>
43-
<ul><li><a href="../2015">2015</a></li><li><a href="..">Oct 2016</a></li></ul>
43+
<ul class="menu">
44+
<li class="menu__item">
45+
<a href="../2015">2015</a>
46+
</li>
47+
<li class="menu__item">
48+
<a href="..">Oct 2016</a>
49+
</li>
50+
</ul>
4451
</header>
45-
<!-- 10 minutes before start of the event the livestream will come on -->
46-
<div class="container" id="playlist">
52+
<div class="container playlist">
4753
<iframe id="live" src="https://www.youtube.com/embed/videoseries?list=PLPaLJSHTDMFhbDmyUeik6IHXmzVtWQQxu" width="100%" height="400" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" webkitallowfullscreen="" allowfullscreen=""></iframe>
4854
</div>
4955
<!-- All events are loaded into this element -->
5056
<div class="card-container">
51-
<ul class="collapsible popout events" data-collapsible="accordion"></ul>
57+
<ul class="collapsible popout card-container__events" data-collapsible="accordion"></ul>
5258
</div>
5359
</div>
5460
<!-- The script is loaded and ran -->

css/main.less

+18-14
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
1-
@import url(http://fonts.googleapis.com/css?family=Roboto:100,300,400);
1+
@import url(//fonts.googleapis.com/css?family=Roboto:100,300,400);
22

33
@card-width: 624px;
44
@large-phone: 560px;
55

66
header {
77
text-align: center;
88

9-
h1 {
9+
.title {
1010
margin: 0.5em 0;
1111
margin-bottom: 0.3em;
1212
font-size: 15vmin;
1313
font-weight: 100;
1414

15-
span {
15+
&__colour {
1616
color: red;
1717
font-weight: 300;
1818
}
19+
20+
a {
21+
color: black;
22+
}
1923
}
2024

21-
ul {
25+
.menu {
2226
list-style-type: none;
23-
margin: 0;
27+
margin: 8px 0;
2428
padding: 0;
2529
overflow: hidden;
2630
display: flex;
2731
flex-wrap: wrap;
2832
justify-content: center;
2933

30-
li {
34+
&__item {
3135
float: left;
3236
padding: 0 8px;
3337
}
@@ -53,7 +57,7 @@ video {
5357

5458
.event-card {
5559
display: flex;
56-
.time {
60+
&__time {
5761
float: left;
5862
display: inline-block;
5963
font-size: 1.5vh;
@@ -62,12 +66,12 @@ video {
6266
max-width: 5em;
6367
}
6468

65-
.event {
69+
&__event {
6670
display: inline-block;
6771
width: 80%;
6872
}
6973

70-
.place {
74+
&__place {
7175
display: inline-block;
7276
color: #000000;
7377
float: right;
@@ -90,11 +94,11 @@ ul {
9094
padding: 1em,
9195
}
9296

93-
#countdown {
97+
.countdown {
9498
display: none;
9599
text-align: center;
96100

97-
.counter {
101+
&__counter {
98102
display: flex;
99103
flex-wrap: wrap;
100104
flex-direction: column;
@@ -107,11 +111,11 @@ ul {
107111
}
108112
}
109113

110-
#livestream {
114+
.livestream {
111115
display: none;
112116
}
113117

114-
#playlist {
118+
.playlist {
115119
display: block;
116120
}
117121

@@ -142,7 +146,7 @@ ul {
142146
align-items: center;
143147
justify-content: center;
144148

145-
.events {
149+
&__events {
146150
width: 80%;
147151
@media screen and (max-width: @large-phone) {
148152
width: 100%;

gulpfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ gulp.task('compress', function() {
2424

2525
gulp.task('minify-css', function() {
2626
return gulp.src('css/*.css')
27-
.pipe(cleanCSS({compatibility: 'ie8'}))
27+
.pipe(cleanCSS({compatibility: 'ie8', processImport: false}))
2828
.pipe(gulp.dest('dist/css'));
2929
});
3030

3131
gulp.task('less', function() {
3232
return gulp.src('css/*.less')
3333
.pipe(less())
34-
.pipe(cleanCSS({compatibility: 'ie8'}))
34+
.pipe(cleanCSS({compatibility: 'ie8', processImport: false}))
3535
.pipe(rename({suffix: '.min'}))
3636
.pipe(gulp.dest('dist/css'));
3737
});

index.html

+13-6
Original file line numberDiff line numberDiff line change
@@ -38,29 +38,36 @@
3838
<body>
3939
<div class="wrapper">
4040
<header>
41-
<h1><span>Tech</span>Week</h1>
41+
<h1 class="title"><a href="/"><span class="title__colour">Tech</span>Week</a></h1>
4242
<p>Dublin City University 24<sup>th</sup> - 28<sup>th</sup> October 2016</p>
43-
<ul><li><a href="./2016">Feb 2016</a></li><li><a href="./2015">2015</a></li></ul>
43+
<ul class="menu">
44+
<li class="menu__item">
45+
<a href="./2016">Feb 2016</a>
46+
</li>
47+
<li>
48+
<a href="./2015">2015</a>
49+
</li>
50+
</ul>
4451
</header>
4552
<!-- Countdown is show up to 10 minutes before the event -->
46-
<div id="countdown">
53+
<div class="countdown">
4754
TechWeek Starts in:
48-
<div class="counter">
55+
<div class="countdown__counter">
4956
<span>&nbsp;</span>
5057
<span>&nbsp;</span>
5158
<span>&nbsp;</span>
5259
<span>&nbsp;</span>
5360
</div>
5461
</div>
5562
<!-- 10 minutes before start of the event the livestream will come on -->
56-
<div class="container" id="livestream">
63+
<div class="container livestream">
5764
<video id="live" controls poster="https://www.redbrick.dcu.ie/includes/images/logo.png">
5865
<source src="">
5966
</video>
6067
</div>
6168
<!-- All events are loaded into this element -->
6269
<div class="card-container">
63-
<ul class="collapsible popout events" data-collapsible="accordion"></ul>
70+
<ul class="collapsible popout card-container__events" data-collapsible="accordion"></ul>
6471
</div>
6572
</div>
6673
<!-- The script is loaded and ran -->

js/main.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ setInterval(function(){
4747
// Check is current time + 10 minutes smaller than the starting time
4848
if(now+1000*60*10 < start){
4949
// If it is, show the box and start counting down
50-
$('#countdown').show(400);
50+
$('.countdown').show(400);
5151
} else {
5252
liveActive = true;
5353
// Otherwise, show the livestream and abjust the height of it to be in
@@ -70,14 +70,14 @@ setInterval(function(){
7070
str += (mins > 0) ? '<span>' + mins + ' Minutes</span>' : '';
7171
str += '<span>' + secs + ' Seconds</span>';
7272

73-
$('#countdown .counter').html(str);
73+
$('.countdown .countdown__counter').html(str);
7474
}, 1000); // Set the time of the interval, in ms, so 1000 (1s)
7575

7676
// Show the livefeed
7777
function showLive(){
7878
if(!liveShown){
79-
$('#countdown').hide(400, function(){
80-
$('#livestream').show(0, function(){
79+
$('.countdown').hide(400, function(){
80+
$('.livestream').show(0, function(){
8181
$('video').height(0);
8282
$('video').animate({height: $('video').width() * (9 / 16), display: 'block'}, 1000);
8383
});
@@ -88,7 +88,7 @@ function showLive(){
8888

8989
// Load the events from the file and add them to the page
9090
function loadEvents(days){
91-
var ce = $('.events');
91+
var ce = $('.card-container__events');
9292
for(var i = 0; i < days.length; i++){
9393
var day = days[i];
9494
var ds = day.day+'-event';
@@ -101,9 +101,9 @@ function loadEvents(days){
101101
$('#'+ul).append(
102102
'<li>'+
103103
'<div class=\'collapsible-header event-card\'>' +
104-
'<div class=\'time\'>'+ event.time + '</div>' +
105-
'<div class=\'event\'>' + event.name + '</div>' +
106-
'<div class=\'place\'>' + event.place.id + '</div>' +
104+
'<div class=\'event-card__time\'>'+ event.time + '</div>' +
105+
'<div class=\'event-card__event\'>' + event.name + '</div>' +
106+
'<div class=\'event-card__place\'>' + event.place.id + '</div>' +
107107
'</div>' +
108108
'<div class=\'collapsible-body\'>' +
109109
'<p>' + by +'</by>'+

0 commit comments

Comments
 (0)