diff --git a/_data/navigation.yml b/_data/navigation.yml index c4adf10c7e731d5d7af9aaf3e066c9441bee0fe3..3100dd831e017bef5a6b4a5b991cd951035d7d70 100644 --- a/_data/navigation.yml +++ b/_data/navigation.yml @@ -16,17 +16,21 @@ header: url: / fontawesome_class: "fas fa-home" - - title: Blog + - title: Services + url: "/" + fontawesome_class: "fas fa-list" + + - title: News url: blog/ - fontawesome_class: "fas fa-blog" + fontawesome_class: "fas fa-rss" - - title: Events - url: events.html - fontawesome_class: "fas fa-calendar-week" + - title: International + url: "/" + fontawesome_class: "fas fa-globe-europe" - - title: Team - url: team.html - fontawesome_class: "fas fa-users" + - title: Jobs + url: "/" + fontawesome_class: "fas fa-user" footer: - title: FAQ diff --git a/_includes/frontpage/title-content.html b/_includes/frontpage/title-content.html new file mode 100644 index 0000000000000000000000000000000000000000..3d349fe3799ee583b61a62517d7a85a3e5729f48 --- /dev/null +++ b/_includes/frontpage/title-content.html @@ -0,0 +1,21 @@ +<div> + <h1>HIFIS Mission</h1> + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore + magna aliqua.</p> +</div> +<div class="services-box"> + <div class="services-title-buttons"> + <a href="{{ '/' | relative_url }}" class="btn btn-light btn-lg text-dark"> + <i class="fas fa-cloud"></i> Helmholtz Cloud + </a> + <a href="https://software.hifis.net" class="btn btn-light btn-lg text-dark"> + <i class="fas fa-laptop-code"></i> Helmholtz Software + </a> + <a href="{{ '/' | relative_url }}" class="btn btn-light btn-lg text-dark"> + <i class="fas fa-question"></i> Support + </a> + <a href="{{ '/' | relative_url }}" class="btn btn-light btn-lg text-dark"> + <i class="fas fa-location-arrow"></i> Contact + </a> + </div> +</div> diff --git a/_includes/header.html b/_includes/header.html index 06d466b8a2fabfdb8dcaf3bc1aa4e80d021ac854..442a80cf14da6872e3b001ab2f22e14a137a9f09 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -34,7 +34,7 @@ See also: <img id="header-logo" class="logo" - src="{{ '/assets/img/HIFIS_SWS_Logo_cropped.svg' | relative_url }}" + src="{{ '/assets/img/HIFIS_Logo_cropped.svg' | relative_url }}" alt="HIFIS Logo" > </a> diff --git a/_layouts/frontpage.html b/_layouts/frontpage.html index 6fae0916e9d1e85dd0eca341194e3fe39f2c9f9c..3a40ebe516b7611afad3204159704b2cc395fa17 100644 --- a/_layouts/frontpage.html +++ b/_layouts/frontpage.html @@ -6,16 +6,20 @@ <main> - {% include title_image.html %} + {% capture title-content %} + {% include frontpage/title-content.html %} + {% endcapture %} + + {%- include title_image.html content=title-content -%} <div class="frontpage-jumbotron"> <section> {% if page.notification.description and page.notification.title %} - {% include frontpage/notification.html + {% include frontpage/notification.html title=page.notification.title description=page.notification.description %} {% endif %} - <h1><i class="fas fa-blog" aria-hidden="true"></i> Latest posts</h1> + <h1>News</h1> <div class="flex-content-wrapper"> {% for post in site.posts limit:3 %} {% include frontpage/post-card.html post = post %} @@ -25,18 +29,29 @@ </section> </div> <div class="frontpage-mission-jumbotron"> - <section> - <h1>The Mission</h1> - <p class="lead">HIFIS Software Services' mission is to empower scientists of any domain to implement - and - to perpetuate modern scientific software development principles in order to - make research software engineering more sustainable.</p> - <p> - <a href="{{ 'faq' | relative_url }}" class="btn btn-outline-light"> - <i class="fas fa-question-circle" aria-hidden="true"></i> FAQ - </a> - </p> + <div class="info-col"> + <div class="info-box"> + <h3><i class="fas fa-user-plus" aria-hidden="true"></i> You & HIFIS</h3> + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut + labore et dolore magna aliqua.</p> + </div> + <div class="info-box"> + <h3><i class="fas fa-atom" aria-hidden="true"></i> HIFIS for Scientists</h3> + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut + labore et dolore magna aliqua.</p> + </div> + <div class="info-box"> + <h3><i class="fas fa-globe-europe" aria-hidden="true"></i> HIFIS International</h3> + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut + labore et dolore magna aliqua.</p> + </div> + <div class="info-box"> + <h3><i class="fas fa-road" aria-hidden="true"></i> Now & tomorrow - The HIFIS Roadmap</h3> + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut + labore et dolore magna aliqua.</p> + </div> + </div> </section> </div> <div class="frontpage-jumbotron"> @@ -47,21 +62,21 @@ {% assign today = "now" | date: "%Y-%m-%d" %} {% assign has_upcoming_events = false %} {% for event in sorted_events %} - {% if event.start.date < today or + {% if event.start.date < today or event.registration_period.to < today %} - {% continue %} - {% else %} - {% assign has_upcoming_events = true %} - {% endif %} - {% include frontpage/event-card.html + {% continue %} + {% else %} + {% assign has_upcoming_events = true %} + {% endif %} + {% include frontpage/event-card.html title = event.excerpt %} {% endfor %} {% if has_upcoming_events == false %} - <article class="list-entry"> - <h1> - There are no upcoming events right now ... stay tuned. - </h1> - </article> + <article class="list-entry"> + <h1> + There are no upcoming events right now ... stay tuned. + </h1> + </article> {% endif %} </div> </section> diff --git a/assets/css/frontpage.scss b/assets/css/frontpage.scss index 339a9745ac7848c1cd033571af46fafc37191552..88ac02e3010679932243c56280edfdad0d90b6c7 100644 --- a/assets/css/frontpage.scss +++ b/assets/css/frontpage.scss @@ -7,13 +7,33 @@ #title { + h1 { + margin-bottom: 0; + } + h2 { a { vertical-align: middle; } } + + p { + margin-top: 0; + } } +.info-col { + display: grid; + grid-template-columns: 1fr 1fr; + + @include medium-is-phone { + grid-template-columns: 1fr; + } + + .info-box { + padding: 1rem; + } +} .frontpage-card { @include drop-shadow; @@ -94,8 +114,8 @@ .frontpage-mission-jumbotron { @extend .frontpage-jumbotron; - padding-top: 3rem; - padding-bottom: 3rem; + padding-top: 1rem; + padding-bottom: 1rem; position: relative; background-color: $color-helmholtz-blue; diff --git a/assets/css/title/service-title-buttons.scss b/assets/css/title/service-title-buttons.scss index b474800a2f4b2912912dfb3e1eb7665825c9e4aa..92daf2a5c222da5deeb78774096e7dd9f1b5524d 100644 --- a/assets/css/title/service-title-buttons.scss +++ b/assets/css/title/service-title-buttons.scss @@ -13,8 +13,12 @@ display: grid; grid-template-columns: 1fr 1fr; + @include medium-is-tablet { + grid-template-columns: 1fr 1fr 1fr 1fr; + } + @include medium-is-phone { - grid-template-columns: 1fr; + grid-template-columns: 1fr 1fr; } a { @@ -29,6 +33,6 @@ display: flex; flex-flow: column nowrap; - @include font-small; + @include font-small; } } diff --git a/assets/img/jumbotrons/desktop/hifis_page_title_background.jpg b/assets/img/jumbotrons/desktop/hifis_page_title_background.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a6720768cdb6d296c1998d9f34c8ce0c41f5122f Binary files /dev/null and b/assets/img/jumbotrons/desktop/hifis_page_title_background.jpg differ diff --git a/assets/img/jumbotrons/display_2k/hifis_page_title_background.jpg b/assets/img/jumbotrons/display_2k/hifis_page_title_background.jpg new file mode 100644 index 0000000000000000000000000000000000000000..21093b5c73e537da0f70ce3f2c0363aecb11c8d6 Binary files /dev/null and b/assets/img/jumbotrons/display_2k/hifis_page_title_background.jpg differ diff --git a/assets/img/jumbotrons/hifis_page_title_background.jpg b/assets/img/jumbotrons/hifis_page_title_background.jpg index dd998f3a67fc4531ee4edf7caef8e9ff0db1fe4e..11996d2891bc07820babcde06d951a2d50e8ae32 100644 Binary files a/assets/img/jumbotrons/hifis_page_title_background.jpg and b/assets/img/jumbotrons/hifis_page_title_background.jpg differ diff --git a/assets/img/jumbotrons/phone/hifis_page_title_background.jpg b/assets/img/jumbotrons/phone/hifis_page_title_background.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f47dfe9c7b3ade76105c9e1bee11dd3358ba86a8 Binary files /dev/null and b/assets/img/jumbotrons/phone/hifis_page_title_background.jpg differ diff --git a/assets/img/jumbotrons/tablet/hifis_page_title_background.jpg b/assets/img/jumbotrons/tablet/hifis_page_title_background.jpg new file mode 100644 index 0000000000000000000000000000000000000000..94a376b51b86262b903366fb1fb71fa5dec0349d Binary files /dev/null and b/assets/img/jumbotrons/tablet/hifis_page_title_background.jpg differ diff --git a/index.md b/index.md index 4cee12a9c6d3a392c5a2db56c99cb062e521f3c7..96e96909cbffa6c9b8977cf09f0b5de4c54a5f25 100644 --- a/index.md +++ b/index.md @@ -1,15 +1,14 @@ --- -title: HIFIS Software Services +title: HIFIS - Helmholtz Federated IT Services title_image: default layout: frontpage additional_css: - frontpage.css - title/service-title-buttons.css - additional_js: frontpage.js excerpt: - "HIFIS Software aims to make research software engineering more - sustainable." + "HIFIS aims to provide excellent, seamlessly accessible IT services for the + whole Helmholtz Association." --- {% comment %} This markdown file triggers the generation of the frontpage. diff --git a/scripts/create_jumbotron_variants.sh b/scripts/create_jumbotron_variants.sh new file mode 100755 index 0000000000000000000000000000000000000000..b24b7d61e876ee2d27a5fa0852ede41276fbf370 --- /dev/null +++ b/scripts/create_jumbotron_variants.sh @@ -0,0 +1,97 @@ +#! /usr/bin/env bash + +# ============================================================================== +# title : create_jumbotron_variants.sh +# description : Iterates over all image files in a given folder and creates +# smaller variants of these according to given breakpoints. +# The smaller versions are sorted into subfolders according to the +# breakpoint they were generated for. +# date : 2019-11-07 +# requires : Imagemagick v6 or compatible +# usage : $ bash ./scripts/create_jumbotron_variants assets/img/jumbotron/ +# parameters : (1) path to the assets subfolder containing the jumbotron images +# to be processed. +# notes : The intention to outsource this script is to collect all shell +# scripts in a separate scripts folder instead of putting all +# scripts with all its length into the GitLab CI pipeline +# configuration yaml file. +# Beside that users can manually call this script as well. +# ============================================================================== + +# Check if ImageMagick programs are available +if ! [ -x "$(command -v identify)" ] +then + echo 'ERROR: Command \"identify\" required (provided by imagemagick v6)' >&2 + exit 1 +fi + +if ! [ -x "$(command -v convert)" ] +then + echo 'ERROR: Command \"convert\" required (provided by imagemagick v6)' >&2 + exit 1 +fi + +# Check whether $1 is sane +if ! [ -d "$1" ] +then + echo "ERROR: $1 was expected to be a valid directory" >&2 + exit 1 +fi + +# The list of breakpoints for which to generate variants and their widths in px +declare -A breakpoints=(\ + ["phone"]="600"\ + ["tablet"]="1200"\ + ["desktop"]="1800"\ + ["display_2k"]="2400"\ +) + +# From now on we work in the folder given by $1 +cd "$1" || exit + +for bp_name in "${!breakpoints[@]}" +do echo "$bp_name - ${breakpoints[$bp_name]}" + + # If the target folders do not exist, create them + if ! [ -d "$bp_name" ] + then + echo "Creating folder $bp_name" + mkdir "$bp_name" + fi + +done + +# Get all the images to convert (ignore subfolders) +images=$(find . -maxdepth 1 -iregex ".*\.\(jpg\|gif\|png\|jpeg\|webp\)") + +for source_file in $images +do + image_width=$(identify -format "%[fx:w]" "$source_file") + echo "=== Processing $source_file (width = $image_width px) ===" + + for bp_name in "${!breakpoints[@]}" + do + target_file=$bp_name/$source_file + target_width=${breakpoints[$bp_name]} + + if [ "$image_width" -gt "$target_width" ] + then + # Do not overwrite existing files + if [ -f "$target_file" ] + then + echo "Skip $target_file (already exists)" + continue + else + # Create new version for this breakpoint + echo "Generating $target_file ($target_width px)" + convert "$source_file" -resize "$target_width" "$target_file" + fi + else + # Instead of upscaling, create a relative link to the original + echo "Creating link $target_file (Source smaller then target)" + ln -sr "$source_file" "$target_file" + fi + done +done +exit 0 +