Skip to content

Commit

Permalink
[Docs] - Added Flutter and Dart favicon options, also added optional …
Browse files Browse the repository at this point in the history
…Dart logo image.
  • Loading branch information
matthew-carroll committed May 31, 2024
1 parent b4aeb94 commit fd0340f
Show file tree
Hide file tree
Showing 31 changed files with 79 additions and 30 deletions.
1 change: 1 addition & 0 deletions doc/website/source/_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package:
name: golden_bricks
title: Golden Bricks
description: A better font for golden tests
type: flutter
is_on_pub: true
github:
url: https://github.com/flutter-bounty-Hunters/golden_bricks
Expand Down
33 changes: 26 additions & 7 deletions doc/website/source/_includes/layouts/homepage.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,30 @@
<title>{{ title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="apple-touch-icon" sizes="180x180" href="images/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon/favicon-16x16.png">
<link rel="manifest" href="images/favicon/site.webmanifest">
<link rel="mask-icon" href="images/favicon/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="images/favicon/favicon.ico">
{% if package.type == "dart" %}
<!-- Dart favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="images/favicon/dart/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon/dart/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon/dart/favicon-16x16.png">
<link rel="manifest" href="images/favicon/dart/site.webmanifest">
<link rel="shortcut icon" href="images/favicon/dart/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="images/favicon/browserconfig.xml">
<meta name="msapplication-config" content="images/favicon/dart/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
{% endif %}

{% if package.type == "flutter" %}
<!-- Flutter favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="images/favicon/flutter/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon/flutter/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon/flutter/favicon-16x16.png">
<link rel="manifest" href="images/favicon/flutter/site.webmanifest">
<link rel="mask-icon" href="images/favicon/flutter/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="images/favicon/flutter/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="images/favicon/flutter/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
{% endif %}

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
Expand All @@ -35,7 +50,11 @@

<body>
<div id="hero">
{% if package.type == "flutter" %}
<img id="flutterLogo" src="images/branding/flutter-logo.svg" height="48">
{% else %}
<img id="dartLogo" src="images/branding/dart-logo.svg" height="48">
{% endif %}

<div style="flex: 1;">&nbsp;</div>

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/images/favicon/mstile-150x150.png"/>
<square150x150logo src="images/favicon/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"short_name": "",
"icons": [
{
"src": "/images/favicon/android-chrome-192x192.png",
"src": "android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/images/favicon/android-chrome-512x512.png",
"src": "android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
Expand Down
Binary file removed doc/website/source/images/favicon/favicon-16x16.png
Binary file not shown.
Binary file removed doc/website/source/images/favicon/favicon-32x32.png
Binary file not shown.
Binary file removed doc/website/source/images/favicon/favicon.ico
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions doc/website/source/images/favicon/flutter/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="images/favicon/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions doc/website/source/images/favicon/flutter/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions doc/website/source/images/favicon/flutter/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Binary file removed doc/website/source/images/favicon/mstile-150x150.png
Binary file not shown.
18 changes: 0 additions & 18 deletions doc/website/source/images/favicon/safari-pinned-tab.svg

This file was deleted.

2 changes: 1 addition & 1 deletion doc/website/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ testWidgets("renders in golden tests", (tester) async {
});
```

## Built by the Flutter Bounty Hunters
## Built by the<br>Flutter Bounty Hunters
This package was built by the [Flutter Bounty Hunters (FBH)](https://flutterbountyhunters.com).
The Flutter Bounty Hunters is a development agency that works exclusively on open source Flutter
and Dark packages.
Expand Down
2 changes: 1 addition & 1 deletion doc/website/source/styles/homepage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ h1, h2, h3, h4, h5, h6 {

text-align: center;

#flutterLogo {
#flutterLogo, #dartLogo {
margin-left: auto;
margin-right: auto;
}
Expand Down

0 comments on commit fd0340f

Please sign in to comment.