forked from Gitlink/forgeplus-react
主页banner内容定制
This commit is contained in:
parent
c414677441
commit
1d3128b1eb
|
@ -274,7 +274,7 @@ class Index extends Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
const { current_user } = this.props;
|
||||
const { current_user , mygetHelmetapi } = this.props;
|
||||
|
||||
const { projectsList , recommendList , languageList , languageId ,
|
||||
isSpin, total, search, limit, page, typeList, categoryList ,
|
||||
|
@ -296,27 +296,27 @@ class Index extends Component {
|
|||
<img src={banner} width="100%" height="100%" alt=""/>
|
||||
<div class="bannerBox">
|
||||
<div class="subjectleft">
|
||||
<span>大学开源</span>
|
||||
<span>{mygetHelmetapi && mygetHelmetapi.banner && mygetHelmetapi.banner.title}</span>
|
||||
<span>
|
||||
<span>
|
||||
<span class="words">让大学绽放开源之花</span>
|
||||
<p class="font-13" style={{color: "rgb(204, 204, 204)"}}>Powered by Trustie and GitLink</p>
|
||||
</span>
|
||||
<span class="words">{mygetHelmetapi && mygetHelmetapi.banner && mygetHelmetapi.banner.sub_title}</span>
|
||||
<p class="font-13" style={{color: "rgb(204, 204, 204)"}}>{mygetHelmetapi && mygetHelmetapi.banner && mygetHelmetapi.banner.content}</p>
|
||||
</span>
|
||||
</div>
|
||||
<CheckProfile {...this.props} sureFunc={()=>this.props.history.push("/projects/deposit/new")}>
|
||||
<i class="iconfont icon-xinjianxiangmu"></i>
|
||||
<a>新建项目</a>
|
||||
</CheckProfile>
|
||||
<a>
|
||||
<i class="iconfont icon-jiaruketang1"></i>
|
||||
<AddProjectModal {...this.props} showNotification={this.props.showNotification}/>
|
||||
</a>
|
||||
<a href="https://data.educoder.net/api/attachments/1955244?disposition=inline" target="_blank">
|
||||
<i class="iconfont icon-xinshouzhiyin"></i>新手指引
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<CheckProfile {...this.props} sureFunc={()=>this.props.history.push("/projects/deposit/new")}>
|
||||
<i class="iconfont icon-xinjianxiangmu"></i>
|
||||
<a>新建项目</a>
|
||||
</CheckProfile>
|
||||
<a>
|
||||
<i class="iconfont icon-jiaruketang1"></i>
|
||||
<AddProjectModal {...this.props} showNotification={this.props.showNotification}/>
|
||||
</a>
|
||||
<a href="https://data.educoder.net/api/attachments/1955244?disposition=inline" target="_blank">
|
||||
<i class="iconfont icon-xinshouzhiyin"></i>新手指引
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{
|
||||
recommendList && recommendList.length>0 &&
|
||||
<Slider {...setting} className={recommendList.length>5 ? "recommandProjects":"recommandProjects mb20"}>
|
||||
|
|
Loading…
Reference in New Issue