fix: 修改footer定位问题

This commit is contained in:
yhui.yang 2017-07-26 16:20:20 +08:00
parent 1f5747038c
commit cfaca47d82
3 changed files with 14 additions and 15 deletions

View File

@ -46,16 +46,17 @@ export default class App extends Component {
<HashRouter>
<div className="router-main">
<Header />
<Route path="/" component={Home} exact />
{/*<Route exact path="/group" component={ requireAuthentication(ProjectGroups) } ></Route>*/}
<Switch>
<Redirect exact from='/group' to='/group/1' />
<Route exact path="/group/:groupName" component={ requireAuthentication(ProjectGroups) } />
</Switch>
<Route path="/Interface" component={requireAuthentication(Interface)} />
<Route path="/user" component={requireAuthentication(User)} />
<Route path="/News" component={requireAuthentication(News)} />
<Route path="/AddInterface" component={ requireAuthentication(AddInterface) } />
<div className="router-container">
<Route path="/" component={Home} exact />
<Switch>
<Redirect exact from='/group' to='/group/1' />
<Route exact path="/group/:groupName" component={ requireAuthentication(ProjectGroups) } />
</Switch>
<Route path="/Interface" component={requireAuthentication(Interface)} />
<Route path="/user" component={requireAuthentication(User)} />
<Route path="/News" component={requireAuthentication(News)} />
<Route path="/AddInterface" component={ requireAuthentication(AddInterface) } />
</div>
<Footer/>
</div>
</HashRouter>

View File

@ -7,15 +7,10 @@ $color-grey-lighter : #F7F7F7;
$color-blue-light: #5dade2;
$color-black-lighter: #404040;
.home-main {
min-height:calc(100% - 2.47rem);
display: -webkit-box;
-webkit-box-orient: vertical;
background: $color-blue-grey-lighter;
.main-one{
//padding: .5rem .5rem 0 .5rem;
//background: radial-gradient(ellipse at center,#45484d 0%,#000 100%);
.home-des{
color: $color-white;
padding: .5rem 0 0;

View File

@ -44,4 +44,7 @@ em {
display: -webkit-box;
-webkit-box-orient: vertical;
height: 100%;
.router-container{
min-height:calc(100% - 2.47rem);
}
}