diff --git a/assets/js/script.js b/assets/js/script.js index dba605a..e4204e5 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -42,19 +42,17 @@ }); //Hero Slider - $('.hero-slider').slick({ + $('.hero-slider-items').slick({ autoplay: true, autoplaySpeed: 5000, pauseOnFocus: false, - pauseOnHover: false, + pauseOnHover: true, infinite: true, arrows: true, - fade: true, prevArrow: '', nextArrow: '', dots: true }); - $('.hero-slider').slickAnimation(); // venobox popup $(document).ready(function () { @@ -115,17 +113,7 @@ $(window).on('scroll', function () { counter(); }); - - // Animation - $(document).ready(function () { - $('.has-animation').each(function (index) { - $(this).delay($(this).data('delay')).queue(function () { - $(this).addClass('animate-in'); - }); - }); - }); - - + })(jQuery); var acc = document.getElementsByClassName("accordion"); diff --git a/assets/scss/_common.scss b/assets/scss/_common.scss index bec81c6..e74009a 100644 --- a/assets/scss/_common.scss +++ b/assets/scss/_common.scss @@ -118,7 +118,7 @@ a h4 { top: 0; left: 0; background: $secondary-color; - opacity: .8; + opacity: .7; } } diff --git a/config.yml b/config.yml index b743cc8..063bbd8 100644 --- a/config.yml +++ b/config.yml @@ -31,7 +31,6 @@ params: css: - https://assets.cantorgymnasium.de/bootstrap/v4/bootstrap.min.css - https://assets.cantorgymnasium.de/slick/v1.8/slick.css - - https://assets.cantorgymnasium.de/animate/v3/animate.min.css - https://assets.cantorgymnasium.de/venobox/v2/dist/venobox.min.css - https://assets.cantorgymnasium.de/fonts/mdi/v7/css/materialdesignicons.min.css - https://assets.cantorgymnasium.de/fonts/fira/fira.css diff --git a/data/de/homepage.yml b/data/de/homepage.yml index 0cbbdc8..acbff1d 100644 --- a/data/de/homepage.yml +++ b/data/de/homepage.yml @@ -16,71 +16,51 @@ slider: title: Das Georg-Cantor-Gymnasium slider_item: - content: Mathematisch-naturwissenschaftliche Spezialschule - animation_in: left - animation_out: right button: enable: true label: Über uns link: about - content: Schule mit dem Gütesiegel "Begabungsfördernde Schule" - animation_in: left - animation_out: right button: enable: true link: https://lisa.sachsen-anhalt.de/unterricht/projekte-und-paedagogische-entwicklungsvorhaben/begabungsfoerderung/netzwerk-begabungsfoerdernde-schulen-in-sachsen-anhalt/ label: Mehr erfahren - content: Primegymnasium der Martin-Luther-Universität Halle-Wittenberg - animation_in: left - animation_out: right button: enable: true link: https://www.marketing.uni-halle.de/schulbuero/prime-gymnasien/ label: Mehr erfahren - content: Kooperationsschule der Hochschule Merseburg - animation_in: left - animation_out: right button: link: https://www.hs-merseburg.de/studium/vor-dem-studium/angebote-fuer-studieninteressierte label: Mehr erfahren enable: true - content: Kooperationsschule der Hochschule Anhalt - animation_in: left - animation_out: right button: link: https://www.hs-anhalt.de/nc/studieren/orientierung/schulcampus/schulkooperationen.html label: Mehr erfahren enable: true - content: Kooperationsschule der Dow Olefinverbund GmbH - animation_in: left - animation_out: right button: enable: false label: "" link: "" - content: Mitglied im Netzwerk MINT-EC - animation_in: left - animation_out: right button: enable: true label: Mehr erfahren link: https://mint-ec.de - content: Projektschule LemaS - animation_in: left - animation_out: right button: enable: true link: https://www.leistung-macht-schule.de/ label: Mehr erfahren - content: KMK "Jugend forscht"-Schule 2018 - animation_in: left - animation_out: right button: enable: true link: https://www.kmk.org/aktuelles/artikelansicht/georg-cantor-gymnasium-halle-saale-ist-die-jugend-forscht-schule-2018.html label: Mehr erfahren - content: Mitglied im Netzwerk "Schule ohne Rassismus - Schule mit Courage" - animation_in: left - animation_out: right button: enable: true link: https://www.schule-ohne-rassismus.org/ diff --git a/layouts/index.html b/layouts/index.html index 3bd6976..11aec55 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,19 +7,21 @@
- {{ range .slider_item }} -
-
+

{{ $data.homepage.slider.title | markdownify }}

-

{{ .content | markdownify }}

- {{ if .button.enable }} - {{ .button.label }} +
+ {{ range .slider_item }} +
+

{{ .content | markdownify }}

+ {{ if .button.enable }} + {{ .button.label }} + {{ end }} +
{{ end }} +
-
- {{ end }}
@@ -33,20 +35,18 @@
- {{ range first 1 $data.homepage.slider.slider_item }} -
-
+

{{ $data.homepage.slider.title | markdownify }}

-

{{ .content | markdownify }}

- {{ if .button.enable }} - {{ .button.label }} + {{ range first 1 $data.homepage.slider.slider_item }} +

{{ .content | markdownify }}

+ {{ if .button.enable }} + {{ .button.label }} + {{ end }} {{ end }}
- {{ end }} -
diff --git a/static/admin/config.yml b/static/admin/config.yml index 9b36056..9aea147 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -74,16 +74,6 @@ collections: widget: "list" fields: - {label: "Inhalt", name: "content", widget: "string", required: false} - - label: "Einblendeanimation" - name: "animation_in" - widget: "select" - options: ["left", "right", "up", "down"] - required: false - - label: "Ausblendeanimation" - name: "animation_out" - widget: "select" - options: ["left", "right", "up", "down"] - required: false - label: "Button" name: "button" widget: "object"