Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into timetables
Browse files Browse the repository at this point in the history
  • Loading branch information
AsteriosP committed May 29, 2020
2 parents 3b49556 + 92288b6 commit 90f3d9d
Show file tree
Hide file tree
Showing 11 changed files with 224 additions and 0 deletions.
46 changes: 46 additions & 0 deletions _includes/communication-info.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<h2> <i class= "fa fa-map-marker-alt" style="color: orange; font-size: x-large;" aria-hidden="true"></i> Διεύθυνση</h2>
<h4> Κτίριο Γραμματειών (Κτίριο 3)<br>Πλατεία Τσιριγώτη 7 (πρώην Πλατεία Παλιού Ψυχιατρείου)<br>Κέρκυρα, 49100</h4>

<h2> <i class="fa fa-phone" style="color: orange; font-size: x-large;"></i> Στοιχεία Επικοινωνίας</h2>
<h4> +30 2661087760<br>+30 2661087761<br>+30 2661087763<br>+30 2661087766</h4>

<h2> <i class="far fa-envelope" style="color: orange; font-size: x-large;"></i> Ηλεκτρονική Διεύθυνση e-mail</h2>
<h4> cs@ionio.gr</h4>

<h2> <i class="far fa-map" style="color: orange; font-size: x-large;"></i> Ο Χάρτης της Πόλης</h2>


{% leaflet_map {"center": [39.620693, 19.914733],
"zoom" : 14,
"providerBasemap": "OpenStreetMap.Mapnik" }
%}
{% leaflet_marker { "latitude": 39.621100,
"longitude": 19.923863,
"popupContent" : "Ιόνιος Ακαδημία, NOC"}
%}
{% leaflet_marker { "latitude": 39.625709,
"longitude": 19.924304,
"popupContent" : "Ιόνιο Πανεπιστήμιο, Ανάκτορα, Γραφεία Καθηγητών"}
%}
{% leaflet_marker { "latitude": 39.623434,
"longitude": 19.915203,
"popupContent" : "Ιόνιο Πανεπιστήμιο, Τμήμα Ιστορίας, Αμφιθέατρα Διδασκαλίας"}
%}
{% leaflet_marker { "latitude": 39.620857,
"longitude": 19.915050,
"popupContent" : "Ιόνιο Πανεπιστήμιο, Τμήμα Πληροφορικής, Κτίριο Γαληνός"}
%}
{% leaflet_marker { "latitude": 39.620833,
"longitude": 19.914585,
"popupContent" : "Ιόνιο Πανεπιστήμιο, Τμήμα Πληροφορικής, Κτίριο Γραμματειών"}
%}
{% leaflet_marker { "latitude": 39.620603,
"longitude": 19.914945,
"popupContent" : "Ιόνιο Πανεπιστήμιο, Τμήμα Πληροφορικής, Κτίριο Αρεταίος"}
%}
{% leaflet_marker { "latitude": 39.620679,
"longitude": 19.915451,
"popupContent" : "Φοιτητική Λέσχη"}
%}
{}
{% endleaflet_map %}
6 changes: 6 additions & 0 deletions _includes/humanistic-courses.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% assign posts = site.courses %}
{% for post in posts %}
{% if post.type == "H" %}
{% include archive-single.html %}
{% endif %}
{% endfor %}
6 changes: 6 additions & 0 deletions _includes/information-systems-courses.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% assign posts = site.courses %}
{% for post in posts %}
{% if post.type == "I" %}
{% include archive-single.html %}
{% endif %}
{% endfor %}
6 changes: 6 additions & 0 deletions _includes/people-rank.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% assign people = site.people | sort: "rank" %}
{% for post in people %}
{% if post.rank %}
{% include archive-people.html %}
{% endif %}
{% endfor %}
9 changes: 9 additions & 0 deletions _includes/posts-by-year.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% capture written_year %}'None'{% endcapture %}
{% for post in site.posts %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% if year != written_year %}
<h2 id="{{ year | slugify }}" class="archive__subtitle">{{ year }}</h2>
{% capture written_year %}{{ year }}{% endcapture %}
{% endif %}
{% include archive-single.html %}
{% endfor %}
9 changes: 9 additions & 0 deletions _includes/projects-by-year.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% capture written_year %}'None'{% endcapture %}
{% for post in site.projects %}
{% capture year %}{{ post.date | date_to_string }}{% endcapture %}
{% if year != written_year %}
<h2 id="{{ year | slugify }}" class="archive__subtitle">Έναρξη: {{ year }}</h2>
{% capture written_year %}{{ year }}{% endcapture %}
{% endif %}
{% include archive-single.html %}
{% endfor %}
34 changes: 34 additions & 0 deletions _includes/propose-possible-searches.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<hr>
<div id="res"></div>



