update repo template

This commit is contained in:
hazycora 2023-08-02 18:56:35 -05:00
parent a0cda32d67
commit 4ccefe1b15
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E
2 changed files with 28 additions and 4 deletions

View file

@ -1,5 +1,10 @@
* {
box-sizing: border-box;
}
p {
margin: 0;
margin: 0px;
margin-block: 0px;
}
.main {
@ -36,3 +41,22 @@ p {
width: 120px;
height: 120px;
}
.author {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 2.5rem;
color: #bdb0cc;
}
.author .username {
font-size: 1.75rem;
color: #776d83;
}
.repo .repo-name {
font-weight: 800;
font-size: 4.5rem;
line-height: 1.2em;
}

View file

@ -1,9 +1,9 @@
<% layout('layout') %>
<div class="main">
<div class="contents">
<div class="info">
<p style="font-size: 36px; color: #9A8FA7;"><%= it.repo.owner.full_name %> @<%= it.repo.owner.login %></p>
<p style="font-weight: 800; font-size: 4.5rem; line-height: 1.2em;"><%= it.repo.name %></p>
<div class="info repo">
<p class="author"><span><%= it.repo.owner.full_name %></span><span class="username">@<%= it.repo.owner.login %></span></p>
<p class="repo-name"><%= it.repo.name %></p>
<% if (it.repo.description) { %>
<p style="font-size: 42px; font-weight: 500; color: #9A8FA7;"><%= it.repo.description %></p>
<% } %>