Add footer basic style
This commit is contained in:
26
components/footer/index.js
Normal file
26
components/footer/index.js
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import './style.scss';
|
||||||
|
|
||||||
|
const Footer = () => (
|
||||||
|
<div className="page-footer">
|
||||||
|
<div className="container">
|
||||||
|
<div className="site-meta">
|
||||||
|
<div className="brand-detail">
|
||||||
|
<a href="#" className='brand'><img src="/static/brand.png" alt="" /> roadmap.sh</a>
|
||||||
|
<span className="preposition">by</span>
|
||||||
|
<a href="#" className='follow-author'>@kamranahmedse</a>
|
||||||
|
</div>
|
||||||
|
<div className="brand-explanation">
|
||||||
|
<p>Community created roadmaps, articles, resources and journeys to help you choose your path and grow in your career.</p>
|
||||||
|
</div>
|
||||||
|
<p className='meta-links'>
|
||||||
|
© roadmap.sh ·
|
||||||
|
<a href="#">FAQ</a> ·
|
||||||
|
<a href="#">Terms</a> ·
|
||||||
|
<a href="#">Privacy</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
export default Footer;
|
67
components/footer/style.scss
Normal file
67
components/footer/style.scss
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
.page-footer {
|
||||||
|
padding: 65px 10px;
|
||||||
|
|
||||||
|
.site-meta {
|
||||||
|
width: 350px;
|
||||||
|
|
||||||
|
.brand-detail {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #000;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
img {
|
||||||
|
height: 25px;
|
||||||
|
width: 25px;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.preposition {
|
||||||
|
margin: 0 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.follow-author {
|
||||||
|
background-color: #1e99e6;
|
||||||
|
border-radius: 3px;
|
||||||
|
color: #fff;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 600;
|
||||||
|
line-height: 20px;
|
||||||
|
padding: 0 6px;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: #43aaea;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-explanation {
|
||||||
|
color: #999;
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-size: 15px;
|
||||||
|
line-height: 24px;
|
||||||
|
margin: 15px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.meta-links {
|
||||||
|
color: #a3a3a3;
|
||||||
|
font-size: 15px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #000;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -2,6 +2,7 @@ import Header from '../../components/header/index';
|
|||||||
import FeaturedContent from '../../components/featured-content';
|
import FeaturedContent from '../../components/featured-content';
|
||||||
import './style.scss';
|
import './style.scss';
|
||||||
import HeroSection from '../../components/hero-section';
|
import HeroSection from '../../components/hero-section';
|
||||||
|
import Footer from '../../components/footer';
|
||||||
|
|
||||||
export const Home = (props) => (
|
export const Home = (props) => (
|
||||||
<div className='home-container'>
|
<div className='home-container'>
|
||||||
@ -10,6 +11,7 @@ export const Home = (props) => (
|
|||||||
<div className="featured-content border-top border-bottom bg-light">
|
<div className="featured-content border-top border-bottom bg-light">
|
||||||
<FeaturedContent />
|
<FeaturedContent />
|
||||||
</div>
|
</div>
|
||||||
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user