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