Restructure template files

This commit is contained in:
HackerNCoder 2022-08-21 13:31:33 +02:00
parent a9e935ed0e
commit d7d3733ec3
4 changed files with 41 additions and 63 deletions

View file

@ -1,16 +1,14 @@
<!-- Contact-->
<section class="contact-section bg-black">
<!-- Contact-->
<section class="contact-section bg-black">
<div class="social d-flex justify-content-center">
<a class="mx-2" href="https://twitter.com/queerscriptors"><i class="fab fa-twitter"></i></a>
<a class="mx-2" href="https://discord.gg/tzbXdkxWYF"><i class="fab fa-discord"></i></a>
<a class="mx-2" href="https://lab.encryptionin.space/hackerncoder/Queerscriptors"><i class="fab fa-git"></i></a>
</div>
</section>
<!-- Footer-->
<footer class="footer bg-black small text-center text-white-50"><div class="container px-4 px-lg-5">Copyright &copy; Queerscriptors 2022</div></footer>
<!-- Bootstrap core JS-->
<script src="{{ '/js/bootstrap.bundle.min.js'|url }}"></script>
<!-- Core theme JS-->
<script src="{{ '/js/scripts.js'|url }}"></script>
</body>
</html>
</section>
<!-- Footer-->
<footer class="footer bg-black small text-center text-white-50"><div class="container px-4 px-lg-5">Copyright &copy; Queerscriptors 2022</div></footer>
<!-- Bootstrap core JS-->
<script src="{{ '/js/bootstrap.bundle.min.js'|url }}"></script>
<!-- Core theme JS-->
<script src="{{ '/js/scripts.js'|url }}"></script>

View file

@ -6,36 +6,15 @@
<div class="container px-4 px-lg-5">
{% for project in projects %}
{% set image = project.attachments.images.first() %}
{% if project.type %}
<!-- Project One Row-->
<div class="row gx-0 mb-5 mb-lg-0 justify-content-center">
<div class="col-lg-6"><img class="img-fluid" src="{{ image|url }}" alt="project image" /></div>
<div class="col-lg-6">
<div class="bg-black text-center h-100 project">
<div class="d-flex h-100">
<div class="project-text w-100 my-auto text-center text-lg-left">
<h4 class="text-white">{{ project.title }}</h4>
<p class="mb-0 text-white-80">{{ project.body }}</p>
<hr class="d-none d-lg-block mb-0 ms-0" />
<a href="https://littleroot.net/weblate/engage/{{project.weblate}}/">
<img src="https://littleroot.net/weblate/widgets/{{project.weblate}}/-/svg-badge.svg" alt="Translation status" />
</a>
</div>
</div>
</div>
</div>
</div>
{% else %}
<!-- Project Two Row-->
<div class="row gx-0 mb-5 mb-md-0 justify-content-center">
<div class="col-lg-6"><img class="img-fluid" src="{{ image|url }}" alt="project image" /></div>
<div class="col-lg-6 order-lg-first">
<div class="col-lg-6 {% if project.type %} order-lg-first {% endif %} ">
<div class="bg-black text-center h-100 project">
<div class="d-flex h-100">
<div class="project-text w-100 my-auto text-center text-lg-right">
<div class="project-text w-100 my-auto text-center">
<h4 class="text-white">{{ project.title }}</h4>
<p class="mb-0 text-white-80">{{ project.body }}</p>
<hr class="d-none d-lg-block mb-0 me-0" />
<hr class="d-none d-lg-block mb-0" />
<a href="https://littleroot.net/weblate/engage/{{project.weblate}}/">
<img src="https://littleroot.net/weblate/widgets/{{project.weblate}}/-/svg-badge.svg" alt="Translation status" />
</a>
@ -44,7 +23,6 @@
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</section>

View file

@ -1,7 +1,12 @@
<!DOCTYPE html>
<html lang="en">
{% include 'meta.html' %}
<body id="page-top">
{% block page %}
{% include 'masterhead.html' %}
{% include 'about.html' %}
{% block projects %}{% endblock %}
{% endblock %}
{% include 'footer.html' %}
</body>
</html>

View file

@ -1,6 +1,4 @@
<!DOCTYPE html>
<html lang="en">
<head>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="{{ this.meta_desc }}" />
@ -13,5 +11,4 @@
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet" />
<!-- Core theme CSS (includes Bootstrap)-->
<link href="{{ '/css/styles.css'|asseturl }}" rel="stylesheet" />
</head>
<body id="page-top">
</head>