From 1988f0d324a6789ba6a85735ce4dbc37f7553f3c Mon Sep 17 00:00:00 2001 From: Bauke Date: Fri, 31 Jul 2020 19:46:30 +0200 Subject: [PATCH] Add a Libraries page. --- package.json | 2 +- source/css/index.css | 10 ++++- source/css/libraries.css | 43 ++++++++++++++++++++ source/libraries/index.html | 80 +++++++++++++++++++++++++++++++++++++ 4 files changed, 132 insertions(+), 3 deletions(-) create mode 100644 source/css/libraries.css create mode 100644 source/libraries/index.html diff --git a/package.json b/package.json index 63fcc20..7dcc00c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bauke.xyz", "description": "My personal website.", - "version": "0.1.4", + "version": "0.1.5", "author": "Bauke ", "homepage": "https://bauke.xyz", "repository": "https://git.holllo.cc/Bauke/bauke.xyz", diff --git a/source/css/index.css b/source/css/index.css index 658ba55..a7153a4 100644 --- a/source/css/index.css +++ b/source/css/index.css @@ -20,13 +20,15 @@ main { padding: 16px; } -h1 { +h1, +h2 { background-color: #2a2041; - margin: 0; padding: 16px; width: 100%; } +h1, +h2, p { margin: 0; } @@ -51,6 +53,10 @@ a:focus { outline: none; } +img { + display: inline-block; +} + main, footer, h1, diff --git a/source/css/libraries.css b/source/css/libraries.css new file mode 100644 index 0000000..dd869d1 --- /dev/null +++ b/source/css/libraries.css @@ -0,0 +1,43 @@ +.libraries { + background-color: transparent; + border: none; + padding: 0; +} + +.libraries li { + background-color: #2a2041; + padding: 16px; +} + +.libraries a { + margin-bottom: 8px; +} + +.libraries a:hover { + background-color: #3bd18a; +} + +.libraries .badges { + display: flex; + gap: 8px; +} + +#npm, +.libraries li.npm { + border: 1px solid #f99fb1; +} + +.npm a { + background-color: #f99fb1; + color: #1f1731; +} + +#crates, +.libraries li.crates { + border: 1px solid #96c839; +} + +.crates a { + background-color: #96c839; + color: #1f1731; +} diff --git a/source/libraries/index.html b/source/libraries/index.html new file mode 100644 index 0000000..bb6d19d --- /dev/null +++ b/source/libraries/index.html @@ -0,0 +1,80 @@ + + + + + + + Libraries + + + + + + +
+

Libraries

+ +

Crates.io

+
    +
  • + opml +

    + Crates.io version + Crates.io recent downloads + Crates.io license +

    +
  • +
+ +
+ +

npm

+ +
+ + + + +