Skip to content

Commit

Permalink
Initial push.
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyersPh9 committed Mar 12, 2024
1 parent 3a823c2 commit 6ff8ea9
Show file tree
Hide file tree
Showing 12 changed files with 285 additions and 138 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
gem 'jekyll-sitemap'
gem 'jekyll-dotenv'
gem 'mini_magick'
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
Expand Down
10 changes: 6 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ GEM
eventmachine (1.2.7)
ffi (1.16.3)
forwardable-extended (2.6.0)
google-protobuf (3.25.2-arm64-darwin)
google-protobuf (3.25.3-arm64-darwin)
http_parser.rb (0.8.0)
i18n (1.14.1)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
jekyll (4.3.3)
addressable (~> 2.4)
Expand Down Expand Up @@ -50,10 +50,11 @@ GEM
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.4)
listen (3.8.0)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_magick (4.12.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.0.4)
Expand All @@ -63,7 +64,7 @@ GEM
rexml (3.2.6)
rouge (4.2.0)
safe_yaml (1.0.5)
sass-embedded (1.70.0-arm64-darwin)
sass-embedded (1.71.1-arm64-darwin)
google-protobuf (~> 3.25)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
Expand All @@ -82,6 +83,7 @@ DEPENDENCIES
jekyll-sass-converter
jekyll-seo-tag
jekyll-sitemap
mini_magick
tzinfo (>= 1, < 3)
tzinfo-data
wdm (~> 0.1.1)
Expand Down
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ plugins:
- jekyll-sitemap
- jekyll-dotenv

exclude:
- _data/average_colors.json

sass:
sass_dir: _sass
style: compressed
Expand Down
99 changes: 99 additions & 0 deletions _data/average_colors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"reverze-synergy-2023": "#5F455D",
"imagination-festival-2024": "#737168",
"hardice-presents-imperatorz-2024": "#19141E",
"reverze-2024": "#474540",
"hellbound-welcome-to-the-machine-2024": "#1B231A",
"masters-of-hardcore-2024": "#39302F",
"supersized-kingsday-festival-2024": "#E46E27",
"mysteryland-2024": "#B3A0AE",
"emporium-festival-2024": "#678E72",
"kingdance-festival-2024": "#3D3427",
"dance4liberation-2024": "#93845C",
"edc-las-vegas-2024": "#A183A4",
"harmony-of-hardcore-2024": "#2F2E2C",
"dropzone-2024": "#454E43",
"defqon-1-weekend-festival-2024": "#8E777F",
"electric-love-festival-2024": "#72386C",
"dominator-festival-2024": "#393525",
"airbeat-one-festival-2024": "#BAA8AD",
"parookaville-2024": "#7D5948",
"hardclassics-festival-2024": "#756849",
"sound-of-the-underground-2024": "#323443",
"relevatez-festival-2024": "#7E4B6B",
"decibel-outdoor-festival-2024": "#653C5A",
"forbidden-island-2024": "#AE6A7F",
"titanium-festival-2024": "#2D2C2C",
"bkjn-events-presents-bulletproof-2024": "#2B3325",
"captain-hardstyle-2024": "#7AC0C7",
"kill-the-noise-festival-2024": "#545B60",
"hard-dance-nyc-presents-sub-zero-project-2024": "#462239",
"avondje-outsiders-2024": "#36262B",
"syndicate-2024": "#633335",
"angerfist-docks-hamburg-2024": "#1B1B1B",
"snakepit-2024": "#123A4C",
"brennan-heart-docks-hamburg-2024": "#604A70",
"basscon-presents-sub-zero-project-2024": "#541210",
"the-hardest-presents-no-limits-2024": "#586342",
"tomorrowland-weekend-1-2024": "#434C4E",
"tomorrowland-weekend-2-2024": "#434C4E",
"basscon-presents-lil-texas-planet-texcore-2024": "#B95F36",
"revenge-portal-to-the-extreme-2024": "#2F332C",
"welcome-to-the-gang-2024": "#D4CDC4",
"hardfest-2024": "#B87A4F",
"city-of-eldorado-2024": "#9F7A3B",
"flashback-2024": "#F0D2D7",
"mystica-entangled-mind-games-2024": "#4F4B83",
"ravemania-2024": "#342A40",
"bkjn-future-night-2024": "#344966",
"hard-dance-nyc-presents-d-sturb-geo-2024": "#503E5C",
"electric-sea-festival-2024": "#584160",
"rawfare-2024": "#194E35",
"solar-eclipse-2024": "#4B5778",
"the-qontinent-2024": "#A18C7A",
"dark-circus-2024": "#62341E",
"rawdefinition-2024": "#275538",
"qlimax-2024": "#8B5322",
"rebelion-the-final-dose-2024": "#133027",
"darkraver-all-night-long-2024": "#211E13",
"overdose-the-final-dose-2024": "#0F2119",
"basscon-geo-2024": "#372923",
"supremacy-2024": "#542632",
"synergy-revolution-of-raw-2024": "#5E4772",
"route-666-2024": "#4F523B",
"sub-zero-project-docks-hamburg-2024": "#302C2A",
"supercharged-festival-2024": "#553A2F",
"madness-presents-sub-zero-project-2024": "#242624",
"bassquake-festival-2024": "#4D4E64",
"basscon-presents-wasted-penguinz-2024": "#292522",
"thyron-album-release-night-2024": "#131D3D",
"hard-dance-nyc-presents-wasted-penguinz-2024": "#494555",
"hard-dance-nyc-presents-radical-redemption-2024": "#3A1715",
"hardcore-gladiators-2024": "#362F2E",
"shockerz-2024": "#624158",
"hard-dance-nyc-presents-warface-2024": "#756040",
"impact-of-theia-2024": "#3D323D",
"multigroove-festival-2024": "#9A6F8E",
"heart-of-hard-presents-riot-shift-2024": "#5D403A",
"hardstyle-invasion-2-2024": "#54362C",
"the-hardest-presents-the-ultimate-battles-2024": "#4D465E",
"basscon-presents-tnt-wasted-penguinz-2024": "#381A32",
"king-of-the-pieps-2024": "#AD306D",
"q-dance-take-over-at-balaton-sound-2024": "#252028",
"state-of-bass-classics-2024": "#5B354B",
"q-dance-take-over-at-world-dj-festival-2024": "#262128",
"overloud-events-6-year-celebration-2024": "#4F3658",
"i-am-hardstyle-poland-2024": "#3E3C5D",
"unity-2024": "#0D2954",
"heart-of-hard-presents-angerfist-2024": "#324E37",
"basscon-pool-party-2024": "#1F201C",
"infinity-festival-2024": "#5C6C45",
"a-nightmare-in-germany-2024": "#5A1A2A",
"bkjn-21-years-2024": "#453E29",
"recharged-city-of-lights-2024": "#402B36",
"infiltration-2024": "#2E1F13",
"pat-b-birthday-bash-xxl-2024": "#6A532A",
"pokke-herrie-2024": "#4F6D86",
"reverze-2025": "#6D4581",
"new_key": "New Value"
}
8 changes: 2 additions & 6 deletions _includes/banner-event.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,15 @@
style="view-transition-name: post-image-{{ page.title | slugify }};"
/>
</div>
<div id="map" data-location="{{ page.location | uri_escape }}"></div>
</div>

{% if page.featured and page.video %}
<ul class="button-group banner-event-links" data-variant="overlay">
{% if page.featured and page.video %}
<li>
<a class="button" href="#trailer" tabindex="-1">Trailer</a>
</li>
{% endif %}
<li>
<a class="button" href="#poster" tabindex="-1">Poster</a>
</li>
<li>
<a class="button" href="#map" tabindex="-1">Map</a>
</li>
</ul>
{% endif %}
30 changes: 0 additions & 30 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,36 +189,6 @@

<!-- PAGE: Events -->
{% if page.layout == 'events' %}
<!-- Pull average color from event image -->
<script>
document.addEventListener("DOMContentLoaded", function () {
const images = document.querySelectorAll(".grid-item-image");

images.forEach((img) => {
const index = img.dataset.index;
colorjs.average(img.src).then((color) => {
const rgbColor = `rgb(${color[0]}, ${color[1]}, ${color[2]})`;
const listItem = document.getElementById(`grid-item-${index}`);

// Determine the best text color for contrast
const textColor = getContrastYIQ(color);

// Set CSS custom properties for background and text color
listItem.style.setProperty("--_color-grid-item-background", rgbColor);
listItem.style.setProperty("--_color-grid-item-text-color", textColor);
});
});
});

function getContrastYIQ(rgbColor) {
var r = rgbColor[0];
var g = rgbColor[1];
var b = rgbColor[2];
var yiq = (r * 299 + g * 587 + b * 114) / 1000;
return yiq >= 128 ? "black" : "white";
}
</script>

<!-- Add `loading=lazy` to images below the fold -->
<script>
document.addEventListener("DOMContentLoaded", function () {
Expand Down
25 changes: 1 addition & 24 deletions _includes/title-bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,8 @@ <h1 {% if page.layout == 'event' %}style="view-transition-name: post-title-{{ pa
</button>
</div>
{% elsif page.layout == 'event' %}
{% if page.links %}
<ul class="button-group page-title-end">
{% for link in page.links %}
<li>
<a
class="button"
href="{{ link.url }}"
target="_blank"
rel="noopener noreferrer"
>
<svg alt="{{ link.title }} icon" aria-hidden="true">
<use
xlink:href="/assets/symbols.svg#{{ link.title | slugify }}"
></use>
</svg>
<span class="hide-on-mobile">{{ link.title }}</span>
</a>
</li>
{% endfor %}
<li>
<button
class="button"
class="button page-title-end"
id="shareButton"
>
<svg alt="{{ link.title }} icon" aria-hidden="true">
Expand All @@ -80,9 +60,6 @@ <h1 {% if page.layout == 'event' %}style="view-transition-name: post-title-{{ pa
</svg>
<span class="hide-on-mobile">Share</span>
</button>
</li>
</ul>
{% endif %}
{% endif %}

{% if page.layout == 'events' %}
Expand Down
Loading

0 comments on commit 6ff8ea9

Please sign in to comment.