Skip to content

Commit

Permalink
feat: ✨ Add robots meta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Aug 12, 2024
1 parent d3103ae commit 4828abc
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/aeweb_mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
- name: Build web app
run: flutter build web --web-renderer canvaskit --release --dart-define=ENV=prod

- name: Inject meta robots tag if in test environment
run: |
sed -i 's/<!-- #robotsMetaTag -->//' build/web/index.html
- name: Check files
run: |
ls -R
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/aeweb_testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
- name: Build web app
run: flutter build web --web-renderer canvaskit --release --dart-define=ENV=test

- name: Inject meta robots tag if in test environment
run: |
sed -i 's/<!-- #robotsMetaTag -->/<meta name="robots" content="noindex">/' build/web/index.html
- name: Check files
run: |
ls -R
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: aedex
description: Enable direct peer-to-peer trading of digital assets on the Archethic blockchain, eliminating the need for centralized intermediaries.
publish_to: "none"

version: 1.1.3+77
version: 1.1.4+78

environment:
sdk: ">=3.3.0 <4.0.0"
Expand Down
2 changes: 2 additions & 0 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="aeSwap">
<link rel="apple-touch-icon" href="icons/Icon-192.png">
<!-- Placeholder for meta robots -->
<!-- #robotsMetaTag -->

<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="favicon.svg">
Expand Down
39 changes: 27 additions & 12 deletions web_wasm/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!DOCTYPE html><html><head>
<!DOCTYPE html>
<html>

<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
Expand All @@ -23,6 +26,8 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="aedex">
<link rel="apple-touch-icon" href="icons/Icon-192.png">
<!-- Placeholder for meta robots -->
<!-- #robotsMetaTag -->

<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png">
Expand All @@ -38,7 +43,7 @@
margin: 0;
min-height: 100%;
background-color: #000000;
background-size: 100% 100%;
background-size: 100% 100%;
}

.center {
Expand All @@ -51,19 +56,22 @@
}

.contain {
display:block;
width:100%; height:100%;
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}

.stretch {
display:block;
width:100%; height:100%;
display: block;
width: 100%;
height: 100%;
}

.cover {
display:block;
width:100%; height:100%;
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}

Expand Down Expand Up @@ -96,13 +104,20 @@
</script>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
</head>

<body>
<picture id="splash">
<source srcset="splash/img/light-1x.png 1x, splash/img/light-2x.png 2x, splash/img/light-3x.png 3x, splash/img/light-4x.png 4x" media="(prefers-color-scheme: light)">
<source srcset="splash/img/dark-1x.png 1x, splash/img/dark-2x.png 2x, splash/img/dark-3x.png 3x, splash/img/dark-4x.png 4x" media="(prefers-color-scheme: dark)">
<img class="center" aria-hidden="true" src="splash/img/light-1x.png" alt="">
<source
srcset="splash/img/light-1x.png 1x, splash/img/light-2x.png 2x, splash/img/light-3x.png 3x, splash/img/light-4x.png 4x"
media="(prefers-color-scheme: light)">
<source
srcset="splash/img/dark-1x.png 1x, splash/img/dark-2x.png 2x, splash/img/dark-3x.png 3x, splash/img/dark-4x.png 4x"
media="(prefers-color-scheme: dark)">
<img class="center" aria-hidden="true" src="splash/img/light-1x.png" alt="">
</picture>
<script src="flutter_bootstrap.js" async=""></script>


</body></html>
</body>

</html>

0 comments on commit 4828abc

Please sign in to comment.