列表页:描述内容样式

This commit is contained in:
caishi 2021-07-07 10:35:26 +08:00
parent f4497533dc
commit 6032550938
3 changed files with 19 additions and 6 deletions

View File

@ -25,7 +25,7 @@ if (isDev) {
}
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
window.location.search.indexOf('debug=s') !== -1 ? 'student' :
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'admin'
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || ''
}
window._debugType = debugType;
export function initAxiosInterceptors(props) {

View File

@ -258,7 +258,7 @@ class Index extends Component {
const { projectsList , recommendList , languageList , languageId ,
isSpin, total, search, limit, page, typeList, categoryList } = this.state;
let userflag = (current_user && ( current_user.login && current_user.login === "pns5oi9af" )) ? true : false;
return (
<div>
<div className="subjectBanner">
@ -266,7 +266,15 @@ class Index extends Component {
<div className="bannerBox">
<div class="subjectleft">
<span>头歌开源</span>
<span>让师姐开心的玩开源</span>
<span>
<span>
{userflag ?
<span className="words">让师姐开心的玩开源</span>:
<span className="words">让大学绽放开源之花</span>
}
<p className="font-13" style={{color:"#ccc"}}>Powered by Trustie</p>
</span>
</span>
</div>
<Button type={"primary"} size={"large"}>
<Link to={`/projects/deposit/new`}>新建项目</Link>

View File

@ -21,7 +21,7 @@
top: 0;
transform: translateX(-50%);
}
.subjectleft span:first-child{
.subjectleft>span:first-child{
width: 140px;
height: 30px;
font-size: 30px;
@ -30,14 +30,19 @@
line-height: 30px;
letter-spacing: 4px;
}
.subjectleft span:last-child{
.subjectleft>span:last-child{
height: 16px;
font-size: 16px;
color: #fff;
line-height: 16px;
letter-spacing: 4px;
margin-left: 16px;
}
.subjectleft>span:last-child .words{
letter-spacing: 3px;
display: block;
margin-top: -6px;
margin-bottom: 2px!important;
}
.bannerBox .ant-btn{
margin-top: 30px;
height: 40px;