From 4e85732ed8cb313f5a52478f8b9f41fbc441e6f0 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 13 Oct 2023 20:53:40 +0200 Subject: [PATCH] /contrib done! --- static/css/contrib.css | 35 ++++++++++++++++++++ templates/contrib.html | 75 +++++++++++++++++++++++++++++------------- 2 files changed, 87 insertions(+), 23 deletions(-) create mode 100644 static/css/contrib.css diff --git a/static/css/contrib.css b/static/css/contrib.css new file mode 100644 index 0000000..c93caf3 --- /dev/null +++ b/static/css/contrib.css @@ -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: ""; +} diff --git a/templates/contrib.html b/templates/contrib.html index 460c89b..b1c5085 100644 --- a/templates/contrib.html +++ b/templates/contrib.html @@ -2,41 +2,70 @@ {{>head.html}} +
{{>navbar.html}}
- {{#data}} {{#error}} + {{#data}}
-

Github ne veut pas que tu vois ces informations...

- - {{/error}} {{^error}} -
-

Mes contributions

- +

Mes contributions GitHub

+ {{#error}} +

GitHub ne veut pas que tu vois ces informations...

+ {{/error}} {{^error}} + + {{#projects}} -

{{name}}

-

+

{{name}}

+
    {{#pulls_merged}} - #{{id}} +
  • + +

    + #{{id}}

    +
  • + {{/pulls_merged}} -

    +
{{/projects}} -

En attente

-

+ +

En attente

+ + +

Non mergées

+
{{/error}} {{/data}} {{>footer.html}}