I guess I'll commit

Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
Odyssey
2022-11-29 17:59:04 +01:00
parent e01ee8ecdc
commit 7dbaef6386
11 changed files with 519 additions and 40 deletions

View File

@@ -4,11 +4,12 @@
<title>GotHub</title>
<link rel="stylesheet" href="/css/global.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
</head>
<body>
<nav>
<div class="navbar">
<a href="/" style="text-decoration: none;"><b class="navbarSlogan">GotHub</b></a>
<a href="/" style="text-decoration: none;" class="brand"><img src="/logo.svg" class="navbarImg" alt="GotHub" /><b class="navbarSlogan">GotHub (alpha)</b></a>
<div class="navbarLinks">
<a href="/explore">Explore</a>
<a href="https://codeberg.org/Odyssium/gothub">Source code</a>

View File

@@ -18,4 +18,6 @@
<p>All content shown on this site are from GitHub. Any issues with content shown on this site needs to be reported to GitHub, not the instance host's internet or domain provider.</p>
<p>This project was made as a "spiritual successor" to <a href="https://riverside.rocks" target="_blank">Riverside Rocks</a>' <a href="/RiversideRocks/1337git" target="_blank">1337git</a> which is, unfortunately, hosted on GitHub. Kinda ironic.</p>
<i>This project does not let you clone GitHub repositories. I would recommend using a VPN if you have to clone a GitHub repository and want to keep yourself private from them instead.</i>
<h3>Credits</h3>
<a href="https://midou36o.github.io">Midou36O</a> - desigining the GotHub logo
</main>

9
views/ratelimit_gt.html Normal file
View File

@@ -0,0 +1,9 @@
{{ template "header" .}}
<main>
<h2>{{.Title}}</h2>
<p>Wait 5 minutes before trying again.</p>
<h2>Info</h2>
<p>GotHub has implemented ratelimits in order to prevent rate-limits by GitHub. You've been hit by the rate limiter.</p>
</main>

View File

@@ -34,6 +34,12 @@
<p class="userBioText">{{.Bio}}</p>
</div>
{{ end }}
{{ if .Readme }}
<div class="userReadme">
<h3>README</h3>
<div class="userReadmeText">{{ unescape .Readme}}</div>
</div>
{{ end }}
{{ end }}
{{ else }}
<h2>User not found</h2>