diff --git a/src/data/mockPackages.json b/src/data/mockPackages.json deleted file mode 100644 index a9b2b75..0000000 --- a/src/data/mockPackages.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "name": "sqlite", - "thumb_image_url": "/Images/package-thumb-nolabel.jpg", - "version": "V 2.4", - "installs": "12", - "maintainer": "axoel", - "slug": "sqlite" - }, - { - "name": "unicode.org", - "thumb_image_url": "/Images/package-thumb-nolabel.jpg", - "version": "V 2.4", - "installs": "432", - "maintainer": "pascal", - "slug": "unicode" - }, - { - "name": "tukaani.org/xz", - "thumb_image_url": "/Images/package-thumb-nolabel.jpg", - "version": "V 2.4", - "installs": "23", - "maintainer": "pascal", - "slug": "xz" - }, - { - "name": "bytereef.org/mpdecimal", - "thumb_image_url": "/Images/package-thumb-nolabel.jpg", - "version": "V 2.4", - "installs": "125673", - "maintainer": "pascal", - "slug": "mpdecimal" - } -] \ No newline at end of file diff --git a/src/data/packages.json b/src/data/packages.json new file mode 100644 index 0000000..46cadfe --- /dev/null +++ b/src/data/packages.json @@ -0,0 +1,122 @@ +[ + { + "name": "mpdecimal", + "full_name": "mpdecimal", + "desc": "Library for decimal floating point arithmetic", + "homepage": "https://www.bytereef.org/mpdecimal/", + "version": "2.5.1", + "installs": 3986221, + "maintainer": "", + "thumb_image_url": "/Images/package-thumb-nolabel.jpg" + }, + { + "name": "svg2png", + "full_name": "svg2png", + "desc": "SVG to PNG converter", + "homepage": "https://cairographics.org/", + "version": "0.1.3", + "installs": 1233, + "maintainer": "pascal", + "thumb_image_url": "/Images/package-thumb-nolabel4.jpg" + }, + { + "name": "cmake", + "full_name": "cmake", + "desc": "Cross-platform make", + "homepage": "https://www.cmake.org/", + "version": "3.24.2", + "installs": 1729267, + "maintainer": "pascal", + "thumb_image_url": "/Images/package-thumb-nolabel3.jpg" + }, + { + "name": "h2c", + "full_name": "h2c", + "desc": "Headers 2 curl", + "homepage": "https://curl.se/h2c/", + "version": "1.0", + "installs": 96, + "maintainer": "h2o", + "thumb_image_url": "/Images/package-thumb-nolabel.jpg" + }, + { + "name": "libmagic", + "full_name": "libmagic", + "desc": "Implementation of the file(1) command", + "homepage": "https://www.darwinsys.com/file/", + "version": "5.43", + "installs": 162436, + "maintainer": "", + "thumb_image_url": "/Images/package-thumb-nolabel3.jpg" + }, + { + "name": "deno", + "full_name": "deno", + "desc": "Secure runtime for JavaScript and TypeScript", + "homepage": "https://deno.land/", + "version": "1.26.1", + "installs": 204033, + "maintainer": "Ryan Dahl", + "thumb_image_url": "/Images/package-thumb-nolabel2.jpg" + }, + { + "name": "fontconfig", + "full_name": "fontconfig", + "desc": "XML-based font configuration API for X Windows", + "homepage": "https://wiki.freedesktop.org/www/Software/fontconfig/", + "version": "2.14.0", + "installs": 2485083, + "maintainer": "Max Miedinger", + "thumb_image_url": "/Images/package-thumb-nolabel.jpg" + }, + { + "name": "pkg-config", + "full_name": "pkg-config", + "desc": "Manage compile and link flags for libraries", + "homepage": "https://freedesktop.org/wiki/Software/pkg-config/", + "version": "0.29.2", + "installs": 2634164, + "maintainer": "pascal", + "thumb_image_url": "/Images/package-thumb-nolabel4.jpg" + }, + { + "name": "shared-mime-info", + "full_name": "shared-mime-info", + "desc": "Database of common MIME types", + "homepage": "https://wiki.freedesktop.org/www/Software/shared-mime-info", + "version": "2.2", + "installs": 642619, + "maintainer": "Mr.Mime", + "thumb_image_url": "/Images/package-thumb-nolabel3.jpg" + }, + { + "name": "ttfautohint", + "full_name": "ttfautohint", + "desc": "Auto-hinter for TrueType fonts", + "homepage": "https://www.freetype.org/ttfautohint/", + "version": "1.8.4", + "installs": 4696, + "maintainer": "pascal", + "thumb_image_url": "/Images/package-thumb-nolabel.jpg" + }, + { + "name": "numactl", + "full_name": "numactl", + "desc": "NUMA support for Linux", + "homepage": "https://github.com/numactl/numactl", + "version": "2.0.16", + "installs": 1120, + "maintainer": "FSS", + "thumb_image_url": "/Images/package-thumb-nolabel2.jpg" + }, + { + "name": "flex", + "full_name": "flex", + "desc": "Fast Lexical Analyzer, generates Scanners (tokenizers)", + "homepage": "https://github.com/westes/flex", + "version": "2.6.4", + "installs": 35001, + "maintainer": "", + "thumb_image_url": "/Images/package-thumb-nolabel4.jpg" + } +] \ No newline at end of file diff --git a/src/layouts/partials/detail-btn.html b/src/layouts/partials/detail-btn.html index a3807cd..424e44c 100644 --- a/src/layouts/partials/detail-btn.html +++ b/src/layouts/partials/detail-btn.html @@ -8,8 +8,9 @@ padding-top: 0.279vw; text-decoration: none; text-transform: uppercase; - width: 48%; + width: 134px; height: 2.232vw; + min-height: 34px; transition: 0.1s linear; } @@ -35,6 +36,6 @@ - + \ No newline at end of file diff --git a/src/layouts/partials/package-grid.html b/src/layouts/partials/package-grid.html index f76c8f3..6d92fb4 100644 --- a/src/layouts/partials/package-grid.html +++ b/src/layouts/partials/package-grid.html @@ -14,7 +14,7 @@
- {{ range $.Site.Data.mockPackages }} + {{ range $.Site.Data.packages }} {{- partial "package-thumbnail.html" .}} {{ end }}
diff --git a/src/layouts/partials/package-thumbnail.html b/src/layouts/partials/package-thumbnail.html index 0bba839..e818442 100644 --- a/src/layouts/partials/package-thumbnail.html +++ b/src/layouts/partials/package-thumbnail.html @@ -4,21 +4,25 @@
tea

