diff --git a/doc/landing-page/conf.py b/doc/landing-page/conf.py index 8a351d167..ee3a7cb08 100644 --- a/doc/landing-page/conf.py +++ b/doc/landing-page/conf.py @@ -93,6 +93,14 @@ html_theme = "alabaster" html_css_files = [ + ( + "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/brands.min.css", + {"integrity": "sha512-8RxmFOVaKQe/xtg6lbscU9DU0IRhURWEuiI0tXevv+lXbAHfkpamD4VKFQRto9WgfOJDwOZ74c/s9Yesv3VvIQ==", "crossorigin": "anonymous"}, + ), + ( + "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/fontawesome.min.css", + {"integrity": "sha512-d0olNN35C6VLiulAobxYHZiXJmq+vl+BGIgAxQtD5+kqudro/xNMvv2yIHAciGHpExsIbKX3iLg+0B6d0k4+ZA==", "crossorigin": "anonymous"}, + ), "css/custom.css", ] html_js_files = [ diff --git a/doc/landing-page/index.rst b/doc/landing-page/index.rst index f6723b339..307ac39c2 100644 --- a/doc/landing-page/index.rst +++ b/doc/landing-page/index.rst @@ -113,36 +113,52 @@ You stay in full control of every line. .. grid:: 2 2 4 4 :gutter: 2 - .. grid-item-card:: :material-regular:`terminal;1.75em` Linux + .. grid-item-card:: Linux :text-align: center :class-card: install-card :link: https://github.com/dfetch-org/dfetch/releases/latest :link-type: url + .. raw:: html + + + ``.deb`` · ``.rpm`` - .. grid-item-card:: :material-regular:`laptop_mac;1.75em` macOS + .. grid-item-card:: macOS :text-align: center :class-card: install-card :link: https://github.com/dfetch-org/dfetch/releases/latest :link-type: url + .. raw:: html + + + ``.pkg`` - .. grid-item-card:: :material-regular:`desktop_windows;1.75em` Windows + .. grid-item-card:: Windows :text-align: center :class-card: install-card :link: https://github.com/dfetch-org/dfetch/releases/latest :link-type: url + .. raw:: html + + + ``.msi`` - .. grid-item-card:: :material-regular:`code;1.75em` Python / pip + .. grid-item-card:: Python / pip :text-align: center :class-card: install-card :link: https://pypi.org/project/dfetch/ :link-type: url + .. raw:: html + + + ``pip install dfetch`` diff --git a/doc/landing-page/static/css/custom.css b/doc/landing-page/static/css/custom.css index cf8012220..981fd3773 100644 --- a/doc/landing-page/static/css/custom.css +++ b/doc/landing-page/static/css/custom.css @@ -657,6 +657,14 @@ div.admonition p { margin-bottom: 0.25rem; } +/* Font Awesome brand icons in install cards */ +.install-platform-icon { + font-size: 2rem; + color: var(--primary) !important; + display: block; + margin-bottom: 0.5rem; +} + /* Format tag row (.deb · .rpm / .msi / .pkg / pip install) */ .install-card .sd-card-body > p { font-size: 0.8125rem !important;