diff --git a/_data/scala-days-sponsors.yml b/_data/scala-days-sponsors.yml deleted file mode 100644 index 1af86d1da..000000000 --- a/_data/scala-days-sponsors.yml +++ /dev/null @@ -1,45 +0,0 @@ -# Sponsors Data -# ---------------------------------------------------------------------------------------------------------- -# ---------------------------------------------------------------------------------------------------------- - -sponsorship-types: - - title: Platinum - icon: img/assets/icon-platinum.svg - - title: Gold - icon: img/assets/icon-gold.svg - -sponsors: - - title: VirtusLab - type: Platinum - logo: /resources/img/scala-days-sponsors/virtuslab.png - url: https://virtuslab.com - - - title: Signify Technology - type: Platinum - logo: /resources/img/scala-days-sponsors/signify.png - url: https://www.signifytechnology.com/ - - - title: Gradle - type: Gold - logo: /resources/img/scala-days-sponsors/gradle.png - url: https://gradle.com/ - - - title: JetBrains - type: Gold - logo: /resources/img/scala-days-sponsors/jetbrains.svg - url: https://jetbrains.com - - - title: Scalac - type: Gold - logo: /resources/img/scala-days-sponsors/scalac.svg - url: https://scalac.io - - - title: Xebia - type: Gold - logo: /resources/img/scala-days-sponsors/xebia.svg - url: https://xebia.com - - - title: Writer - type: Gold - logo: /resources/img/scala-days-sponsors/writer.svg - url: https://writer.com \ No newline at end of file diff --git a/_includes/scala-days-countdown.html b/_includes/scala-days-countdown.html deleted file mode 100644 index 9866f65f2..000000000 --- a/_includes/scala-days-countdown.html +++ /dev/null @@ -1,24 +0,0 @@ -
-
-
- Learn More & Register Today -
Bringing Scala Days in...
-
-
-
-
- - DAYS -
-
- - HOURS -
-
- - MINUTES -
-
-
-
-
diff --git a/_includes/scala-days-sponsors.html b/_includes/scala-days-sponsors.html deleted file mode 100644 index 01c578faa..000000000 --- a/_includes/scala-days-sponsors.html +++ /dev/null @@ -1,31 +0,0 @@ -
- -
- Scala Days 2025 is brought to you by: -
- - -
- {% for sponsor in site.data.scala-days-sponsors.sponsors %} - {% if sponsor.type == 'Platinum' %} - - {% endif %} - {% endfor %} -
- - -
\ No newline at end of file diff --git a/_layouts/frontpage.html b/_layouts/frontpage.html index cb1448d91..0f5a8ecbe 100644 --- a/_layouts/frontpage.html +++ b/_layouts/frontpage.html @@ -16,8 +16,6 @@

