pebble/devsite/source/_includes/platform-choice.html
2025-02-24 18:58:29 -08:00

46 lines
2 KiB
HTML

{% comment %}
Copyright 2025 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}
<div class="alert alert--bg-lightblue platform-choice platform-choice--large platform-choice--hidden">
<p>
This page contains some instructions that are different if you're using
CloudPebble or if you're using the SDK locally on your computer.
</p>
<p>
Select whether you're using CloudPebble or the SDK below to show the
relevant instructions!
</p>
<div class="text-center">
<a href="javascript:void();" class="platform-choice--link js-platform-choice" data-sdk-platform="cloudpebble">
<img src="{{ site.asset_path }}/images/sdk/cloud.svg">
<h4>CloudPebble</h4>
</a>
<a href="javascript:void();" class="platform-choice--link js-platform-choice" data-sdk-platform="local">
<img src="{{ site.asset_path }}/images/sdk/sdk-box.svg">
<h4>SDK</h4>
</a>
</div>
</div>
<div class="alert alert--bg-lightblue platform-choice platform-choice--small platform-choice--hidden">
<p class="platform-specific" data-sdk-platform="cloudpebble">
<img src="{{ site.asset_path }}/images/sdk/cloud.svg">
Showing instructions for CloudPebble. <a href="javascript: void();" class="js-platform-choice" data-sdk-platform="local">Not using CloudPebble?</a>
</p>
<p class="platform-specific" data-sdk-platform="local">
<img src="{{ site.asset_path }}/images/sdk/sdk-box.svg">
Showing instructions for the SDK. <a href="javascript: void();" class="js-platform-choice" data-sdk-platform="cloudpebble">Using CloudPebble?</a>
</p>
</div>