This repository has been archived by the owner on Aug 27, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4bd1497
commit ea43a7b
Showing
34 changed files
with
552 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React, { Component } from 'react'; | ||
import FOOTER_LINKS from '../../constants/footerLinks'; | ||
import SocialLinks from '../SocialLinks'; | ||
import './Footer.scss'; | ||
|
||
class Footer extends Component { | ||
static renderMenu(menu) { | ||
const links = menu.LINKS.map(item => (item.URL ? <a key={item.TEXTNODE} className="footer__link" href={item.URL}>{item.TEXTNODE}</a> : <div key={item.TEXTNODE} className="footer__divider" />)); | ||
|
||
return ( | ||
<div className="footer-col" key={menu.HEADER}> | ||
<div className="footer__header">{menu.HEADER}</div> | ||
{ links } | ||
</div> | ||
); | ||
} | ||
|
||
render() { | ||
return ( | ||
<footer className="footer color-white"> | ||
<div className="container-lg footer-container"> | ||
{Footer.renderMenu(FOOTER_LINKS.SOLUTIONS)} | ||
{Footer.renderMenu(FOOTER_LINKS.SG_IS_FOR)} | ||
{Footer.renderMenu(FOOTER_LINKS.SUPPORT)} | ||
{Footer.renderMenu(FOOTER_LINKS.COMMUNITY)} | ||
{Footer.renderMenu(FOOTER_LINKS.COMPANY)} | ||
</div> | ||
|
||
<hr /> | ||
|
||
<div className="container-lg"> | ||
<div className="row"> | ||
<div className="col-md-6"> | ||
<SocialLinks /> | ||
</div> | ||
<div className="col-md-6 ta-right"> | ||
<a href="https://sendgrid.com/policies/tos/">Legal and Security</a> | ||
<span className="footer__copy">© 2018 SendGrid</span> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
); | ||
} | ||
} | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react'; | ||
import './search.scss'; | ||
|
||
class Search extends React.Component { | ||
static swiftype() { | ||
/* eslint-disable */ | ||
(function (w, d, t, u, n, s, e) { | ||
w.SwiftypeObject = n; w[n] = w[n] || function () { | ||
(w[n].q = w[n].q || []).push(arguments); | ||
}; | ||
s = d.createElement(t); | ||
e = d.getElementsByTagName(t)[0]; | ||
s.async = 1; | ||
s.src = u; | ||
e.parentNode.insertBefore(s, e); | ||
}(window, document, 'script', '//s.swiftypecdn.com/install/v2/st.js', '_st')); | ||
|
||
_st('install', 'NC4TVEWaL6p6zBLuL7eo', '2.0.0'); | ||
/* eslint-enable */ | ||
} | ||
|
||
render() { | ||
return ( | ||
<div className="search-docs"> | ||
<form> | ||
<div className="input-text-wrap is-search"> | ||
<input type="text" id="query" placeholder="Search..." className="form-control search-hero__query search-query st-default-search-input" name="q" /> | ||
<input type="button" value="Search" className="input-btn" /> | ||
</div> | ||
</form> | ||
{Search.swiftype()} | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default Search; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@import '../../scss/global/mixins'; | ||
|
||
.input-text-wrap [type="text"] { | ||
border-radius: 0; | ||
} | ||
|
||
.input-text-wrap .input-btn { | ||
display: none; | ||
} | ||
|
||
.input-text-wrap .search-hero__query { | ||
@include colfax(400); | ||
|
||
background-image: none; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import SOCIAL_LINKS from '../../constants/socialLinks'; | ||
|
||
const SocialLinks = () => { | ||
const links = SOCIAL_LINKS.map(item => ( | ||
<a href={item.URL} target="_blank" rel="noopener noreferrer"> | ||
<img alt={item.TEXTNODE} src={item.IMG} /> | ||
<span className="show-for-sr">{item.TEXTNODE}</span> | ||
</a> | ||
)); | ||
|
||
return ( | ||
<div className="footer__soc"> | ||
{ links } | ||
</div> | ||
); | ||
}; | ||
|
||
export default SocialLinks; |
Oops, something went wrong.