- {% include scala-days-countdown.html %} - {% include scala-days-sponsors.html %}
-
diff --git a/_sass/components/countdown.scss b/_sass/components/countdown.scss deleted file mode 100644 index 065867775..000000000 --- a/_sass/components/countdown.scss +++ /dev/null @@ -1,115 +0,0 @@ -// COUNT DOWN FOR SCALA DAYS 2025 -//------------------------------------------------ -//------------------------------------------------ - -#countdown-clock-2025 { - width: 100%; - min-height: 120px; - background: #1793b1 url("/resources/img/scala-logo-large.svg") no-repeat center center; - position: relative; - display: flex; - align-items: center; - justify-content: center; - margin: 0 auto 0 auto; - overflow: hidden; -} - -.countdown-content { - display: flex; - width: 100%; - max-width: 1600px; - align-items: center; - justify-content: space-between; - padding: 1.2em 1.5em 1.2em 1.5em; -} - -.countdown-left { - display: flex; - flex-direction: column; - align-items: flex-start; - flex: 1 1 0; - z-index: 2; -} - -.countdown-register-btn { - display: inline-block; - color: #fff; - border: 2px solid #fff; - background: transparent; - font-size: 1em; - font-weight: 400; - padding: 0.4em 1.5em; - border-radius: 2px; - margin-bottom: 0.7em; - text-decoration: none; - transition: background 0.2s, color 0.2s; -} -.countdown-register-btn:hover { - background: #fff; - color: #c32d1c; -} - -.countdown-heading { - color: #fff; - font-size: 1.2em; - font-weight: 700; - letter-spacing: 0.01em; -} - -.countdown-right { - display: flex; - align-items: center; - justify-content: flex-end; - flex: 1 1 0; - z-index: 2; -} - -.countdown-timer { - display: flex; - gap: 1.5em; -} - -.countdown-segment { - display: flex; - flex-direction: column; - align-items: center; -} - -.countdown-value { - color: #fff; - font-size: 2.2em; - font-weight: 700; - line-height: 1; -} - -.countdown-label { - color: #fff; - font-size: 0.8em; - font-weight: 400; - text-transform: uppercase; - margin-top: 0.1em; - letter-spacing: 0.05em; -} - -@media (max-width: 900px) { - .countdown-content { - flex-direction: column; - align-items: center; - padding: 1em 0.5em; - } - .countdown-left, .countdown-right { - align-items: center; - justify-content: center; - width: 100%; - text-align: center; - } - .countdown-timer { - gap: 0.7em; - } - .countdown-heading { - font-size: 1em; - } - .countdown-value { - font-size: 1.3em; - } -} \ No newline at end of file diff --git a/_sass/components/scala-days-sponsors.scss b/_sass/components/scala-days-sponsors.scss deleted file mode 100644 index 35963d4f4..000000000 --- a/_sass/components/scala-days-sponsors.scss +++ /dev/null @@ -1,102 +0,0 @@ -// SCALA DAYS 2025 SPONSORS -//------------------------------------------------ -//------------------------------------------------ - -.scala-days-sponsors-bar { - width: 100%; - overflow: hidden; - background: rgba(30, 40, 50, 0.2); - padding: 1em 0; - position: relative; -} - -.sponsors-carousel { - width: 100%; - overflow: hidden; - position: relative; - white-space: nowrap; -} - -.sponsors-track { - display: flex; - flex-direction: row; - align-items: center; - white-space: nowrap; - width: max-content; - animation: sponsors-scroll 120s linear infinite; - will-change: transform; -} - -.sponsor-logo-link { - display: flex; - align-items: center; - justify-content: center; - width: 140px; - height: 48px; - margin: 0 1em; - flex: 0 0 auto; -} - -.sponsor-logo { - max-height: 40px; - max-width: 120px; - width: auto; - height: auto; - filter: brightness(0) invert(1); - opacity: 0.92; - transition: opacity 0.2s; - display: block; - margin: 0 auto; -} -.sponsor-logo-link:hover .sponsor-logo { - opacity: 1; -} - -.sponsors-static-row { - display: flex; - flex-direction: row; - align-items: flex-end; - width: max-content; - margin-left: auto; - margin-right: auto; - gap: 3em; - margin-bottom: 1em; -} - -.sponsor-logo-link-platinum { - display: flex; - align-items: center; - justify-content: center; -} - -.sponsor-logo-platinum { - max-height: 80px !important; - filter: brightness(0) invert(1); - opacity: 0.92; - transition: opacity 0.2s; -} - -.sponsors-brought-to-you-by { - font-size: 1.2em; - font-weight: 600; - color: #fff; - margin-bottom: 1em; - text-align: center; -} - -@keyframes sponsors-scroll { - 0% { transform: translateX(0); } - 100% { transform: translateX(-50%); } -} - -@media (max-width: 700px) { - .sponsor-logo-link { - width: 80px; - height: 28px; - margin: 0 0.5em; - } - .sponsor-logo { - max-height: 24px; - max-width: 60px; - } -} diff --git a/_sass/layout/navigation.scss b/_sass/layout/navigation.scss index 582b282ad..0cd2b7732 100755 --- a/_sass/layout/navigation.scss +++ b/_sass/layout/navigation.scss @@ -51,7 +51,6 @@ text-decoration: none; } } - } } } diff --git a/resources/css/style.scss b/resources/css/style.scss index 37bbde972..69181d5ec 100755 --- a/resources/css/style.scss +++ b/resources/css/style.scss @@ -76,5 +76,3 @@ @import 'components/tab'; @import 'components/tag'; @import 'components/search'; -@import 'components/countdown'; -@import 'components/scala-days-sponsors'; \ No newline at end of file diff --git a/resources/img/scala-days-sponsors/gradle.png b/resources/img/scala-days-sponsors/gradle.png deleted file mode 100644 index c01df74e1..000000000 Binary files a/resources/img/scala-days-sponsors/gradle.png and /dev/null differ diff --git a/resources/img/scala-days-sponsors/jetbrains.svg b/resources/img/scala-days-sponsors/jetbrains.svg deleted file mode 100644 index cb3a2a0e5..000000000 --- a/resources/img/scala-days-sponsors/jetbrains.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/resources/img/scala-days-sponsors/scalac.svg b/resources/img/scala-days-sponsors/scalac.svg deleted file mode 100644 index 747b186c6..000000000 --- a/resources/img/scala-days-sponsors/scalac.svg +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/resources/img/scala-days-sponsors/signify.png b/resources/img/scala-days-sponsors/signify.png deleted file mode 100644 index d3dc1b57e..000000000 Binary files a/resources/img/scala-days-sponsors/signify.png and /dev/null differ diff --git a/resources/img/scala-days-sponsors/virtuslab.png b/resources/img/scala-days-sponsors/virtuslab.png deleted file mode 100644 index de2a48e9d..000000000 Binary files a/resources/img/scala-days-sponsors/virtuslab.png and /dev/null differ diff --git a/resources/img/scala-days-sponsors/writer.svg b/resources/img/scala-days-sponsors/writer.svg deleted file mode 100644 index 257dc440f..000000000 --- a/resources/img/scala-days-sponsors/writer.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/resources/img/scala-days-sponsors/xebia.svg b/resources/img/scala-days-sponsors/xebia.svg deleted file mode 100644 index a87af96b1..000000000 --- a/resources/img/scala-days-sponsors/xebia.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/resources/img/scala-logo-large.svg b/resources/img/scala-logo-large.svg deleted file mode 100644 index 249040e4e..000000000 --- a/resources/img/scala-logo-large.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/resources/js/functions.js b/resources/js/functions.js index a7fcc687a..21b24315c 100644 --- a/resources/js/functions.js +++ b/resources/js/functions.js @@ -1,3 +1,6 @@ +--- +--- + // Sliding Panel $(document).ready(function() { $('.navigation-panel-button,.navigation-fade-screen,.navigation-panel-close').on('click touchstart', function(e) { @@ -592,56 +595,3 @@ $(document).ready(function() { }); } }); - -// Scala Days 2025 Countdown -$(document).ready(function() { - function countdownCalc(deadline, cityName) { - var now = new Date().getTime(); - var t = deadline - now; - var days = Math.floor(t / (1000 * 60 * 60 * 24)); - var hours = Math.floor((t % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); - var minutes = Math.floor((t % (1000 * 60 * 60)) / (1000 * 60)); - var dayEl = document.getElementById(cityName + '-day'); - var hourEl = document.getElementById(cityName + '-hour'); - var minEl = document.getElementById(cityName + '-minute'); - if (dayEl && hourEl && minEl) { - dayEl.innerHTML = days; - hourEl.innerHTML = hours; - minEl.innerHTML = minutes; - } - if (t < 0) { - clearInterval(window.scalaDaysCountdownInterval); - var clock = document.getElementById('countdown-clock-' + cityName); - if (clock) clock.innerHTML = 'Ready!'; - if (dayEl) dayEl.innerHTML = '0'; - if (hourEl) hourEl.innerHTML = '0'; - if (minEl) minEl.innerHTML = '0'; - } - } - var deadline2025 = new Date('Aug 19, 2025 09:00:00').getTime(); - if (document.getElementById('countdown-clock-2025')) { - countdownCalc(deadline2025, '2025'); - window.scalaDaysCountdownInterval = setInterval(function() { - countdownCalc(deadline2025, '2025'); - }, 60000); - } -}); - -// Seamless infinite scroll for Scala Days sponsors bar (no memory leak, no visible jump) -document.addEventListener("DOMContentLoaded", function() { - var track = document.getElementById('sponsors-track'); - if (!track) return; - - // Get the width of one set of logos (half the track) - var totalWidth = track.scrollWidth / 2; - var pos = 0; - function animateSponsorsBar() { - pos -= 1; // px per frame, adjust for speed - if (Math.abs(pos) >= totalWidth) { - pos = 0; - } - track.style.transform = 'translateX(' + pos + 'px)'; - requestAnimationFrame(animateSponsorsBar); - } - animateSponsorsBar(); -});