Changed directory structure for gh pages

This commit is contained in:
天クマ 2025-10-28 07:38:44 -03:00
commit d249a982ef
61 changed files with 15 additions and 12 deletions

19
src/_includes/author.njk Normal file
View file

@ -0,0 +1,19 @@
---
layout: "skeleton.njk"
styles: ["project"]
---
<div id="project">
<div id="projectHeader">
<img src="{{ page.dir }}{{ logoName }}.{{ logoExtension }}">
<div id="projectTitleSubtitle">
<div id="projectTitleAuthor">
<h1 id="projectTitle">{{ name }}</h1>
</div>
<p id="projectSubtitle">{{ subtitle }}</p>
</div>
</div>
{% include "project_image.njk" %}
<main id="projectDescription">
{{ content | safe }}
</main>
</div>

7
src/_includes/base.njk Normal file
View file

@ -0,0 +1,7 @@
---
layout: "skeleton.njk"
---
<main>
{{ content | safe }}
</main>

10
src/_includes/docs.njk Normal file
View file

@ -0,0 +1,10 @@
---
layout: skeleton.njk
---
<main>
<p>You are seeing the documentation for: <a href="{{ projectData.url }}">{{ projectData.fileSlug }}</a></p>
<hr>
<div>
{{ content | safe }}
</div>
</main>

11
src/_includes/error.njk Normal file
View file

@ -0,0 +1,11 @@
---
layout: "base.njk"
---
<h2>{{ page.fileSlug }} - Ouch! We hit a wall.</h2>
<p>{{ errorDescription | safe }}</p>
{% if errorQuote %}
<p class="errorQuote"><i>"{{ errorQuote | safe }}"</i></p>
{% endif %}
{% if content %}
{{ content | safe }}
{% endif %}

View file

@ -0,0 +1,23 @@
{% macro projectShowcase(projects, c) %}
<div id="featured">
<div id="featuredHelper">
{% for project in projects %}
{% for item in c %}
{% if item.fileSlug == project %}
{% set projectData = item %}
<div class="featuredProject">
<a href="/projects/{{ project }}">
<img src="{% if projectData.data.logo %}/projects/{{project}}/{{ projectData.data.logo }}{% else %}/assets/mod-placeholder.png{% endif %}">
</a>
<div>
<p class="featuredProjectName">{{ projectData.data.name }}</p>
<p class="featuredProjectSubtitle">by <a href="/authors/{{ projectData.data.author }}/">{{ projectData.data.author }}</a></p>
<div class="featuredProjectSubtitle dimText">{{ projectData.data.subtitle }}</div>
</div>
</div>
{% endif %}
{% endfor %}
{% endfor %}
</div>
</div>
{% endmacro %}

17
src/_includes/header.njk Normal file
View file

@ -0,0 +1,17 @@
<header>
<div id="linksBox">
<div id="headerLinksAndTitle">
<div id="logoTitle">
<img src="/assets/logo.png" id="logo">
<h1 id="title" class="rainbowText">neoBeta</h1>
</div>
<ul id="headerLinks">
<li><a href="/">home</a></li>
<li><a href="/search">search</a></li>
<li><a href="/allprojects">index</a></li>
<li><a href="/contribute">contribute</a></li>
</ul>
</div>
<p id="credits">Adrian Victor, 2025 (<a href="https://git.disroot.org/adrianvictor/neoBeta">Unlicense</a>)</p>
</div>
</header>

52
src/_includes/project.njk Normal file
View file

@ -0,0 +1,52 @@
---
layout: "skeleton.njk"
styles: ["project"]
---
<div id="project">
<div id="projectHeader">
{% if logo %}
<img src="{{ page.dir }}{{ logo }}">
{% endif %}
<div id="projectTitleSubtitle">
<div id="projectTitleAuthor">
<h1 id="projectTitle">{{ name }}</h1>
<p id="projectAuthor">by <a href="/authors/{{ author }}">{{ author }}</a></p>
</div>
<p id="projectSubtitle">{{ subtitle }}</p>
</div>
<a id="downloadLink" href="{{ downloadLink }}"><button id="downloadButton">{% if downloadLink %}Download{% else %}Unavailable{% endif %}</button></a>
</div>
{% if links or docs or images or releases %}
<div id="projectImagesAndInfo">
{% include "project_image.njk" %}
<div id="projectInfo">
<h2>Here's what we found:</h2>
{% if links %}
<p>{{ links | length }} links.</p>
<ul>
{% for label, addr in links %}
<li><a href="{{ addr }}">{{ label }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% if docs %}
<p>{{ docs | length }} documentaion files.</p>
<ul>
{% for label, addr in docs %}
<li><a href="{{ addr }}">{{ label }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
{% endif %}
<main id="projectDescription">
{% if content %}
{{ content | safe }}
{% else %}
<h2>Oopsie! :<</h2>
<p>Seems like we don't have a description for this project.</p>
<p class="errorQuote"><i>"If only the clockworks could speak<br>I wouldn't be so alone"</i></p>
{% endif %}
</main>
</div>

View file

@ -0,0 +1,10 @@
{% if images %}
<div id="projectImageCarrousel">
<p>Images</p>
<div id="projectCarrouselImageHolder">
{% for image in images %}
<a href="{{ page.dir }}{{ image }}"><img class="projectImage" src="{{ page.dir }}{{ image }}" alt=""></a>
{% endfor %}
</div>
</div>
{% endif %}

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/assets/stylesheets/styles.css" media="screen">
{% for stylesheet in styles %}
<link rel="stylesheet" href="/assets/stylesheets/{{ stylesheet }}.css">
{% endfor %}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% if name %}{{ name }} - {% endif %}neoBeta</title>
</head>
<body>
<div id="everythingHelper">
<aside>
{% include "header.njk" %}
</aside>
{{ content | safe }}
</div>
</body>
</html>