chore: add mediapipe icon everywhere (#430)

This commit is contained in:
Kirpal Demian
2023-01-23 18:12:26 -05:00
committed by GitHub
parent a5b876dc1d
commit 8b112e7ec7
6 changed files with 27 additions and 1 deletions

View File

@ -31,6 +31,7 @@ const BaseHTMLContext: Record<string, string | Record<string, string>> = {
flutterIcon: bucketPathForFile('public/flutter-icon.png'), flutterIcon: bucketPathForFile('public/flutter-icon.png'),
firebaseIcon: bucketPathForFile('public/firebase-icon.png'), firebaseIcon: bucketPathForFile('public/firebase-icon.png'),
tensorflowIcon: bucketPathForFile('public/tensorflow-icon.png'), tensorflowIcon: bucketPathForFile('public/tensorflow-icon.png'),
mediapipeIcon: bucketPathForFile('public/mediapipe-icon.png'),
holocard: bucketPathForFile('public/holocard.png'), holocard: bucketPathForFile('public/holocard.png'),
notFoundBg: bucketPathForFile('public/not-found-bg.png'), notFoundBg: bucketPathForFile('public/not-found-bg.png'),
notFoundMobileBg: bucketPathForFile('public/not-found-mobile-bg.png'), notFoundMobileBg: bucketPathForFile('public/not-found-mobile-bg.png'),

View File

@ -17,6 +17,11 @@ export default `
<img class="tensorflow-icon" src={{assetUrls.tensorflowIcon}} /> <img class="tensorflow-icon" src={{assetUrls.tensorflowIcon}} />
</a> </a>
</li> </li>
<li>
<a href="https://developers.google.com/mediapipe">
<img class="tensorflow-icon" src={{assetUrls.mediapipeIcon}} />
</a>
</li>
</ul> </ul>
</div> </div>
<div class="right"> <div class="right">

View File

@ -89,6 +89,9 @@ export default `
<a href="https://www.tensorflow.org/js/" class="player-btn"> <a href="https://www.tensorflow.org/js/" class="player-btn">
<img class="tensorflow-icon" src={{assetUrls.tensorflowIcon}} /> <img class="tensorflow-icon" src={{assetUrls.tensorflowIcon}} />
</a> </a>
<a href="https://developers.google.com/mediapipe" class="player-btn">
<img class="mediapipe-icon" src={{assetUrls.mediapipeIcon}} />
</a>
<a href="#" class="player-btn fullscreen-button"> <a href="#" class="player-btn fullscreen-button">
<img class="tensorflow-icon" src={{assetUrls.playerFullscreen}} /> <img class="tensorflow-icon" src={{assetUrls.playerFullscreen}} />
</a> </a>

View File

@ -172,6 +172,11 @@ footer ul li img.tensorflow-icon {
height: 24px; height: 24px;
} }
footer ul li img.mediapipe-icon {
width: 24px;
height: 24px;
}
footer .left a { footer .left a {
margin-right: 16px; margin-right: 16px;
} }
@ -331,6 +336,12 @@ footer .right a {
.right-side-controls .tensorflow-icon { .right-side-controls .tensorflow-icon {
width: 20px; width: 20px;
height: 22px; height: 22px;
margin-right: 6px;
}
.right-side-controls .mediapipe-icon {
width: 20px;
height: 20px;
margin-right: 18px; margin-right: 18px;
} }

View File

@ -27,7 +27,9 @@ class SimplifiedFooter extends StatelessWidget {
SizedBox(width: _separationSize), SizedBox(width: _separationSize),
FirebaseIconLink(), FirebaseIconLink(),
SizedBox(width: _separationSize), SizedBox(width: _separationSize),
TensorflowIconLink() TensorflowIconLink(),
SizedBox(width: _separationSize),
MediapipeIconLink(),
], ],
), ),
); );
@ -43,6 +45,8 @@ class SimplifiedFooter extends StatelessWidget {
const FirebaseIconLink(), const FirebaseIconLink(),
const SizedBox(width: _separationSize), const SizedBox(width: _separationSize),
const TensorflowIconLink(), const TensorflowIconLink(),
const SizedBox(width: _separationSize),
const MediapipeIconLink(),
if (!_platformHelper.isMobile) ...[ if (!_platformHelper.isMobile) ...[
const Spacer(), const Spacer(),
const MuteButton(), const MuteButton(),

View File

@ -25,6 +25,7 @@ void main() {
expect(find.byType(FlutterIconLink), findsOneWidget); expect(find.byType(FlutterIconLink), findsOneWidget);
expect(find.byType(FirebaseIconLink), findsOneWidget); expect(find.byType(FirebaseIconLink), findsOneWidget);
expect(find.byType(TensorflowIconLink), findsOneWidget); expect(find.byType(TensorflowIconLink), findsOneWidget);
expect(find.byType(MediapipeIconLink), findsOneWidget);
}, },
); );
@ -42,6 +43,7 @@ void main() {
expect(find.byType(FlutterIconLink), findsOneWidget); expect(find.byType(FlutterIconLink), findsOneWidget);
expect(find.byType(FirebaseIconLink), findsOneWidget); expect(find.byType(FirebaseIconLink), findsOneWidget);
expect(find.byType(TensorflowIconLink), findsOneWidget); expect(find.byType(TensorflowIconLink), findsOneWidget);
expect(find.byType(MediapipeIconLink), findsOneWidget);
expect(find.byType(MuteButton), findsOneWidget); expect(find.byType(MuteButton), findsOneWidget);
}, },
); );