Skip to content

Commit

Permalink
Add site loading, close ant-design#1632
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed May 11, 2016
1 parent 9321c5f commit d63a16f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
<![endif]-->
</head>
<body>
<div id="react-content"></div>
<div id="react-content1">
<div class="ant-site-loading">
<img width="100" src="https://t.alipayobjects.com/images/rmsweb/T1B9hfXcdvXXXXXXXX.svg" alt="loading..." />
<div>A Design Langague</div>
</div>
</div>
</body>
<script src="./index.js"></script>
</html>
32 changes: 32 additions & 0 deletions site/common/styles/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,35 @@ a {
.outside-link.internal {
display: none;
}

.ant-site-loading {
height: 100vh;
width: 100vw;
background: #fff;
text-align: center;
display: table-cell;
vertical-align: middle;
img {
animation: siteLoadingCircle 2s ease-in-out infinite;
transform-origin: 50% 50%;
margin-top: -50px;
}
div {
font-family: lato;
color: #777;
font-size: 16px;
letter-spacing: 2px;
}
}

@keyframes siteLoadingCircle {
0% {
transform: rotate(0deg);
}
50% {
transform: rotate(360deg);
}
100% {
transform: rotate(360deg);
}
}

0 comments on commit d63a16f

Please sign in to comment.