Skip to content

Commit

Permalink
Add proper pack pages to the site (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp authored Aug 15, 2024
1 parent 1935d3f commit ece7af8
Show file tree
Hide file tree
Showing 16 changed files with 133 additions and 34 deletions.
75 changes: 75 additions & 0 deletions _layouts/pack.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
layout: default
---

{%- if page.banner -%}
<div class="hero">
<div class="container">
<img class="wordmark" src="{{ page.wordmark }}">
</div>
</div>
{%- endif -%}

<div class="container">
{%- if page.text -%}
<div class="card card-body">
<p class="h4 m-0">
{{ page.text }}
</p>
{%- if page.buttons -%}
<div class="button-2">
{%- for button in page.buttons -%}
<a class="btn btn-dark" href="{{ button.href }}">{{ button.text }}</a>
{%- endfor -%}
</div>
{%- endif -%}
</div>

<hr>
{%- endif -%}

<!-- TODO: move packs that require this feature to the real downloads page -->

{%- if page.downloads -%}
<h2 class="display-4 my-5 text-center">Downloads</h2>
{%- for item in page.downloads -%}
<h1 class="my-3" align="center">{{ item.first[0] }}</h1>
{%- for subitem in item.first[1] -%}
<p align="center">
<a href="{{ subitem[1] }}" class="btn block btn-lg btn-primary">
{%- if subitem[0] contains "GitHub" -%}
<i style="margin-right: 10px" class="fab"></i>
{%- elsif subitem[0] contains "CurseForge" -%}
<i style="margin-right: 10px" class="fas"></i>
{%- elsif subitem[0] contains "PlanetMinecraft" or subitem[0] contains "PMC" or subitem[0] contains "Planet Minecraft"-%}
<i style="margin-right: 10px" class="fas"></i>
{%- elsif subitem[0] contains "MCPEDL" -%}
<i style="margin-right: 10px" class="fas"></i>
{%- elsif subitem[0] contains "Modrinth" -%}
<i style="margin-right: 10px" class="fas"></i>
{%- endif -%}
{{ subitem[0] }}
</a>
</p>
{%- endfor -%}
<br>
{%- endfor -%}
{%- endif -%}
</div>

<style>
.hero {
display: block;
background-image: url("{{ page.banner }}");
background-size: cover;
background-position: center;
padding: 0 2rem 1px;
text-align: center;
}

.wordmark {
padding: 5vw;
filter: drop-shadow(0 0 10px #000);
width: 800px;
}
</style>
2 changes: 1 addition & 1 deletion css/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@

.highlight-section {
display: block;
background-image: url(/image/background/hero.jpg);
background-image: url(/image/banner/hero.jpg);
background-size: cover;
background-position: center;
padding: 0 2rem 1px;
Expand Down
Binary file added image/banner/cf32j.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/banner/cf32pa.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/banner/cf64.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/banner/f32.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/banner/f64.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added image/home/cf32j.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/home/cf32pa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1 class="display-3 mb-4" align="center">Projects</h1>
<div class="card-text auto-flex">
<h7 class="my-2 text-center" style="min-height: 65px">The original Minecraft texture feel, with double the resolution and double the fun!</h7><br>
</div>
<a class="btn block btn-dark" href="{{ site.baseurl }}/faithful32x/latest">See Latest Version</a>
<a class="btn block btn-dark" href="{{ site.baseurl }}/faithful32x">See More</a>
</div>
</div>
<div class="card discover">
Expand All @@ -43,7 +43,7 @@ <h1 class="display-3 mb-4" align="center">Projects</h1>
<div class="card-text auto-flex">
<h7 class="my-2 text-center" style="min-height: 65px">An even more detailed experience with quadruple-resolution textures!</h7><br>
</div>
<a class="btn block btn-dark" href="{{ site.baseurl }}/faithful64x/latest">See Latest Version</a>
<a class="btn block btn-dark" href="{{ site.baseurl }}/faithful64x">See More</a>
</div>
</div>
</div>
Expand Down
15 changes: 5 additions & 10 deletions classicfaithful/32x-jappa.md → packs/cf32j.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
layout: post
layout: pack
no_container: true
title: Classic Faithful 32x Jappa
permalink: /classicfaithful/32x-jappa
header-img: https://database.faithfulpack.net/images/website/posts/cf32x/cf32_banner.jpg
banner: /image/banner/cf32j.jpg
wordmark: /image/home/cf32j.png

long_text: |
text: |
Created as a response to Faithful's changing art style, Classic Faithful 32x aims to preserve and restore Vattic's original “painted” art in its full glory. Most importantly, it also keeps the pack updated, remaking new textures to match the classic style as well.
<br><br>
The Jappa version of Classic Faithful 32x is based on the new, updated Minecraft textures that were introduced in release 1.14, re-interpreted as if Vattic was there to make them himself. Great care has been taken to emulate Vattic's art style as closely as possible.
Expand Down Expand Up @@ -38,11 +40,4 @@ downloads:
1.7.x for Java Edition: https://database.faithfulpack.net/packs/Classic-32x-Java/Jappa/Classic%20Faithful%2032x%20Jappa%20-%201.7.10.zip
1.6.x for Java Edition: https://database.faithfulpack.net/packs/Classic-32x-Java/Jappa/Classic%20Faithful%2032x%20Jappa%20-%201.6.4.zip

- Alternate Listings:
GitHub for Java Edition: https://github.com/classicfaithful/32x-jappa
GitHub for Bedrock Edition: https://github.com/classicfaithful/32x-jappa-bedrock
GitHub for Add-ons: https://github.com/classicfaithful/32x-jappa-add-ons
CurseForge: https://www.curseforge.com/minecraft/texture-packs/classic-faithful-32x-jappa
Planet Minecraft: https://www.planetminecraft.com/texture-pack/classic-faithful-32x

---
17 changes: 6 additions & 11 deletions classicfaithful/32x-programmer-art.md → packs/cf32pa.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
layout: post
title: Classic Faithful 32x PA
layout: pack
no_container: true
title: Classic Faithful 32x Programmer Art
permalink: /classicfaithful/32x-programmer-art
header-img: https://database.faithfulpack.net/images/website/posts/cf32x/cf32pa_banner.jpg
banner: /image/banner/cf32pa.jpg
wordmark: /image/home/cf32pa.png

long_text: |
text: |
Created as a response to Faithful's changing art style, Classic Faithful 32x aims to preserve and restore Vattic's original “painted” art in its full glory. Most importantly, it also keeps the pack updated, remaking new textures to match the classic style as well.
<br><br>
Classic Faithful 32x Programmer Art goes all out on nostalgia! This pack features all the classic textures by Vattic himself. When applicable, textures from after his era have been made consistent with his art as well, oftentimes using complicated reverse-engineering processes to ensure the pack is as accurate as possible. Install this pack for a true blast from the past!
Expand Down Expand Up @@ -36,11 +38,4 @@ downloads:
1.7.x for Java Edition: https://database.faithfulpack.net/packs/Classic-32x-Java/Programmer%20Art/Classic%20Faithful%2032x%20Programmer%20Art%20-%201.7.10.zip
1.6.x for Java Edition: https://database.faithfulpack.net/packs/Classic-32x-Java/Programmer%20Art/Classic%20Faithful%2032x%20Programmer%20Art%20-%201.6.4.zip

- Alternate Listings:
GitHub for Java Edition: https://github.com/classicfaithful/32x-programmer-art
GitHub for Bedrock Edition: https://github.com/classicfaithful/32x-programmer-art-bedrock
GitHub for Add-ons: https://github.com/classicfaithful/32x-programmer-art-add-ons
CurseForge: https://www.curseforge.com/minecraft/texture-packs/classic-faithful-32x-pa
Planet Minecraft: https://www.planetminecraft.com/texture-pack/classic-faithful-32x-pa

---
16 changes: 6 additions & 10 deletions classicfaithful/64x-jappa.md → packs/cf64.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
layout: post
title: Classic Faithful 64x Jappa
layout: pack
no_container: true
title: Classic Faithful 64x
permalink: /classicfaithful/64x-jappa
header-img: https://database.faithfulpack.net/images/website/posts/cf64x/cf64_banner.jpg
banner: /image/banner/cf64.jpg
wordmark: /image/home/cf64.png

long_text: |
text: |
The 64x part in the Classic Faithful lineup, Classic Faithful 64x aims to be a spiritual successor to HiTeeN's original Faithful 64x, as well as many other discontinued 64x projects. Its goal is to bring back the classic “painted” look of Vattic's textures that many players have grown to love over the years, all the while remaking vanilla art in quadruple the resolution.
<br><br>
Being based on the latest Minecraft textures, this pack is perfect for all enjoyers of the classic Faithful style who want a clean and updated experience.
Expand All @@ -25,10 +27,4 @@ downloads:
1.19.3 for Java Edition: https://database.faithfulpack.net/packs/Classic-64x-Java/Jappa/Classic%20Faithful%2064x%20Jappa%20-%201.19.3.zip
1.19.0 - 1.19.2 for Java Edition (CurseForge): https://www.curseforge.com/minecraft/texture-packs/classic-faithful-64x/download/4064436

- Alternate Listings:
GitHub for Java Edition: https://github.com/classicfaithful/64x-jappa
GitHub for Bedrock Edition: https://github.com/classicfaithful/64x-jappa-bedrock
CurseForge: https://www.curseforge.com/minecraft/texture-packs/classic-faithful-64x
Planet Minecraft: https://www.planetminecraft.com/texture-pack/classic-faithful-64x/

---
19 changes: 19 additions & 0 deletions packs/f32.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
layout: pack
no_container: true
title: Faithful 32x
permalink: /faithful32x/
banner: /image/banner/f32.jpg
wordmark: /image/home/f32.png

text: |
The one and only, Faithful 32x boasts a modern, detailed art style that focuses on reimagining textures instead of simply redrawing them, taking full advantage of the higher resolution. Its notable features include a limited palette and a strive for consistency.
<br><br>
The pack has evolved tremendously over the years. Ever since it was originally started by Vattic all the way back in 2010, it has become a cultural icon and has been enjoyed by millions of Minecraft players. Ready to become one of them?
<br><br>
buttons:
- { href: /downloads#Faithful%2032x, text: Downloads }
- { href: /faithful32x/latest, text: View Latest Post }

---
19 changes: 19 additions & 0 deletions packs/f64.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
layout: pack
no_container: true
title: Faithful 64x
permalink: /faithful64x/
banner: /image/banner/f64.jpg
wordmark: /image/home/f64.png

text: |
The logical next step in upscaling Minecraft textures. Just like Faithful 32x, this pack is based on the default art – masterfully remade in quadruple the resolution and adding just the right amount of extra detail for the perfect vanilla-style Minecraft experience.
<br><br>
By basing its textures directly on its 32x counterparts, it achieves great consistency between packs and is always improving in quality. If you're into detailed resource packs but still want that vanilla feel, this pack is for you!
<br><br>
buttons:
- { href: /downloads#Faithful%2064x, text: Downloads }
- { href: /faithful64x/latest, text: View Latest Post }

---

0 comments on commit ece7af8

Please sign in to comment.