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 = (i < 0) ? 0 : 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').removeClass('current');
|
||||||
$('.anchor a').eq(i).addClass('current');
|
$('.anchor a').eq(i).addClass('current');
|
||||||
|
@ -1,39 +1,15 @@
|
|||||||
{% extends "layout.html" %}
|
{% 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 bodyAttribute %}class="index-page"{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="main-box" id="main">
|
<div id="home-container"></div>
|
||||||
<div class="banner-box">
|
<script src="{{static_url('../dist/home.js')}}"></script>
|
||||||
<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>
|
|
||||||
<style>
|
<style>
|
||||||
.main-wrapper {
|
.home-page {
|
||||||
overflow: hidden;
|
text-align: center;
|
||||||
position: relative;
|
min-height: 560px;
|
||||||
height: calc(100% - 190px);
|
padding-top: 200px;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -6,6 +6,7 @@ var pkg = require('./package');
|
|||||||
var entry = {};
|
var entry = {};
|
||||||
entry['index'] = './scripts/importCss.js';
|
entry['index'] = './scripts/importCss.js';
|
||||||
entry['demo'] = './scripts/demo.js';
|
entry['demo'] = './scripts/demo.js';
|
||||||
|
entry['home'] = './scripts/home.js';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: entry,
|
entry: entry,
|
||||||
|
Loading…
Reference in New Issue
Block a user