summaryrefslogtreecommitdiff
path: root/htdocs/public/projects/index.ejs
blob: 88749f97e74d8416a527031ac99c456fad7cc5ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<% global.title = "Projects"; %>
<%- include(`${private}/header.ejs`) %>

<a href="/">← Go back home</a>

<hr class="rnbwsquare-separator rnbwsquare-outer">

<h1>Projects</h1>
<p>This is the page where all my active projects are, it is regularly updated from the projects I created on <a
            href="https://source.minteck.org" target="_blank">source.minteck.org</a>. For projects I don't maintain
    anymore, refer to the <a href="/archive">Archives</a> page.</p>

<div class="grid-3 projects">
    <% for (let project of JSON.parse(fs.readFileSync(serverRoot + "/global/gitea.json").toString()).sort((a, b) => a.update - b.update).reverse()) { %>
        <div class="project">
            <img class="project-icon" src="<%- project.icon ?? "/assets/icons/project.svg" %>">
            <h2 class="project-name"><%- project.name %></h2>
            <p class="project-description"><%- project.description %></p>
            <p class="project-buttons">
                <% if (project.website !== null) { %>
                    <a href="<%- project.website %>" target="_blank" class="big-button big-button-bg3 big-button-pt1">Website
                    </a><a
                            href="https://source.minteck.org/<%- project.id %>" target="_blank"
                            class="big-button big-button-bg3 big-button-pt2">View</a>
                <% } else { %>
                    <a
                            href="https://source.minteck.org/<%- project.id %>" target="_blank"
                            class="big-button big-button-bg3">View</a>
                <% } %>
            </p>
        </div>
    <% } %>
</div>

<%- include(`${private}/footer.ejs`) %>