Add Flutter favorite icon to website

This commit is contained in:
Simon Binder 2021-12-09 00:21:57 +01:00
parent 34d0ed5db2
commit 523ae98b40
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
4 changed files with 38 additions and 0 deletions

View File

@ -5,3 +5,17 @@
padding: 10px;
background-color: rgba(0, 0, 0, 0.08);
}
.flutter_favorite {
display: none;
}
@media (min-width: 992px) {
.flutter_favorite {
display: block;
position: fixed;
right: 150px;
top: 4rem;
width: 70px;
}
}

View File

@ -3,6 +3,8 @@ page:
title: "Drift - Reactive, typesafe persistence library for Dart"
template: layouts/home.html
path: ""
data:
show_favorites: true
---
{% block "blocks/cover.html" title="Drift: Persistence library for Dart" image_anchor="top" height="med" color="indigo" %}

22
docs/templates/_default/baseof.html vendored Normal file
View File

@ -0,0 +1,22 @@
<!doctype html>
<html lang="{{ site.language }}" class="no-js">
<head>
{% include "partials/head" %}
</head>
<body class="td-{{ kind }}">
<header>
{% include "partials/navbar" %}
</header>
<div class="container-fluid td-default td-outer">
<main role="main" class="td-main">
{{ main }}
</main>
{% include "partials/footer" %}
</div>
{% if page.show_favorites %}
<a href="https://docs.flutter.dev/development/packages-and-plugins/favorites">
<img class="flutter_favorite" src="{{ 'flutter_favorites.png' | absUrl }}" alt="Icon for the Flutter Favorites program">
</a>
{% endif %}
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB