Commit 480e513a authored by Jan-Philipp Stauffert's avatar Jan-Philipp Stauffert
Browse files

Initial commit

parents
*.gem
.bundle
.jekyll-cache
.sass-cache
_site
Gemfile.lock
node_modules
assets/bundle.js
_sass/slick-carousel
\ No newline at end of file
{
"beautify.ignore": ["assets/css/*.scss"]
}
\ No newline at end of file
# frozen_string_literal: true
source "https://rubygems.org"
gemspec
The MIT License (MIT)
Copyright (c) 2019 Jan-Philipp Stauffert
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
# hci-theme
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
TODO: Delete this and the text above, and describe your gem
## Installation
Add this line to your Jekyll site's `Gemfile`:
```ruby
gem "hci-theme"
```
And add this line to your Jekyll site's `_config.yml`:
```yaml
theme: hci-theme
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install hci-theme
## Usage
TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## Development
To set up your environment to develop this theme, run `bundle install`.
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
To add a custom directory to your theme-gem, please edit the regexp in `hci-theme.gemspec` accordingly.
## License
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
sass:
load_paths:
- _sass
{% if include.external_url %}
{% assign url = include.external_url %}
{% elsif include.url %}
{% assign url = include.url | prepend: site.baseurl %}
{% endif %}
<div class="block {{ include.class }}">
{% if include.image %}
{% if include.imagedimension %}
{% assign dimension = include.imagedimension %}
{% else %}
{% assign dimension = "wide" %}
{% endif %}
{% if url %}
{% if url=="none" %}
{% include image src=include.image dimension=dimension sizes="(min-width: 1180px) 320px, (min-width: 980px) 260px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style=include.imagestyle %}
{% else %}
<a href="{{ url }}">
{% include image src=include.image dimension=dimension sizes="(min-width: 1180px) 500px, (min-width: 980px) 410px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style=include.imagestyle %}
</a>
{% endif %}
{% else %}
{% include image src=include.image dimension=dimension sizes="(min-width: 1180px) 320px, (min-width: 980px) 260px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style=include.imagestyle %}
{% endif %}
{% endif %}
{% if include.title %}
{% if url %}
{% if url=="none" %}
<div class="title">
{{ include.title }}
</div>
{% else %}
<a href="{{ url }}" class="title">
{{ include.title }}
</a>
{% endif %}
{% else %}
<div class="title">
{{ include.title }}
</div>
{% endif %}
{% endif %}
{% if include.teaser %}
<div class="text">
{{ include.teaser }}
</div>
{% endif %}
<div class="footer">
<div class="text">{% if site.language == "DE" %}{{ include.date | date: "%d.%m.%Y" }}{% else %}{{ include.meta }}{% endif %}</div>
{% if include.external_url %}
<a class="link" href="{{ include.external_url }}">
<i class="icon-right-open"></i>{% if site.language == "DE" %}Zur Webseite{% else %}Go to website{% endif %}
</a>
{% elsif url=="none" %}
{% elsif url %}
<a class="link" href="{{ url }}">
<i class="icon-right-open"></i>{% if site.language == "DE" %}Mehr{% else %}More{% endif %}
</a>
{% endif %}
</div>
</div>
<div class="faq filterInput-targetElement">
<div class="question">
{{ include.question }}
</div>
<div class="answer">
{{ include.answer }}
</div>
<div class="footer">
<div class="tags">
{% for tag in include.tags %}
<div>
{{tag}}
</div>
{% endfor %}
</div>
<div class="date">
Stand:
{{ include.date | date: "%-d" }}.
{% assign m = include.date | date: "%m" %}
{% case m %}
{% when '01' %}Januar
{% when '02' %}Februar
{% when '03' %}März
{% when '04' %}April
{% when '05' %}Mai
{% when '06' %}Juni
{% when '07' %}Juli
{% when '08' %}August
{% when '09' %}September
{% when '10' %}Oktober
{% when '11' %}November
{% when '12' %}Dezember
{% endcase %}
{{ include.date | date: "%Y" }}
</div>
</div>
</div>
<div class="page-footer">
<div class="page-footer-top">
<div class="column-layout">
<div>
<div class="title">
Follow our Social Media Channels
</div>
<div style="
display: flex;
align-items: center;
justify-content: space-between;
">
<a href="https://www.youtube.com/user/hciwuerzburg"><img src = "{{ site.baseurl }}/youtube.svg" style="max-width: 61px; margin: 7px 7px 0 1px; opacity: 0.8;"/></a>
<a href="https://www.facebook.com/hciwuerzburg">{% include image src="general/facebook.png" sizes="(min-width: 1180px) 100px, (min-width: 980px) 100px, (min-width: 740px) 100px, 100px" style="max-width:97px; margin: 7px 7px 0 1px; opacity: 0.8;" %}</a>
<a href="https://twitter.com/hci_wurzburg">{% include image src="general/twitter.png" sizes="(min-width: 1180px) 100px, (min-width: 980px) 100px, (min-width: 740px) 100px, 100px" style="max-width: 54px; margin: 7px 60px 0 -8px; opacity: 0.8;" %}</a>
</div>
</div>
<div>
<div class="title">
<a href="{{ site.baseurl }}/contact/">Contact</a>
</div>
Lehrstuhl für<br/>
Mensch-Computer-Interaktion<br/>
Universität Würzburg<br/>
Am Hubland<br/>
97074 Würzburg<br/>
<br/>
Phone: +49 931 31-88244<br/>
Fax: +49 931 31-882440
</div>
<div>
<div class="title">
How to Find Us
</div>
<a href="https://wueaddress.uni-wuerzburg.de/search/map/3511">
{% include image src="general/map.jpg" dimension="wide" %}
</a>
</div>
</div>
</div>
<div class="page-footer-bottom">
<div class="column-layout">
<div><a href="https://www.uni-wuerzburg.de">University Main Page</a></div>
<div><a href="http://www.uni-wuerzburg.de/startseite/">About the University</a></div>
<div><a href="https://www.uni-wuerzburg.de/sonstiges/kontakt/">University Contact</a></div>
</div>
</div>
</div>
\ No newline at end of file
<div class="image {{ include.dimension }} {{ include.class }}" style="{{ include.style }}">
<div>
{% if include.sizes %}
{% assign sizes = include.sizes %}
{% else %}
{% assign sizes = "(min-width: 1180px) 1024px, (min-width: 980px) 844px, (min-width: 740px) 604, 100vw" %}
{% endif %}
{% assign srcset = "" | split: "|" %}
{% for width in site.widths %}
{% capture src %}{{ site.baseurl }}/bundled/images/{{ width }}/{{ include.src }} {{ width }}w{% endcapture %}
{% assign srcset = srcset | push: src %}
{% endfor %}
{% assign srcset = srcset | join: ", " %}
{% if include.caption %}
<figure>
<img
src = "{{ site.baseurl }}/bundled/images/{{ site.widths.first }}/{{ include.src }}"
alt = ""
sizes = "{{ sizes }}"
srcset = "{{ srcset }}"
/>
<figcaption>{{ include.caption }}</figcaption>
</figure>
{% else %}
<img
src = "{{ site.baseurl }}/bundled/images/{{ site.widths.first }}/{{ include.src }}"
alt = ""
sizes = "{{ sizes }}"
srcset = "{{ srcset }}"
/>
{% endif %}
</div>
</div>
\ No newline at end of file
{% if include.width %}
{% assign width = include.width %}
{% else %}
{% assign width = 640 %}
{% endif %}
{% if include.height %}
{% assign height = include.height %}
{% else %}
{% assign height = 360 %}
{% endif %}
<iframe width="{{ width }}" height="{{ height }}" src="https://www.youtube.com/embed/{{ include.id }}" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
\ No newline at end of file
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
{% if page.title %}
{{ page.title | append: " | " | append: site.title | escape }}
{% else %}
{{ site.title | escape }}
{% endif %}
</title>
<meta name="description" content="
{% if page.excerpt %}
{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}
{% endif %}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700">
<link rel="stylesheet" href="{{ "/assets/css/hci-style.css" | prepend: site.baseurl }}">
{% if site.favicon %}
<link rel="icon" href="{{ site.favicon }}">
{% endif %}
<!-- Define Facebook parameters -->
{% if page.title %}
<meta property="og:title" content="{{ page.title | replace: '"', "'" }}">
{% endif %}
{% if page.image %}
<meta property="og:image" content="{{ site.url }}/bundled/images/{{ site.widths | first }}/{{ page.image }}">
{% endif %}
{% if page.teaser %}
<meta property="og:description" content="{{ page.teaser | replace: '"', "'" }}">
{% endif %}
</head>
<body>
<header role="banner" class="page-header">
<div class="page-header__logo">
<a class="page-header__logo-link" title="Zur Startseite" href="http://www.uni-wuerzburg.de/startseite/">
{% include image src="general/uni-wuerzburg-logo.svg" class="page-header__logo-full" sizes="170px" %}
</a>
{% include image src="general/uni-wuerzburg-header-background.png" class="page-header__logo-background" sizes="442px" %}
</div>
</header>
<div class="page-hero">
<div id="react-placeholder-navigation"></div>
{% if page.slides %}
{% assign slides = page.slides %}
{% else %}
{% assign slides = site.slides %}
{% endif %}
{% if slides.size > 1 %}
<div class="slick-element">
{% for slide in slides %}
{% if forloop.index == 1 %}
{% assign class = "" %}
{% else %}
{% assign class = "hide" %}
{% endif %}
{% include image src=slide dimension="panorama" class=class sizes="(min-width: 1180px) 1200, (min-width: 980px) 1020px, (min-width: 740px) 720px, 100vw" %}
{% endfor %}
</div>
{% elsif slides.size == 1 %}
<div class="single-slide">
{% include image src=slides.first dimension="panorama" %}
</div>
{% endif %}
</div>
<div class="header-title">
<a href="{{ site.baseurl }}/">
{{ site.title }}
</a>
</div>
<div class="content">
<div class="content-breadcrumb" id="react-placeholder-breadcrumb" url="{{ site.baseurl }}{{ page.url }}"></div>
{{ content }}
</div>
{% include footer %}
<div class="u-centerContent u-margin-bottom-10 u-color-disabled">
<a href="https://www.hci.uni-wuerzburg.de/legal/" class="u-color-disabled">Legal Information</a>
</div>
<script type="text/javascript" src="{{ site.baseurl }}/assets/bundle.js" charset="utf-8"></script>
</body>
</html>
\ No newline at end of file
---
layout: text
---
# {{ page.title }}
{% if site.language == "DE" %}
{{ page.date | date: "%-d" }}.
{% assign m = page.date | date: "%m" %}
{%- case m -%}
{% when '01' %}Januar
{% when '02' %}Februar
{% when '03' %}März
{% when '04' %}April
{% when '05' %}Mai
{% when '06' %}Juni
{% when '07' %}Juli
{% when '08' %}August
{% when '09' %}September
{% when '10' %}Oktober
{% when '11' %}November
{% when '12' %}Dezember
{%- endcase -%}
{{ page.date | date: "%Y" }}
{% else %}{{ page.date | date_to_string }}{% endif %}
{% unless page.blank == true %}{% include image src=page.image dimension="wide" %}{% endunless %}
{{ content }}
---
layout: base
---
<div class="content-wrapper">
{% if page.markdownify == true %}
{{ content | markdownify }}
{% else %}
{{ content }}
{% endif %}
</div>
\ No newline at end of file
html, body, * {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: none;
color: $color-text-primary;
font-size: 13px;
font-family: "Roboto", sans-serif;
//line-height: 1.3em;
margin: 0;
padding: 0;
box-sizing: border-box;
}
ol, ul {
padding-left: 2em;
padding-top: 0.5em;
padding-bottom: 0.5em;
}
:focus {
outline: none;
}
a {
cursor: pointer;
color: $color-uw-blue;
text-decoration: none;
outline: 0;
&:hover {
text-decoration: underline;
}
}
i {
font-size: 11px;
opacity: 0.7;
}
hr {
border-bottom: 1px solid $color-divider;
border-top: none;
border-left: none;
border-right: none;
margin: 0 0 10px 0;
}
input[type="radio"] {
margin-right: $offset-sm;
cursor: pointer;
}
.table-responsive-wrapper {
overflow-x:auto;
}
figure > figcaption {
margin-bottom: 9px;
}
@mixin adaptive-width {
width: 90%;
@media (min-width: 740px) {
width: 720px;
}
@media (min-width: 980px) {
width: 960px;
}
@media (min-width: 1180px) {
width: 1140px;
}
margin: 0 auto;
}
@mixin adaptive-margin-left {
margin-left: $offset-md;
@media (min-width: 740px) {
margin-left: 43px;
}
}
@mixin adaptive-padding-left {
padding-left: $offset-md;
@media (min-width: 740px) {
padding-left: 43px;
}
}
@mixin adaptive-margin-right {
margin-right: $offset-md;
@media (min-width: 740px) {
margin-right: 43px;
}
}
@mixin adaptive-padding-right {
padding-right: $offset-md;
@media (min-width: 740px) {
padding-right: 43px;
}
}
@mixin border-top {
border-top: 2px solid $color-uw-blue;
}
.image {
position: relative;
>div>img {
width: 100%;
}
&.wide, &.panorama, &.portrait {
overflow: hidden;
&:after {
display: block;
content: '';
}
>div {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
}
&.wide, &.panorama {
>div>img {
width: 100%;
}
}
&.portrait {
>div>img {
height: 100%;
width: auto;
}
}
&.wide:after {
padding-top: 42.86%;
}
&.panorama:after {
padding-top: 23.42%;
}
&.portrait:after {
padding-top: 133%;
}
}
}
.page-header {
@include adaptive-width;
margin-top: $offset-md;
margin-bottom: $offset-md;
position: relative;
display: block;
height: 75px;
.page-header__logo {
//background: url({{ site.url }}/assets/images/logos/uni-wuerzburg-header-background.png) no-repeat 200px 0 #d1d4d4;
background: #d1d4d4;
height: 100%;
position: relative;
overflow: hidden;
.page-header__logo-link img {
width: 170px;
height: 75px;
}
.page-header__logo-background {
position: absolute;
top: 0;
left: 200px;
height: 100%;
>div, >div>img {
height: 100%;
width: auto;
}
}
}
}