summaryrefslogtreecommitdiff
path: root/htdocs
diff options
context:
space:
mode:
authorMinteck <minteck@phoenixnet.tech>2021-11-03 15:19:32 +0100
committerMinteck <minteck@phoenixnet.tech>2021-11-03 15:19:32 +0100
commit92f889fe2e8662b8f66329ec1d32961942812605 (patch)
tree104e00069998406208b835664002b69daa55c81a /htdocs
parent6b0d3fec160ae88aede4c53ca39ed37570838703 (diff)
downloadrainbow-92f889fe2e8662b8f66329ec1d32961942812605.tar.gz
rainbow-92f889fe2e8662b8f66329ec1d32961942812605.tar.bz2
rainbow-92f889fe2e8662b8f66329ec1d32961942812605.zip
Finally fix Gitea
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/public/assets/css/main.css41
-rw-r--r--htdocs/public/assets/icons/about.svg4
-rw-r--r--htdocs/public/assets/icons/contact.svg4
-rw-r--r--htdocs/public/assets/icons/project.svg4
-rw-r--r--htdocs/public/assets/icons/projects.svg4
-rw-r--r--htdocs/public/index.ejs14
-rw-r--r--htdocs/public/projects/index.ejs34
7 files changed, 102 insertions, 3 deletions
diff --git a/htdocs/public/assets/css/main.css b/htdocs/public/assets/css/main.css
index b9f63a8..06a24cd 100644
--- a/htdocs/public/assets/css/main.css
+++ b/htdocs/public/assets/css/main.css
@@ -104,6 +104,10 @@ a.big-button-bg2 {
background: #222;
}
+a.big-button-bg3 {
+ background: #151515;
+}
+
.big-button {
transition: color 200ms, background 200ms, opacity 200ms;
color: white;
@@ -163,4 +167,41 @@ a.big-button-bg2 {
html, body, #intro, #main {
overflow-x: hidden;
+}
+
+.project {
+ background: #151515;
+ border: 1px solid #333;
+ padding: 20px;
+ border-radius: 5px;
+}
+
+.project-name {
+ margin: 10px 0;
+ text-align: center;
+}
+
+.project-icon {
+ width: 64px;
+ height: 64px;
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+.project-description, .project-buttons {
+ text-align: center;
+}
+
+.project-buttons {
+ margin-top: 30px;
+}
+
+.main-icon {
+ width: 64px;
+ margin-top: 10px;
+}
+
+.main-icon-sub {
+ margin-top: 10px;
} \ No newline at end of file
diff --git a/htdocs/public/assets/icons/about.svg b/htdocs/public/assets/icons/about.svg
new file mode 100644
index 0000000..db1b903
--- /dev/null
+++ b/htdocs/public/assets/icons/about.svg
@@ -0,0 +1,4 @@
+<svg width="24" height="24" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M12 1.999c5.524 0 10.002 4.478 10.002 10.002 0 5.523-4.478 10.001-10.002 10.001-5.524 0-10.002-4.478-10.002-10.001C1.998 6.477 6.476 1.999 12 1.999Zm0 1.5a8.502 8.502 0 1 0 0 17.003A8.502 8.502 0 0 0 12 3.5Zm-.004 7a.75.75 0 0 1 .744.648l.007.102.003 5.502a.75.75 0 0 1-1.493.102l-.007-.101-.003-5.502a.75.75 0 0 1 .75-.75ZM12 7.003a.999.999 0 1 1 0 1.997.999.999 0 0 1 0-1.997Z"
+ fill="#fff"/>
+</svg> \ No newline at end of file
diff --git a/htdocs/public/assets/icons/contact.svg b/htdocs/public/assets/icons/contact.svg
new file mode 100644
index 0000000..2444e8d
--- /dev/null
+++ b/htdocs/public/assets/icons/contact.svg
@@ -0,0 +1,4 @@
+<svg width="24" height="24" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M19.75 4A2.25 2.25 0 0 1 22 6.25v11.505a2.25 2.25 0 0 1-2.25 2.25H4.25A2.25 2.25 0 0 1 2 17.755V6.25A2.25 2.25 0 0 1 4.25 4h15.5Zm0 1.5H4.25a.75.75 0 0 0-.75.75v11.505c0 .414.336.75.75.75h15.5a.75.75 0 0 0 .75-.75V6.25a.75.75 0 0 0-.75-.75Zm-10 7a.75.75 0 0 1 .75.75v.493l-.008.108c-.163 1.113-1.094 1.65-2.492 1.65s-2.33-.537-2.492-1.65l-.008-.11v-.491a.75.75 0 0 1 .75-.75h3.5Zm3.502.496h4.498a.75.75 0 0 1 .102 1.493l-.102.007h-4.498a.75.75 0 0 1-.102-1.493l.102-.007h4.498-4.498ZM8 8.502a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm5.252.998h4.498a.75.75 0 0 1 .102 1.493L17.75 11h-4.498a.75.75 0 0 1-.102-1.493l.102-.007h4.498-4.498Z"
+ fill="#fff"/>
+</svg> \ No newline at end of file
diff --git a/htdocs/public/assets/icons/project.svg b/htdocs/public/assets/icons/project.svg
new file mode 100644
index 0000000..06f4f19
--- /dev/null
+++ b/htdocs/public/assets/icons/project.svg
@@ -0,0 +1,4 @@
+<svg width="24" height="24" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
+ <path d="m18.492 2.33 3.179 3.179a2.25 2.25 0 0 1 0 3.182l-2.584 2.584A2.25 2.25 0 0 1 21 13.5v5.25A2.25 2.25 0 0 1 18.75 21H5.25A2.25 2.25 0 0 1 3 18.75V5.25A2.25 2.25 0 0 1 5.25 3h5.25a2.25 2.25 0 0 1 2.225 1.915L15.31 2.33a2.25 2.25 0 0 1 3.182 0ZM4.5 18.75c0 .414.336.75.75.75l5.999-.001.001-6.75H4.5v6Zm8.249.749h6.001a.75.75 0 0 0 .75-.75V13.5a.75.75 0 0 0-.75-.75h-6.001v6.75Zm-2.249-15H5.25a.75.75 0 0 0-.75.75v6h6.75v-6a.75.75 0 0 0-.75-.75Zm2.25 4.81v1.94h1.94l-1.94-1.94Zm3.62-5.918-3.178 3.178a.75.75 0 0 0 0 1.061l3.179 3.179a.75.75 0 0 0 1.06 0l3.18-3.179a.75.75 0 0 0 0-1.06l-3.18-3.18a.75.75 0 0 0-1.06 0Z"
+ fill="#fff"/>
+</svg> \ No newline at end of file
diff --git a/htdocs/public/assets/icons/projects.svg b/htdocs/public/assets/icons/projects.svg
new file mode 100644
index 0000000..8ee009c
--- /dev/null
+++ b/htdocs/public/assets/icons/projects.svg
@@ -0,0 +1,4 @@
+<svg width="24" height="24" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M4.25 4A2.25 2.25 0 0 0 2 6.25v2.5A2.25 2.25 0 0 0 4.25 11h2.5A2.25 2.25 0 0 0 9 8.75v-2.5A2.25 2.25 0 0 0 6.75 4h-2.5ZM3.5 6.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75v-2.5ZM11.25 5a.75.75 0 0 0 0 1.5h10a.75.75 0 0 0 0-1.5h-10Zm0 3a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7Zm-7 5A2.25 2.25 0 0 0 2 15.25v2.5A2.25 2.25 0 0 0 4.25 20h2.5A2.25 2.25 0 0 0 9 17.75v-2.5A2.25 2.25 0 0 0 6.75 13h-2.5Zm-.75 2.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75v-2.5ZM11.25 14a.75.75 0 0 0 0 1.5h10a.75.75 0 0 0 0-1.5h-10Zm0 3a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7Z"
+ fill="#fff"/>
+</svg> \ No newline at end of file
diff --git a/htdocs/public/index.ejs b/htdocs/public/index.ejs
index e4bdcb2..b5a8c25 100644
--- a/htdocs/public/index.ejs
+++ b/htdocs/public/index.ejs
@@ -36,15 +36,18 @@
<div class="grid-3 stand dont-break-me" id="/main">
<div style="text-align: center;">
- <h2>Projects</h2>
+ <img src="/assets/icons/projects.svg" class="main-icon">
+ <h2 class="main-icon-sub">Projects</h2>
<h3>The kind of weird stuff I do on my free time</h3>
</div>
<div style="text-align: center;">
- <h2>Contact Me</h2>
+ <img src="/assets/icons/contact.svg" class="main-icon">
+ <h2 class="main-icon-sub">Contact Me</h2>
<h3>So, you want to have a chat? With me? Nice! Come say hi.</h3>
</div>
<div style="text-align: center;">
- <h2>About Me</h2>
+ <img src="/assets/icons/about.svg" class="main-icon">
+ <h2 class="main-icon-sub">About Me</h2>
<h3>Oh no, you don't know me! Don't worry, we can solve that!</h3>
</div>
@@ -234,6 +237,11 @@
<h3>I've been doing techy stuff for the last <%- new Date().getFullYear() - 2013 %> years now, that's
loooong!</h3>
</div>
+ <div style="text-align: center;">
+ <h2>Privacy is a right!</h2>
+ <h3>I strive to respect people's privacy, and try not to use services or applications that violate your
+ privacy.</h3>
+ </div>
</div>
</div>
diff --git a/htdocs/public/projects/index.ejs b/htdocs/public/projects/index.ejs
new file mode 100644
index 0000000..4dd2431
--- /dev/null
+++ b/htdocs/public/projects/index.ejs
@@ -0,0 +1,34 @@
+<% 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 legal documents are posted. All the content is signed using a GPG key, it's very important
+ that you check for the validity of the legal content you see on this website, as it may have been compromised.</p>
+
+<div class="grid-3">
+ <% for (let project of JSON.parse(fs.readFileSync("./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`) %> \ No newline at end of file