<script type="text/javascript" src="/assets/js/lunr/lunr-store.js"></script>
<script type="text/javascript">
var searched = String(window.location.pathname).replace('/','').toLowerCase();

var toShow_arr = [];

var toShow_num = 5;

for(var i=0;i<store.length;i++){
if (store[i].url.includes(searched) || store[i].excerpt.toLowerCase().includes(searched) || store[i].title.toLowerCase().includes(searched)){
toShow_arr.push(store[i]);
}
}

if(toShow_arr.length<1){
document.getElementById('res').innerHTML += "<input type='text' id='search' class='search-input' tabindex='-1' placeholder='{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}' /><div id='results' class='results'></div>";
}
else if(toShow_arr.length<5){
for(var i=0;i<toShow_arr.length;i++){
var newElement = '<a href="' + String(toShow_arr[i].url) + '">' + toShow_arr[i].title + '<\/a><p>' + toShow_arr[i].excerpt + '<\/p>';
document.getElementById('res').innerHTML += newElement;
}
} else {
for(var i=0;i<toShow_num;i++){
var newElement = '<a href="' + String(toShow_arr[i].url) + '">' + toShow_arr[i].title + '<\/a><p>' + toShow_arr[i].excerpt + '<\/p>';
document.getElementById('res').innerHTML += newElement;
}
}
</script>
9 changes: 9 additions & 0 deletions _includes/tags-in-faculty.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% include group-by-array collection=site.faculty field="tags" %}

{% for tag in group_names %}
{% assign posts = group_items[forloop.index0] %}
<h2 id="{{ tag | slugify }}" class="archive__subtitle">{{ tag }}</h2>
{% for post in posts %}
{% include archive-single.html %}
{% endfor %}
{% endfor %}
35 changes: 35 additions & 0 deletions _includes/video_background.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% assign video_src = page.header.video.source %}
{% assign video_list = page.header.video.playlist %}



<div class="backgroundvid"
<div class="page_hero">
<div id="overlay"></div>
<div class="wrapper" style="color: white;">

<h1 class="page__title" itemprop="headline" style="bottom:0;">
{% if paginator and site.paginate_show_page_num %}
{{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}
{% else %}
{{ page.title | default: site.title | markdownify | remove: "<p>" | remove: "</p>" }}
{% endif %}
</h1>
{% if page.header.show_overlay_excerpt != false and page.excerpt %}
<p class="page__lead">{{ page.excerpt | markdownify | remove: "<p>" | remove: "</p>" }}</p>
{% endif %}
{% if site.read_time and page.read_time %}
<p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p>
{% endif %}
{% if page.header.cta_url %}
<p><a href="{{ cta_path }}" class="btn btn--light-outline btn--large">{{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a></p>
{% endif %}



<iframe src="https://www.youtube.com/embed/{{video_src}}?autoplay=1&loop=1&mute=1&showinfo=0&controls=0&playlist={{video_list}}" allow='autoplay' frameborder="0" allowfullscreen></iframe>

</div>

</div>
</div>
22 changes: 22 additions & 0 deletions _layouts/video-layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: default
---

{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
{% include page__hero.html %}
{% elsif page.header.video.source and page.header.video.playlist %}
{% include video_background.html %}
{% endif %}

<div id="main" role="main">
<article class="splash" itemscope itemtype="http://schema.org/CreativeWork">
{% if page.title %}<meta itemprop="headline" content="{{ page.title | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date: "%B %d, %Y" }}">{% endif %}
{% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date: "%B %d, %Y" }}">{% endif %}

<section class="page__content" itemprop="text">
{{ content }}
</section>
</article>
</div>
42 changes: 42 additions & 0 deletions _sass/minimal-mistakes/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,48 @@
}
}

.backgroundvid{
position: relative;
height: 600px;
overflow: hidden;
max-width: 100%;

a {
color: #fff;
}
#overlay {
position: absolute; /* Sit on top of the page content */
display: block; /* Hidden by default */
width: 100%; /* Full width (cover the whole page) */
height: 100%; /* Full height (cover the whole page) */

background-color: rgba(0,0,0,0.5); /* Black background with opacity */
z-index: -1; /* Specify a stack order in case you're using a different order for other elements */
cursor: pointer; /* Add a pointer on hover */
}

.wrapper {
padding-top: 3em;
padding-left: 1em;
padding-right: 1em;
@include breakpoint($x-large) {
max-width: $x-large;
}
}

iframe,
object,
embed {
position: absolute;
top: -80px;
left: 0;
width: 100%;
height: 180%;
z-index: -2;
}

}

.page__hero-image {
width: 100%;
height: auto;
Expand Down

0 comments on commit 90f3d9d

Please sign in to comment.