<footer> in home
parent
1e47f031a1
commit
bd277a00f7
|
@ -12,7 +12,7 @@ import readme from './modules/readme.md';
|
||||||
const Home = () => {
|
const Home = () => {
|
||||||
return (
|
return (
|
||||||
<article>
|
<article>
|
||||||
<header className={style.hero}>
|
<header className={style.header}>
|
||||||
<Logo className={style.logo} />
|
<Logo className={style.logo} />
|
||||||
<h2 className={style.title}>React Toolbox</h2>
|
<h2 className={style.title}>React Toolbox</h2>
|
||||||
<h4 className={style.subtitle}>Bootstrap your application with beautiful Material Design Components</h4>
|
<h4 className={style.subtitle}>Bootstrap your application with beautiful Material Design Components</h4>
|
||||||
|
@ -25,8 +25,8 @@ const Home = () => {
|
||||||
{ authors.map((author, index) => { return <Card key={index} {...author} />; }) }
|
{ authors.map((author, index) => { return <Card key={index} {...author} />; }) }
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
<footer>
|
<footer className={style.footer}>
|
||||||
Copyright
|
<small>React Toolbox ©</small>
|
||||||
</footer>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
);
|
);
|
||||||
|
|
|
@ -4,14 +4,13 @@
|
||||||
$content-offset: 4.8 * $unit;
|
$content-offset: 4.8 * $unit;
|
||||||
$content-width: 740px;
|
$content-width: 740px;
|
||||||
|
|
||||||
.hero {
|
.header {
|
||||||
padding: 0 calc((100% - #{$hero-max-width}) / 2);
|
padding: 0 calc((100% - #{$hero-max-width}) / 2);
|
||||||
color: $hero-text-color;
|
color: $hero-text-color;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: linear-gradient(45deg, $hero-gradient-dark 0%, $hero-gradient-light 100%);
|
background: linear-gradient(45deg, $hero-gradient-dark 0%, $hero-gradient-light 100%);
|
||||||
background-position: top right;
|
background-position: top right;
|
||||||
background-size: 120%;
|
background-size: 120%;
|
||||||
}
|
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
width: $hero-logo-size;
|
width: $hero-logo-size;
|
||||||
|
@ -22,7 +21,7 @@ $content-width: 740px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
@include typo-display-2;
|
@include typo-display-3;
|
||||||
margin-top: $hero-item-spacing;
|
margin-top: $hero-item-spacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,6 +61,7 @@ $content-width: 740px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
padding: $content-offset 0;
|
padding: $content-offset 0;
|
||||||
|
@ -74,8 +74,6 @@ $content-width: 740px;
|
||||||
max-width: $content-width;
|
max-width: $content-width;
|
||||||
margin: 0 ($content-offset / 4);
|
margin: 0 ($content-offset / 4);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.authors {
|
.authors {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -83,3 +81,10 @@ $content-width: 740px;
|
||||||
margin: 0 $unit;
|
margin: 0 $unit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
background-color: darken($color-content, 2.5%);
|
||||||
|
text-align: center;
|
||||||
|
padding: $unit 0;
|
||||||
|
}
|
||||||
|
|
|
@ -43,9 +43,6 @@ const MainNavigation = React.createClass({
|
||||||
</List>
|
</List>
|
||||||
<footer className={style.footer}>
|
<footer className={style.footer}>
|
||||||
<span>React Toolbox ©</span>
|
<span>React Toolbox ©</span>
|
||||||
<span>
|
|
||||||
<a href=''>Privacy</a> & <a href=''>Terms</a>
|
|
||||||
</span>
|
|
||||||
</footer>
|
</footer>
|
||||||
</aside>
|
</aside>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue