Skip to content

Commit

Permalink
Game Showcase Section + Additional Fixes (#257)
Browse files Browse the repository at this point in the history
* game showcase section + additional fixes

* prettier fixes

---------

Co-authored-by: Cameron <[email protected]>
  • Loading branch information
EyeDaleHim and ninjamuffin99 authored Mar 27, 2024
1 parent a4b1b06 commit 5e72008
Show file tree
Hide file tree
Showing 7 changed files with 150 additions and 134 deletions.
26 changes: 14 additions & 12 deletions content/_layouts/demos-layout.liquid
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
---
layout: default.liquid
---
<h1 class="title ">{{ title }}
<div class="float-end">
<a
class="github-button"
href="https://github.com/haxeflixel/flixel-demos"
data-color-scheme="no-preference: light_high_contrast; light: light_high_contrast; dark: dark_high_contrast;"
data-size="large"
data-show-count="true"
aria-label="Star haxeflixel/flixel on GitHub"
>haxeflixel/flixel-demos</a>
</div>
</h1>
<h1 class="title ">
{{ title }}
<div class="float-end">
<a
class="github-button"
href="https://github.com/haxeflixel/flixel-demos"
data-color-scheme="no-preference: light_high_contrast; light: light_high_contrast; dark: dark_high_contrast;"
data-size="large"
data-show-count="true"
aria-label="Star haxeflixel/flixel on GitHub"
>haxeflixel/flixel-demos</a
>
</div>
</h1>

{{ content }}
25 changes: 13 additions & 12 deletions content/_layouts/documentation-layout.liquid
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
---
layout: default
---
<h1 class="title">{{ title }}
<h1 class="title">
{{ title }}

<div class="float-end">
<a
class="github-button"
href="https://github.com/haxeflixel/flixel-docs"
data-color-scheme="no-preference: light_high_contrast; light: light_high_contrast; dark: dark_high_contrast;"
data-size="large"
data-show-count="true"
aria-label="Star haxeflixel/flixel on GitHub"
>haxeflixel/flixel-docs</a>
</div>
<div class="float-end">
<a
class="github-button"
href="https://github.com/haxeflixel/flixel-docs"
data-color-scheme="no-preference: light_high_contrast; light: light_high_contrast; dark: dark_high_contrast;"
data-size="large"
data-show-count="true"
aria-label="Star haxeflixel/flixel on GitHub"
>haxeflixel/flixel-docs</a
>
</div>
</h1>


<p>
The HaxeFlixel documentation is provided from the
<a href="https://github.com/HaxeFlixel/flixel-docs">flixel-docs repository</a> and is open for
Expand Down
19 changes: 9 additions & 10 deletions content/_layouts/partials/footer.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,29 @@
<ul class="list-unstyled">
<li>
<a href="https://twitter.com/haxeflixel">
Twitter
<i class="bi-twitter"></i>
Twitter
</a>
</li>
<li>
<a href="https://github.com/haxeflixel">
Github
<i class="bi-github"></i>
GitHub
</a>
</li>
<li>
<a href="https://discordapp.com/invite/rqEBAgF">
Discord
<i class="bi-discord"></i>
Discord
</a>
</li>
<li >
<a href="https://www.patreon.com/haxefliexel">
<li>
<a href="https://www.patreon.com/haxeflixel">
<img
class="footer-patreon"
src="/images/patreon-logo.svg"
width="16px">
Patreon
<img class="footer-patreon" src="/images/patreon-logo.svg"
width="16px"/>
</a>
</li>
</ul>
Expand All @@ -45,7 +47,6 @@
<li>
<a href="https://api.haxeflixel.com">API</a>
</li>

</ul>
<ul class="list-unstyled col">
<li>
Expand All @@ -59,8 +60,6 @@
</li>
</ul>
</div>


</div>

<div class="footer-powered-by col ">
Expand Down
19 changes: 10 additions & 9 deletions content/_layouts/showcase.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ layout: default
{{ title }}

<div class="float-end">
<a
class="github-button"
href="https://github.com/haxeflixel/haxeflixel.com?tab=readme-ov-file#how-to-add-a-showcase-game"
data-color-scheme="no-preference: light_high_contrast; light: light_high_contrast; dark: dark_high_contrast;"
data-size="large"
data-show-count="true"
aria-label="Star haxeflixel/flixel on GitHub"
>haxeflixel/haxeflixel.com</a>
</div>
<a
class="github-button"
href="https://github.com/haxeflixel/haxeflixel.com?tab=readme-ov-file#how-to-add-a-showcase-game"
data-color-scheme="no-preference: light_high_contrast; light: light_high_contrast; dark: dark_high_contrast;"
data-size="large"
data-show-count="true"
aria-label="Star haxeflixel/flixel on GitHub"
>haxeflixel/haxeflixel.com</a
>
</div>
</h1>

{{ content }}
24 changes: 13 additions & 11 deletions content/_scss/sections/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
font-size: 30px;
font-weight: 200;
padding-bottom: 30px;
padding-top: 10px;
}

.lead-line-large {
Expand Down Expand Up @@ -80,10 +81,20 @@
box-shadow: var(--bs-box-shadow);
}

.games-home .showcase-list {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
}

.games-home a {
margin: 0.5em;
gap: 0.25em;
}

.platform-logos-home img {
padding: 10px;
@include opacityAll(0.7);
@include hover-scale-fx(1.1);
@include grayscale();
}

Expand All @@ -94,16 +105,6 @@ $color-mode-type: data;
@include opacityAll(1);
filter: invert(0.7);
}

.platform-logos-home img:hover {
@include opacityAll(1);
filter: invert(0.9);
}
}

.platform-logos-home img:hover {
@include opacityAll(1);
@include nograyscale();
}

.platform-demos-home img {
Expand All @@ -117,6 +118,7 @@ $color-mode-type: data;

.home-big-logo img {
@include hover-scale-fx(1.1);
padding-bottom: 15px;
}

.navbar-fixed-top {
Expand Down
1 change: 0 additions & 1 deletion content/demos.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ layout: "demos-layout"
---
<div class="demo-page center-align-a row row-cols-sm-2 row-cols-3 g-3 justify-content-center mx-sm-4">
{% for demo in collections['demo-item'] %}

<a
class="col-6 col-sm-4 col-md-3"
href="{{ demo.url }}">
Expand Down
Loading

0 comments on commit 5e72008

Please sign in to comment.