{{- .name -}}

-

• {{- .maintainer -}}

+ {{ if not (eq .maintainer "") }} +

• {{- .maintainer -}}

+ {{end}}

- {{- .version -}} + V {{- .version -}} +

{{- partial "detail-btn.html" . -}}
- +
@@ -64,6 +68,7 @@ } .thumbnail-body{ + display: flex; border-radius: 0px !important; padding: 0vw; } diff --git a/src/layouts/partials/swiper.html b/src/layouts/partials/swiper.html index e99153d..b3dd9e9 100644 --- a/src/layouts/partials/swiper.html +++ b/src/layouts/partials/swiper.html @@ -11,7 +11,7 @@
- {{ range $.Site.Data.mockPackages }} + {{ range $.Site.Data.packages }}
{{- partial "package-thumbnail.html" .}}
diff --git a/src/static/Images/package-thumb-nolabel2.jpg b/src/static/Images/package-thumb-nolabel2.jpg new file mode 100644 index 0000000..729f887 Binary files /dev/null and b/src/static/Images/package-thumb-nolabel2.jpg differ diff --git a/src/static/Images/package-thumb-nolabel3.jpg b/src/static/Images/package-thumb-nolabel3.jpg new file mode 100644 index 0000000..41e008f Binary files /dev/null and b/src/static/Images/package-thumb-nolabel3.jpg differ diff --git a/src/static/Images/package-thumb-nolabel4.jpg b/src/static/Images/package-thumb-nolabel4.jpg new file mode 100644 index 0000000..6537fd1 Binary files /dev/null and b/src/static/Images/package-thumb-nolabel4.jpg differ