Make /explore better.

Signed-off-by: Odyssey <hi@odyssey346.dev>
This commit is contained in:
Odyssey
2023-02-13 16:53:20 +01:00
parent 2202b13dc1
commit 75fa056a48
2 changed files with 14 additions and 3 deletions
+9
View File
@@ -97,6 +97,15 @@ a:hover {
text-overflow: ellipsis;
white-space: wrap;
text-decoration: none;
display: flex;
transition: ease-in-out .25s;
}
.exploreIDontKnowWhatToNameThisDiv:hover {
background-color: var(--secondary-background);
color: var(--text);
}
/* URI: /:user */
+5 -3
View File
@@ -5,8 +5,9 @@
<p><b>25</b> repositories shown, sorted by most stars.</p>
{{ if .repos}}
{{ range $key, $value := .repos}}
<div class="exploreIDontKnowWhatToNameThisDiv">
<a href="/{{.Fullname}}">{{ .Fullname }}</a>
<a href="{{.Fullname}}" class="exploreIDontKnowWhatToNameThisDiv">
<div>
<p>{{.Fullname}}</p>
<p>{{.Description}}</p>
{{ if .Language }}
{{ if .License }}
@@ -21,7 +22,8 @@
<p>⭐ {{.Stars}} 🍴 {{.Forks}} 👀 {{.Watchers}} ⚖️ No license</p>
{{ end }}
{{ end }}
</div>
</div>
</a>
{{ end }}
{{ else }}
<p>There are no trending repositories at the moment.</p>