Advertisement
connelblaze

footer in reactjs

Aug 8th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 9.22 KB | None | 0 0
  1. import React, { Component } from 'react';
  2.  
  3. const usedImg = 'http://placehold.it/100x100';
  4. export default () => (
  5.     <footer>
  6.     <section className="ph3 ph5-ns pb4 w-100 pt4 bt b--black-10">
  7.         <div className="bg-transparent w-100 tc ph5-ns pv5-ns">
  8.         <h3 className="mb3 ttu">used by people at</h3>
  9.             <div className="w-100 center">
  10.                 <div className="pa3 dib w-25-m w-10-l">
  11.                     <img src = {usedImg} />
  12.                 </div><div className="pa3 dib w-25-m w-10-l">
  13.                     <img src = {usedImg} />
  14.                 </div><div className="pa3 dib w-25-m w-10-l">
  15.                     <img src = {usedImg} />
  16.                 </div><div className="pa3 dib w-25-m w-10-l">
  17.                     <img src = {usedImg} />
  18.                 </div><div className="pa3 dib w-25-m w-10-l">
  19.                     <img src = {usedImg} />
  20.                 </div><div className="pa3 dib w-25-m w-10-l">
  21.                     <img src = {usedImg} />
  22.                 </div><div className="pa3 dib w-25-m w-10-l">
  23.                     <img src = {usedImg} />
  24.                 </div><div className="pa3 dib w-25-m w-10-l">
  25.                     <img src = {usedImg} />
  26.                 </div>
  27.             </div>
  28.             <div className="w-100 center">
  29.                 <div className="pa3 dib w-25-m w-10-l">
  30.                     <img src= {usedImg} />
  31.                 </div><div className="pa3 dib w-25-m w-10-l">
  32.                     <img src = {usedImg} />
  33.                 </div><div className="pa3 dib w-25-m w-10-l">
  34.                     <img src = {usedImg} />
  35.                 </div><div className="pa3 dib w-25-m w-10-l">
  36.                     <img src = {usedImg} />
  37.                 </div><div className="pa3 dib w-25-m w-10-l">
  38.                     <img src = {usedImg} />
  39.                 </div><div className="pa3 dib w-25-m w-10-l">
  40.                     <img src = {usedImg} />
  41.                 </div><div className="pa3 dib w-25-m w-10-l">
  42.                     <img src = {usedImg} />
  43.                 </div><div className="pa3 dib w-25-m w-10-l">
  44.                     <img src = {usedImg} />
  45.                 </div>
  46.             </div>
  47.         </div>
  48.         //section 1
  49.         <section className="bg-dark-green ph3 ph5-ns pv3 pv5-ns w-100">
  50.             <h3 className="mb3 f4 ttu">testimonials</h3>
  51.             <article className="w-100 black-80 bb b--black-20 cf pb4-ns">
  52.                 <p className="f4 f2-m f-5-l db w-100 lh-copy lh-title-l measure mb4 fw6 mt0">
  53.                      Here's why I think designing systems with tools/frameworks like Tachyons
  54.                     is a Good Idea.
  55.                 </p>
  56.                 <article className="fl w-100 w-50-l dib">
  57.                     <p className="f6 lh-copy measure f5 f4-ns">
  58.                         Design Systems break as they scale (either scaling org or scaling product) because new components/variants of a component are introduced. Those variants sometimes (read: often) go undocumented, leading to duplication when that component/variant is needed (and created) again. Even when the component is documented, documenting effectively often means dozens/hundreds of instances to capture all states/variants. Systems like Tachyons et al. approach this problem by instead documenting and limiting *properties* of components. (I like to think of this as "subatomic" design.)
  59.                     </p>
  60.                     <h3 className="mt3-ns">
  61.                          Daniel Eden <br /><small className="f6 fw5">Designer at Facebook </small>
  62.                     </h3>
  63.                 </article><article className="fl w-100 w-50-l dib">
  64.                     <p className="f6 lh-copy measure f5 f4-ns">
  65.                         You then create components by composing subatomic components (properties). Rather than creating a component and its variants, you simply have a comprehensive list of "ingredient" subatomic components. Those subatomic components can be combined in thousands of ways to create hundreds of components. The properties of those components are numerous, but constrained to a set of acceptable values (our subatomic components).
  66.                     </p>
  67.                 </article>
  68.             </article>//testimony 1
  69.             <article className="w-100 black-80 bb b--black-20 cf pb4-ns">
  70.                 <p className="f3 f1-ns measure fw7 lh-title pv3-ns">
  71.                      Tachyons has seriously blown my mind. Making landing pages responsive is now... somehow... actually fun?!Ian Storm Taylor Co-founder of Segment.com
  72.                 </p>
  73.                 <h3 className="mt3-ns">
  74.                      Ian Storm Taylor
  75.                      <br /><small className="f6 fw5">Co-founder of Segment.com</small>
  76.                 </h3>
  77.             </article>//testimony 2
  78.             <article className="w-100 black-80 bb b--black-20 cf pb4-ns">
  79.                 <p className="f3 f1-ns measure fw7 lh-title pv3-ns">
  80.                      I used Tachyons for the first time on <a href="#" className="black-80 dim">goldenstaterecord.com</a>. Really fast to make big changes to the design in-flight.
  81.                 </p>
  82.                 <h3 className="mt3-ns">
  83.                       Wilson Miner <br /><small className="f6 fw5">Digital Design - The California Sunday Magazine</small>
  84.                 </h3>
  85.             </article>//testimony 3
  86.             <article className="w-100 black-80 cf pb4-ns">
  87.                 <p className="f3 f1-ns measure fw7 lh-title pv3-ns">
  88.                      Tachyons is powerful, obvious, and well documented. It's made me rethink my approach to building organized and componentized CSS. I highly recommend you try it.
  89.                 </p>
  90.                 <h3 className="mt3-ns">
  91.                       Dustin Senos <br /><small className="f6 fw5">Designer</small>
  92.                 </h3>
  93.             </article>//testimony 4
  94.         </section>//section 2 name
  95.         <section className="w-100 bg-white">
  96.             <div className="ph3 ph5-ns pv3 pv5-ns">
  97.                 <nav className="dtc v-mid w-100 tr pt5-ns">
  98.                 <a className="f6 fw6 hover-blue link pointer black-80 mr2 mr3-m mr4-l dib">Home</a>
  99.                 <a className="f6 fw6 hover-blue link pointer black-80 mr2 mr3-m mr4-l dib">Docs</a>
  100.                 <a className="f6 fw6 hover-blue link pointer black-80 mr2 mr3-m mr4-l dib">Components</a>
  101.                 <a className="f6 fw6 hover-blue link pointer black-80 mr2 mr3-m mr4-l dib">Gallery</a>
  102.                 <a className="f6 fw6 hover-blue link pointer black-80 mr2 mr3-m mr4-l dib">Resources</a>
  103.                 <a className="f6 fw6 hover-blue link pointer black-80 mr2 mr3-m mr4-l dib">X-Ray</a>
  104.                 <a className="f6 fw6 hover-blue link pointer black-80 mr2 mr3-m mr4-l dib">Supporting Tachyons</a>
  105.                 </nav>
  106.                 <div className="w-100 mb2 mt3-ns pv3-ns">
  107.                     <div className="bg-light-gray br3 mw3 dib">
  108.                         <a className="github link black mr3 dim" href="https://github.com/connelevalsam/tachyons-prototype" title="star">
  109.                             <div className="dib">
  110.                                 <svg className="geomicon dib v-mid" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"  width="16" height="16" fill:black>
  111.                                     <path d="M0 18 C0 12 3 10 3 9 C2.5 7 2.5 4 3 3 C6 3 9 5 10 6 C12 5 14 5 16 5 C18 5 20 5 22 6 C23 5 26 3 29 3 C29.5 4 29.5 7 29 9 C29 10 32 12 32 18 C32 25 30 30 16 30 C2 30 0 25 0 18 M3 20 C3 24 4 28 16 28 C28 28 29 24 29 20 C29 16 28 14 16 14 C4 14 3 16 3 20 M8 21 A1.5 2.5 0 0 0 13 21 A1.5 2.5 0 0 0 8 21 M24 21 A1.5 2.5 0 0 0 19 21 A1.5 2.5 0 0 0 24 21 z">
  112.                                     </path>
  113.                                 </svg>
  114.                             </div>
  115.                             <div className="dib fw2 b"><small>star</small></div>
  116.                         </a>
  117.                     </div>
  118.                     <div className="bg-transparent dib">
  119.                         <a href="" className="twitter bg-blue dim link dib mb2 br2 ph2 pb1 lh-solid v-top">
  120.                             <svg className="geomicon dib v-mid" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16" fill="#fff">
  121.                               <path d="M2 4 C6 8 10 12 15 11 A6 6 0 0 1 22 4 A6 6 0 0 1 26 6 A8 8 0 0 0 31 4 A8 8 0 0 1 28 8 A8 8 0 0 0 32 7 A8 8 0 0 1 28 11 A18 18 0 0 1 10 30 A18 18 0 0 1 0 27 A12 12 0 0 0 8 24 A8 8 0 0 1 3 20 A8 8 0 0 0 6 19.5 A8 8 0 0 1 0 12 A8 8 0 0 0 3 13 A8 8 0 0 1 2 4"></path>
  122.                             </svg>
  123.                             <span className="dib v-mid white fw6" style="font-size: 12px;">Tweet</span>
  124.                         </a>
  125.                     </div>
  126.                 </div>//end of social media icons div
  127.                 <div>
  128.                     <a href="" className="twitter bg-transparent grow link dib mb2 mr3-l ba br2 ph3-ns pv3-ns">
  129.                         <svg className="geomicon dib v-mid" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16" fill="#000">
  130.                           <path d="M2 4 C6 8 10 12 15 11 A6 6 0 0 1 22 4 A6 6 0 0 1 26 6 A8 8 0 0 0 31 4 A8 8 0 0 1 28 8 A8 8 0 0 0 32 7 A8 8 0 0 1 28 11 A18 18 0 0 1 10 30 A18 18 0 0 1 0 27 A12 12 0 0 0 8 24 A8 8 0 0 1 3 20 A8 8 0 0 0 6 19.5 A8 8 0 0 1 0 12 A8 8 0 0 0 3 13 A8 8 0 0 1 2 4"></path>
  131.                         </svg>
  132.                         <span className="dib v-mid black-80 fw6" style="font-size: 16px;">Follow @connelblaze</span>
  133.                     </a>//twitter
  134.                     <a className="github link black-80 mr3 grow dib ba br2 mb2 ph3-ns pv3-ns" href="https://github.com/connelevalsam/tachyons-prototype" title="star">
  135.                         <div className="dib">
  136.                             <svg className="geomicon dib v-mid" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"  width="16" height="16" fill:black>
  137.                                 <path d="M0 18 C0 12 3 10 3 9 C2.5 7 2.5 4 3 3 C6 3 9 5 10 6 C12 5 14 5 16 5 C18 5 20 5 22 6 C23 5 26 3 29 3 C29.5 4 29.5 7 29 9 C29 10 32 12 32 18 C32 25 30 30 16 30 C2 30 0 25 0 18 M3 20 C3 24 4 28 16 28 C28 28 29 24 29 20 C29 16 28 14 16 14 C4 14 3 16 3 20 M8 21 A1.5 2.5 0 0 0 13 21 A1.5 2.5 0 0 0 8 21 M24 21 A1.5 2.5 0 0 0 19 21 A1.5 2.5 0 0 0 24 21 z">
  138.                                 </path>
  139.                             </svg>
  140.                         </div>
  141.                         <div className="dib fw2 b" style="font-size: 16px;"><small>Open an issue on github</small></div>
  142.                     </a>
  143.                 </div>//end of social contacts
  144.             </div>
  145.         </section>
  146.     </section>
  147.     </footer>
  148.     )
  149. // module.exports = {data: usedImg}
  150.  
  151. //-----------------------------------------------App.js------------------------------
  152. import React, { Component } from 'react';
  153. import Header from './components/header';
  154. import Main from './components/body';
  155. import Footer from './components/footer';
  156.  
  157. class App extends Component {
  158.   render() {
  159.     return (
  160.       <div>
  161.         <Header />
  162.         <Main />
  163.         <Footer />
  164.       </div>
  165.     );
  166.   }
  167. }
  168.  
  169. export default App;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement