注册页面示例:
.register{
background-image: linear-gradient(to right,#ff5722 0%,#ff9800 100%);
margin-top: 150px !important;
}
<div className="register">
<div className="container">
<div className="row">
<div className="col-md-10 offset=md-1">
<div className="row">
<div className="col-md-5 register-left">
<h3>Join Us</h3>
<p>Subscribe</p>
<button className="btn btn-primary" type="button">About Us</button>
</div>
</div>
</div>
</div>
</div>
</div>
默认布局示例(Core_ui 代码结构)
<div className="app">
Header
<div className="app-body">
<main className="main">
<Suspense fallback={this.loading()}>
<Switch>
{routes.map((route, idx) => {
return route.component ? (
<Route
key={idx}
path={route.path}
exact={route.exact}
name={route.name}
render={props => (
<route.component {...props} />
)} />
) : (null);
})}
{/* <Redirect from="/" to="/dashboard" /> */}
</Switch>
</Suspense>
</main>
</div>
<Suspense fallback={this.loading()}>
Footer
</Suspense>
</div>
我遵循coreui代码结构。我的 app.css 是空的。我创建了register.css并应用了背景,但 CSS 仅应用于容器部分而不是整页。