From 51a4798a0ec71711dc88cbed1e708ff60f57c26c Mon Sep 17 00:00:00 2001 From: Jeff Lucca Date: Tue, 12 Feb 2019 18:13:53 -0700 Subject: [PATCH 1/5] Add upcoming page --- _sections/upcoming.html | 147 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 _sections/upcoming.html diff --git a/_sections/upcoming.html b/_sections/upcoming.html new file mode 100644 index 0000000..9fd4c60 --- /dev/null +++ b/_sections/upcoming.html @@ -0,0 +1,147 @@ +--- +layout: base +title: Upcoming +description: Displays current and upcoming events, announcements +--- +{%raw %} +
+
+
+ + + + + + + + + + + + + + + + + + + +
TimeStartEndDescriptionLocation
{{schedule.timeleft(event.StartXML, event.EndXML)}}{{event.Start}}{{event.End}}{{event.Description}}{{event.Location}}
+
+
+
+
+ + + + + + + + + + + + + + + + + + + +
TimeStartEndDescriptionLocation
{{schedule.timeleft(event.StartXML, event.EndXML)}}{{event.Start}}{{event.End}}{{event.Description}}{{event.Location}}
+
+
+
+{%endraw %} + From ff00edd66660310295afadf89b386ab431e44e33 Mon Sep 17 00:00:00 2001 From: Jeff Lucca Date: Tue, 12 Feb 2019 18:16:23 -0700 Subject: [PATCH 2/5] testo --- _sections/upcoming.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_sections/upcoming.html b/_sections/upcoming.html index 9fd4c60..e3b2c01 100644 --- a/_sections/upcoming.html +++ b/_sections/upcoming.html @@ -62,9 +62,9 @@ el: '#app', data: { day1: [{"Location":"","End":"12:30 AM","Description":"Closing ceremony","Start":"12:00 AM" - ,"StartXML":"2019-01-01T00:00:00-0700", "EndXML":"2019-01-01T00:30:00-0700"},], + ,"StartXML":"2019-01-01T00:00:00-0700", "EndXML":"2019-01-01T00:30:00-0700"},], day2: [{"Location":"","End":"12:30 AM","Description":"Closing ceremony","Start":"12:00 AM" - ,"StartXML":"2019-01-01T00:00:00-0700", "EndXML":"2019-01-01T00:30:00-0700"},], + ,"StartXML":"2019-01-01T00:00:00-0700", "EndXML":"2019-01-01T00:30:00-0700"},], now: Math.trunc((new Date()).getTime() / 1000) }, mounted() { From aeabdd619d55d4317e1c37b4d7564e7cbfa86112 Mon Sep 17 00:00:00 2001 From: Jeff Lucca Date: Tue, 12 Feb 2019 18:24:55 -0700 Subject: [PATCH 3/5] set date back to normal --- _sections/upcoming.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_sections/upcoming.html b/_sections/upcoming.html index e3b2c01..24b7abe 100644 --- a/_sections/upcoming.html +++ b/_sections/upcoming.html @@ -129,8 +129,8 @@ schedule.day1 = data.day1; for (x in schedule.day1){ // Date Format: YYYY-MM-DD - schedule.day1[x].StartXML = formatDate(schedule.day1[x].Start, "2019-02-12"); - schedule.day1[x].EndXML = formatDate(schedule.day1[x].End, "2019-02-12"); + schedule.day1[x].StartXML = formatDate(schedule.day1[x].Start, "2019-02-24"); + schedule.day1[x].EndXML = formatDate(schedule.day1[x].End, "2019-02-24"); } schedule.day2 = data.day2; for (x in schedule.day2){ From 2560b4884b3a998e740a74f1fc2d2e7cc647f6ad Mon Sep 17 00:00:00 2001 From: Jeff Lucca Date: Wed, 13 Feb 2019 03:22:15 -0700 Subject: [PATCH 4/5] Redesign upcoming page --- _sections/upcomingold.html | 145 +++++++++++++++++++++++++++++++++++++ assets/css/upcoming.scss | 134 ++++++++++++++++++++++++++++++++++ 2 files changed, 279 insertions(+) create mode 100644 _sections/upcomingold.html create mode 100644 assets/css/upcoming.scss diff --git a/_sections/upcomingold.html b/_sections/upcomingold.html new file mode 100644 index 0000000..4465a84 --- /dev/null +++ b/_sections/upcomingold.html @@ -0,0 +1,145 @@ +--- +layout: base +title: Upcoming +description: Displays current and upcoming events, announcements +--- +{%raw %} +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
StartEndEventLocation
{{schedule.timeleft(event.StartXML, event.EndXML)}}{{event.End}}{{event.Description}}{{event.Location}}
{{schedule.timeleft(event.StartXML, event.EndXML)}}{{event.End}}{{event.Description}}{{event.Location}}
+ + + + + + + + + + + + + + + +
{{schedule.timeleft(event.StartXML, event.EndXML)}}{{event.End}}{{event.Description}}{{event.Location}}
{{schedule.timeleft(event.StartXML, event.EndXML)}}{{event.End}}{{event.Description}}{{event.Location}}
+
+
+
+{%endraw %} + diff --git a/assets/css/upcoming.scss b/assets/css/upcoming.scss new file mode 100644 index 0000000..cbf1e44 --- /dev/null +++ b/assets/css/upcoming.scss @@ -0,0 +1,134 @@ +--- +--- +@charset "utf-8"; +@import "../_sass/mixins"; + +$main-color: #fff; +$footer-text: #fff; +$accent-color: {{site.color}}; +$secondary-color: {{site.secondary_color}}; + +/* The actual timeline (the vertical ruler) */ +.timeline { + position: relative; + max-width: 1200px; + height: 100%; + margin: 0 auto; + + /* The actual timeline (the vertical ruler) */ + &::after { + content: ''; + position: absolute; + width: 6px; + background-color: $accent-color; + top: 0; + bottom: 0; + left: 0%; + margin-left: -3px; + @include box-shadow(inset 0px 11px 8px -5px #fff, inset 0px -11px 8px -5px #fff); + } +} + +/* Container around content */ +.item { + padding: 10px 30px; + position: relative; + background-color: inherit; + /* Add arrows pointing left */ + &::before { + content: " "; + height: 0; + position: absolute; + top: 22px; + width: 0; + z-index: 1; + left: 20px; + border: medium solid $accent-color; + border-width: 10px 10px 10px 0; + border-color: transparent $accent-color transparent transparent; + } +} + +/* The actual content */ +.inner-item { + padding: 10px 20px; + position: relative; + border: medium solid $accent-color; + @include box-shadow(10px 10px 18px -12px rgba(0,0,0,0.75)); + display: flex; + + .hours { + display: flex; + flex-direction: column; + } + + + + + + .start { + color: $secondary-color; + padding-top:5px; + } + + .end { + padding-right:20px; + } +} + +.bigcard { + h4, h3 { + margin:0; + line-height: 1em; + white-space: pre-line; + padding-right:20px; + } + + h4 { + white-space: nowrap; + text-align: right; + } + + h3 { + padding-top: 20px; + } +} + +.smallcard{ + h5, h4 { + margin:0; + line-height: 1em; + white-space: pre-line; + padding-right:20px; + } + + h5 { + white-space: nowrap; + text-align: right; + } + + h4 { + padding-top: 12px; + } +} + +/* Media queries - Responsive timeline on screens less than 600px wide */ +@media screen and (max-width: 600px) { +/* Place the timelime to the left */ + .timeline::after { + left: 0px; + } + + .inner-item { + flex-direction: column; + + .hours { + flex-direction: row; + padding-bottom: 10px; + } + + p { + text-align: left; + } + } +} From 73e175b11cecbd4bc7006d97c62dceefb88fab4f Mon Sep 17 00:00:00 2001 From: Jeff Lucca Date: Wed, 13 Feb 2019 03:24:09 -0700 Subject: [PATCH 5/5] commit fix --- _sections/_upcomingold.html | 145 ++++++++++++++++++++++++++++++++++++ _sections/upcoming.html | 72 +++++------------- 2 files changed, 164 insertions(+), 53 deletions(-) create mode 100644 _sections/_upcomingold.html diff --git a/_sections/_upcomingold.html b/_sections/_upcomingold.html new file mode 100644 index 0000000..4465a84 --- /dev/null +++ b/_sections/_upcomingold.html @@ -0,0 +1,145 @@ +--- +layout: base +title: Upcoming +description: Displays current and upcoming events, announcements +--- +{%raw %} +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
StartEndEventLocation
{{schedule.timeleft(event.StartXML, event.EndXML)}}{{event.End}}{{event.Description}}{{event.Location}}
{{schedule.timeleft(event.StartXML, event.EndXML)}}{{event.End}}{{event.Description}}{{event.Location}}
+ + + + + + + + + + + + + + + +
{{schedule.timeleft(event.StartXML, event.EndXML)}}{{event.End}}{{event.Description}}{{event.Location}}
{{schedule.timeleft(event.StartXML, event.EndXML)}}{{event.End}}{{event.Description}}{{event.Location}}
+
+
+
+{%endraw %} + diff --git a/_sections/upcoming.html b/_sections/upcoming.html index 24b7abe..398a26d 100644 --- a/_sections/upcoming.html +++ b/_sections/upcoming.html @@ -3,60 +3,26 @@ title: Upcoming description: Displays current and upcoming events, announcements --- + {%raw %} -
-
-
- - - - - - - - - - - - - - - - - - - -
TimeStartEndDescriptionLocation
{{schedule.timeleft(event.StartXML, event.EndXML)}}{{event.Start}}{{event.End}}{{event.Description}}{{event.Location}}
-
-
-
-
- - - - - - - - - - - - - - - - - - - -
TimeStartEndDescriptionLocation
{{schedule.timeleft(event.StartXML, event.EndXML)}}{{event.Start}}{{event.End}}{{event.Description}}{{event.Location}}
-
-
+
+
+
+
+

{{schedule.timeleft(event.StartXML, event.EndXML)}}

to {{ event.End }}

+

{{ event.Description }} at {{event.Location}}

+
+
+
+
+
{{schedule.timeleft(event.StartXML, event.EndXML)}}
to {{ event.End }}
+

{{ event.Description }} at {{event.Location}}

+
+
+
{%endraw %} +