Skip to content

Commit deb5509

Browse files
committed
feat(ux): improve home page, and add contact us
1 parent d09e0ea commit deb5509

File tree

9 files changed

+53
-17
lines changed

9 files changed

+53
-17
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ report.html
1818

1919
# Local Netlify folder
2020
.netlify
21+
working/

src/_data/navigation.json

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"text": "About",
55
"url": "/about/"
66
},
7+
{
8+
"text": "Contact",
9+
"url": "/contact/"
10+
},
711
{
812
"text": "Projects",
913
"url": "/projects/"

src/_includes/layouts/base.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
{% include "partials/site-head.html" %}
55
</head>
66
<body
7-
class="flex min-h-screen flex-col bg-gray-900 bg-tile-dark bg-[length:64px_64px]"
7+
class="flex min-h-screen flex-col items-center bg-gray-900 bg-tile-dark bg-[length:64px_64px]"
88
style="image-rendering: optimizeSpeed; image-rendering: pixelated"
99
data-env="{{ node.env }}"
1010
>
11-
{% include "partials/site-header.html" %} {% block content %}{% endblock %}
11+
<div class="flex w-full max-w-screen-hd grow flex-col">
12+
{% include "partials/site-header.html" %} {% block content %}{% endblock
13+
%}
14+
</div>
1215

1316
<script type="module" src="/main.js"></script>
1417
</body>

src/_includes/partials/site-header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</svg>
5757
</summary>
5858
<div
59-
class="absolute left-0 top-16 flex w-screen flex-col items-center gap-4 bg-gray-800 p-4 text-center"
59+
class="absolute left-0 top-16 flex w-screen flex-col items-center gap-4 bg-black/40 p-4 text-center backdrop-blur-lg"
6060
>
6161
<ul class="text-2xl">
6262
{% include "partials/navigation.html"%}

src/contact.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
layout: 'layouts/home.html'
3+
title: 'About'
4+
---
5+
# Contact Us
6+
7+
[Join our Discord](https://discord.gg/8AUCx5exKF)
8+
9+
## Gears
10+
- [Github](https://github.com/GearsDatapacks)
11+
- Discord: `gearsdatapacks`
12+
- Email: `gearsofficial (at) proton.me`
13+
14+
## Moxvallix
15+
- [Github](https://github.com/moxvallix)
16+
- [Mastodon](https://mastodon.online/@moxvallix)
17+
- Discord: `moxvallix`
18+
- Email: `dev (at) moxvallix.com`

src/images/promo.png

1.9 MB
Loading

src/index.html

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{% layout "layouts/base.html" %} {% block content %}
2+
<main
3+
id="main-content"
4+
class="flex grow flex-col items-center bg-promo bg-cover bg-center bg-no-repeat"
5+
>
6+
<div class="mx-2 mt-12 rounded-lg bg-black/20 p-4 backdrop-blur-md lg:mt-64">
7+
<h1 class="mb-2 text-3xl font-bold sm:text-5xl lg:text-7xl">
8+
Welcome to datapack.dev
9+
</h1>
10+
<p class="text-lg sm:text-3xl">
11+
We are GMDU, and we make technical datapacks for Minecraft.
12+
</p>
13+
<ul class="mt-4 text-left text-lg sm:text-2xl">
14+
<li>Want to find out more? <a href="/about/">About Us</a>.</li>
15+
<li>Want to reach out? <a href="/contact/">Contact Us</a>.</li>
16+
<li>
17+
Curious about what we have made?
18+
<a href="/projects/">See our Projects</a>.
19+
</li>
20+
</ul>
21+
</div>
22+
</main>
23+
{% endblock %}

src/index.md

-14
This file was deleted.

tailwind.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module.exports = {
2525
},
2626
backgroundImage: {
2727
'tile-dark': 'url("/images/bg_tile.png")',
28+
promo: 'url("/images/promo.png")',
2829
},
2930
},
3031
},

0 commit comments

Comments
 (0)