mirror of https://github.com/AMT-Cheif/drift.git
Add Flutter favorite icon to website
This commit is contained in:
parent
34d0ed5db2
commit
523ae98b40
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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" %}
|
||||
|
|
|
@ -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 |
Loading…
Reference in New Issue