docs: add a dialog to navigate to gitee.io for chinese

This commit is contained in:
ElderJames 2021-02-24 23:52:00 +08:00
parent 04ca22eaea
commit 08fec90cd3
2 changed files with 79 additions and 3 deletions

View File

@ -190,6 +190,47 @@
</div>
</div>
</div>
<div style="display:none;" id="lang-alert" class="ant-modal-root">
<div class="ant-modal-mask"></div>
<div tabindex="-1" class="ant-modal-wrap" role="dialog">
<div role="document" class="ant-modal ant-modal-confirm ant-modal-confirm-confirm" style="width: 416px; transform-origin: 434px 248px;">
<div tabindex="0" aria-hidden="true" style="width: 0px; height: 0px; overflow: hidden; outline: none;"></div>
<div class="ant-modal-content">
<div class="ant-modal-body">
<div class="ant-modal-confirm-body-wrapper">
<div class="ant-modal-confirm-body">
<span role="img" aria-label="exclamation-circle" class="anticon anticon-exclamation-circle">
<svg viewBox="64 64 896 896" focusable="false" data-icon="exclamation-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path><path d="M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"></path></svg>
</span>
<span class="ant-modal-confirm-title">提示</span>
<div class="ant-modal-confirm-content">建议中国内地用户访问国内镜像站点,加载更快!</div>
</div><div class="ant-modal-confirm-btns">
<button type="button" class="ant-btn" onclick="cancel();"><span>取 消</span></button>
<a class="ant-btn ant-btn-primary" href="https://ant-design-blazor.gitee.io/zh-CN/"><span>确 定</span></a>
</div>
</div>
</div>
</div><div tabindex="0" aria-hidden="true" style="width: 0px; height: 0px; overflow: hidden; outline: none;"></div>
</div>
</div>
</div>
<script>
var alert = document.querySelector('#lang-alert');
!function () {
var lang = navigator.language || navigator.userLanguage;
lang = lang.substr(0, 2);
if (lang == 'zh' && location.hostname == "antblazor.com") {
setTimeout(function () {
alert.style.display = 'block';
}, 5000);
}
}();
function cancel() {
alert.style.display = 'none';
}
</script>
</app>
<!-- Start Single Page Apps for GitHub Pages -->
<script type="text/javascript">

View File

@ -16,6 +16,9 @@
<div class="rc-footer-item">
<a href="https://vue.ant.design" target="_blank">Ant Design Vue</a>
</div>
<div class="rc-footer-item">
<a href="https://pro.antblazor.com/" target="_blank">Ant Design Pro Blazor</a>
</div>
<div class="rc-footer-item">
<a href="http://www.blazor.zone/" target="_blank">Bootstrap Blazor</a>
<span class="rc-footer-item-separator">-</span>
@ -66,12 +69,44 @@
</div>
<div class="rc-footer-column">
<h2>@language.Resources["app.footer.help"]</h2>
<div class="rc-footer-item">
<a href="https://github.com/ant-design-blazor/ant-design-blazor" target="_blank" rel="noopener noreferrer">
<span class="rc-footer-item-icon">
<span role="img" aria-label="github" class="anticon anticon-github"><svg viewBox="64 64 896 896" focusable="false" data-icon="github" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"></path></svg></span>
</span>
GitHub
</a>
</div>
<div class="rc-footer-item">
<a href="https://docs.microsoft.com/en-us/aspnet/core/blazor/?WT.mc_id=DT-MVP-5003987" target="_blank">
<span class="rc-footer-item-icon">
<span role="img" aria-label="dotnet9" class="anticon">
<svg viewBox="64 64 896 896" width="1em" height="1em" fill="currentColor">
<path d="M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"></path>
</svg>
</span>
</span>
ASP.NET Blazor Docs
</a>
</div>
<div class="rc-footer-item">
<a href="https://docs.microsoft.com/en-us/learn/modules/build-blazor-webassembly-visual-studio-code/?WT.mc_id=DT-MVP-5003987" target="_blank">
<span class="rc-footer-item-icon">
<span role="img" aria-label="Blazor Tutorial" class="anticon">
<svg viewBox="64 64 896 896" width="1em" height="1em" fill="currentColor">
<path d="M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"></path>
</svg>
</span>
</span>
Blazor Tutorial
</a>
</div>
</div>
<div class="rc-footer-column">
<h2>
@*<span class="rc-footer-column-icon">
<img src="https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg" alt="Ant XTech">
</span>*@
<img src="https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg" alt="Ant XTech">
</span>*@
@language.Resources["app.footer.more-product"]
</h2>
</div>
@ -79,7 +114,7 @@
</section>
<section class="rc-footer-bottom">
<div class="rc-footer-bottom-container">
Made with <span style="color: rgb(255, 255, 255);"></span> by <a target="_blank" rel="noopener noreferrer" href="https://github.com/ant-design-blazor">ant-design-blazor team</a>
Made with <span style="color: rgb(255, 255, 255);"></span> by <a target="_blank" rel="noopener noreferrer" href="https://github.com/ant-design-blazor">Ant Design Blazor Team</a>
</div>
</section>
</footer>