mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
new home page container
This commit is contained in:
parent
31b472e209
commit
ae718f8f70
8
scripts/home.js
Normal file
8
scripts/home.js
Normal file
@ -0,0 +1,8 @@
|
||||
const React = require('react');
|
||||
const ReactDOM = require('react-dom');
|
||||
|
||||
ReactDOM.render((
|
||||
<div className="home-page">
|
||||
首页坑位
|
||||
</div>
|
||||
), document.getElementById('home-container'));
|
@ -68,7 +68,7 @@ InstantClickChangeFns.push(function() {
|
||||
}
|
||||
i--;
|
||||
i = (i < 0) ? 0 : i;
|
||||
i = (i > titles.length - 1) ? (title.length - 1) : i;
|
||||
i = (i > titles.length - 1) ? (titles.length - 1) : i;
|
||||
}
|
||||
$('.anchor a').removeClass('current');
|
||||
$('.anchor a').eq(i).addClass('current');
|
||||
|
@ -1,39 +1,15 @@
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block styles %}
|
||||
<link href="http://fonts.useso.com/css?family=Raleway:600,500,400,300" rel="stylesheet" type="text/css">
|
||||
{% endblock %}
|
||||
|
||||
{% block bodyAttribute %}class="index-page"{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="main-box" id="main">
|
||||
<div class="banner-box">
|
||||
<div id="bannerAnim"></div>
|
||||
<div class="banner-entry fn-hide">
|
||||
<div class="entry-title">Ant</div>
|
||||
<div class="entry-title">Design</div>
|
||||
<div class="entry-slogan">
|
||||
{{ config.site.description }}
|
||||
</div>
|
||||
<a class="entry-link" href="{{static_url('../spec/introduce')}}">
|
||||
<i class="anticon anticon-smile"></i>
|
||||
开始探索
|
||||
</a>
|
||||
</div>
|
||||
<div class="banner-img fn-alpha-out"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="{{static_url('homeLoad.js')}}"></script>
|
||||
<div id="home-container"></div>
|
||||
<script src="{{static_url('../dist/home.js')}}"></script>
|
||||
<style>
|
||||
.main-wrapper {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
height: calc(100% - 190px);
|
||||
min-height: 500px;
|
||||
background: #fff;
|
||||
transform-style: preserve-3d;
|
||||
transition: transform .6s cubic-bezier(0.785, 0.135, 0.15, 0.86), height .5s ease-out;
|
||||
.home-page {
|
||||
text-align: center;
|
||||
min-height: 560px;
|
||||
padding-top: 200px;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
@ -6,6 +6,7 @@ var pkg = require('./package');
|
||||
var entry = {};
|
||||
entry['index'] = './scripts/importCss.js';
|
||||
entry['demo'] = './scripts/demo.js';
|
||||
entry['home'] = './scripts/home.js';
|
||||
|
||||
module.exports = {
|
||||
entry: entry,
|
||||
|
Loading…
Reference in New Issue
Block a user