Style rework #35

Merged
Anri merged 70 commits from rework into main 2023-10-15 20:58:23 +02:00
2 changed files with 87 additions and 23 deletions
Showing only changes of commit 4e85732ed8 - Show all commits

35
static/css/contrib.css Normal file
View file

@ -0,0 +1,35 @@
h2 {
padding-left: 1rem;
}
/* Element of lists */
main li {
display: inline-block;
}
main h1,
h2 {
font-weight: 800;
}
/* Links */
main a {
text-decoration: none;
font-weight: 600;
}
main a:hover {
text-decoration: underline;
}
p {
margin: 0;
}
main p::after {
content: ", ";
}
main li:last-child p::after {
content: "";
}

View file

@ -2,41 +2,70 @@
<html class="index" lang="fr">
<head dir="ltr">
{{>head.html}}
<link rel="stylesheet" href="/css/contrib.css" />
</head>
<body>
<header>{{>navbar.html}}</header>
{{#data}} {{#error}}
{{#data}}
<main>
<p>Github ne veut pas que tu vois ces informations...</p>
</div>
{{/error}} {{^error}}
<div id="content">
<h1 class="subtitle">Mes contributions</h1>
<!-- Add URL? -->
<h1>Mes contributions GitHub</h1>
{{#error}}
<p>GitHub ne veut pas que tu vois ces informations...</p>
{{/error}} {{^error}}
<!-- Add URL of projects repo to projects title? -->
{{#projects}}
<h2 class="subtitle">{{name}}</h2>
<p>
<h2>{{name}}</h2>
<ul>
{{#pulls_merged}}
<a target="_blank" title="{{title}} " href="{{url}} ">#{{id}}</a>
<li>
<!-- prettier-ignore -->
<p>
<a
href="{{url}} "
target="_blank"
rel="noreferrer"
title="{{title}} "
>#{{id}}</a></p>
</li>
{{/pulls_merged}}
</p>
</ul>
{{/projects}}
<h1 class="subtitle">En attente</h1>
<p>
<h1>En attente</h1>
<ul>
{{#waiting}} {{#pulls_open}}
<a target="_blank" title="{{title}} " href="{{url}} "
>{{name_repo}}#{{id}}</a
>
<li>
<!-- prettier-ignore -->
<p>
<a
href="{{url}} "
target="_blank"
rel="noreferrer"
title="{{title}} "
>{{name_repo}}#{{id}}</a
></p>
</li>
{{/pulls_open}} {{/waiting}}
</p>
<h1 class="subtitle">Non mergées</h1>
<p>
</ul>
<h1>Non mergées</h1>
<ul>
{{#closed}} {{#pulls_closed}}
<a target="_blank" title="{{title}} " href="{{url}} "
>{{name_repo}}#{{id}}</a
>
<li>
<!-- prettier-ignore -->
<p>
<a
href="{{url}} "
target="_blank"
rel="noreferrer"
title="{{title}} "
>{{name_repo}}#{{id}}</a
></p>
</li>
{{/pulls_closed}} {{/closed}}
</p>
</ul>
</main>
{{/error}} {{/data}} {{>footer.html}}
</body>