|
1 | 1 | import React, { Component } from 'react';
|
| 2 | +import { Route, Link } from 'react-router-dom' |
2 | 3 | import Contact from './Contact';
|
| 4 | +import Home from './Home'; |
| 5 | +import Portfolio from './Portfolio'; |
3 | 6 |
|
4 | 7 | class App extends Component {
|
5 | 8 |
|
@@ -38,158 +41,27 @@ class App extends Component {
|
38 | 41 |
|
39 | 42 | <div id="navPanel">
|
40 | 43 | <nav>
|
41 |
| - <a className="link depth-0" href="index.html" style={{ WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)' }}> |
42 |
| - <span className="indent-0"></span> |
43 |
| - Home</a> |
44 |
| - <a className="link depth-0" href="#" style={{ WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)' }}> |
45 |
| - <span className="indent-0"></span> |
46 |
| - Dropdown |
47 |
| - </a> |
| 44 | + <Link to="/" className="link depth-0" |
| 45 | + style={{ WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)' }}> |
| 46 | + <span className="indent-0"></span>Home |
| 47 | + </Link> |
| 48 | + <Link to="/portfolio"className="link depth-0" |
| 49 | + style={{ WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)' }}> |
| 50 | + <span className="indent-0"></span>Portfolio |
| 51 | + </Link> |
48 | 52 | </nav>
|
49 | 53 | </div>
|
50 | 54 |
|
51 |
| - <div className="homepage"> |
52 |
| - <div id="page-wrapper"> |
53 |
| - {/* Header */} |
54 |
| - <div id="header-wrapper" className="wrapper"> |
55 |
| - <div id="header"> |
56 |
| - |
57 |
| - {/* Logo */} |
58 |
| - <div id="logo"> |
59 |
| - <h1><a href="index.html">Joey Gryder</a></h1> |
60 |
| - <p>Sr. Software Engineer in Test - Charleston, SC</p> |
61 |
| - </div> |
62 |
| - |
63 |
| - {/* Nav */} |
64 |
| - <nav id="nav"> |
65 |
| - <ul> |
66 |
| - <li className="current"><a href="index.html">Home</a></li> |
67 |
| - <li><a href="#highlights" onClick={this.toggleSidebarVisibility}>Portfolio</a></li> |
68 |
| - <li><a href="#footer">Contact</a></li> |
69 |
| - </ul> |
70 |
| - </nav> |
71 |
| - </div> |
72 |
| - </div> |
73 |
| - {/* End Header */} |
74 |
| - |
75 |
| - {/* Intro */} |
76 |
| - <div id="intro-wrapper" className="wrapper style1"> |
77 |
| - <div className="title">The Introduction</div> |
78 |
| - <section id="intro" className="container"> |
79 |
| - <p className="style1">So in case you were wondering what this is all about ...</p> |
80 |
| - <p className="style2"> |
81 |
| - Escape Velocity is a free responsive<br className="mobile-hide" /> site template by <a href="http://html5up.net" className="nobr">HTML5 UP</a> |
82 |
| - </p> |
83 |
| - <p className="style3"> |
84 |
| - It's <strong>responsive</strong>, built on <strong>HTML5</strong> and <strong>CSS3</strong> |
85 |
| - and released for free under the <a href="http://html5up.net/license"> Creative Commons Attribution 3.0 license</a> |
86 |
| - so use it for any of your personal or commercial projects -- just be sure to credit us! |
87 |
| - </p> |
88 |
| - <ul className="actions"> |
89 |
| - <li><a href="#" className="button style3 big">Proceed</a></li> |
90 |
| - </ul> |
91 |
| - </section> |
92 |
| - </div> |
93 |
| - {/* End Intro */} |
94 |
| - |
95 |
| - {/* Main */} |
96 |
| - <div className="wrapper style2"> |
97 |
| - <div className="title">The Details</div> |
98 |
| - <div id="main" className="container"> |
99 |
| - |
100 |
| - {/* Image */} |
101 |
| - <a href="#" className="image featured"> |
102 |
| - <img src="images/pic01.jpg" alt="" /> |
103 |
| - </a> |
104 |
| - |
105 |
| - {/* Features */} |
106 |
| - <section id="features"> |
107 |
| - <header className="style1"> |
108 |
| - <h2>Dolor consequat feugiat amet veroeros</h2> |
109 |
| - <p>Feugiat dolor nullam orci pretium phasellus justo</p> |
110 |
| - </header> |
111 |
| - {/* Feature List */} |
112 |
| - <div className="feature-list"> |
113 |
| - <div className="row"> |
114 |
| - <div className="6u 12u(mobile)" style={this.getMobileWidth()}> |
115 |
| - <section> |
116 |
| - <h3 className="icon fa-comment">Mattis velit diam vulputate</h3> |
117 |
| - <p>Eget mattis at, laoreet vel et velit aliquam diam ante, aliquet sit amet vulputate. Eget mattis at, laoreet vel velit lorem.</p> |
118 |
| - </section> |
119 |
| - </div> |
120 |
| - <div className="6u 12u(mobile)" style={this.getMobileWidth()}> |
121 |
| - <section> |
122 |
| - <h3 className="icon fa-refresh">Lorem ipsum dolor sit veroeros</h3> |
123 |
| - <p>Eget mattis at, laoreet vel et velit aliquam diam ante, aliquet sit amet vulputate. Eget mattis at, laoreet vel velit lorem.</p> |
124 |
| - </section> |
125 |
| - </div> |
126 |
| - </div> |
127 |
| - <div className="row"> |
128 |
| - <div className="6u 12u(mobile)" style={this.getMobileWidth()}> |
129 |
| - <section> |
130 |
| - <h3 className="icon fa-picture-o">Pretium phasellus justo lorem</h3> |
131 |
| - <p>Eget mattis at, laoreet vel et velit aliquam diam ante, aliquet sit amet vulputate. Eget mattis at, laoreet vel velit lorem.</p> |
132 |
| - </section> |
133 |
| - </div> |
134 |
| - <div className="6u 12u(mobile)" style={this.getMobileWidth()}> |
135 |
| - <section> |
136 |
| - <h3 className="icon fa-cog">Tempus sed pretium orci</h3> |
137 |
| - <p>Eget mattis at, laoreet vel et velit aliquam diam ante, aliquet sit amet vulputate. Eget mattis at, laoreet vel velit lorem.</p> |
138 |
| - </section> |
139 |
| - </div> |
140 |
| - </div> |
141 |
| - <div className="row"> |
142 |
| - <div className="6u 12u(mobile)" style={this.getMobileWidth()}> |
143 |
| - <section> |
144 |
| - <h3 className="icon fa-wrench">Aliquam consequat et feugiat</h3> |
145 |
| - <p>Eget mattis at, laoreet vel et velit aliquam diam ante, aliquet sit amet vulputate. Eget mattis at, laoreet vel velit lorem.</p> |
146 |
| - </section> |
147 |
| - </div> |
148 |
| - <div className="6u 12u(mobile)" style={this.getMobileWidth()}> |
149 |
| - <section> |
150 |
| - <h3 className="icon fa-check">Dolore laoreet aliquam mattis</h3> |
151 |
| - <p>Eget mattis at, laoreet vel et velit aliquam diam ante, aliquet sit amet vulputate. Eget mattis at, laoreet vel velit lorem.</p> |
152 |
| - </section> |
153 |
| - </div> |
154 |
| - </div> |
155 |
| - </div> |
156 |
| - {/* End Feature List */} |
157 |
| - <ul className="actions actions-centered"> |
158 |
| - <li><a href="#" className="button style1 big">Get Started</a></li> |
159 |
| - <li><a href="#" className="button style2 big">More Info</a></li> |
160 |
| - </ul> |
161 |
| - </section> |
162 |
| - {/* End Features */} |
163 |
| - |
164 |
| - </div> |
165 |
| - </div> |
166 |
| - {/* End Main */} |
167 |
| - |
168 |
| - {/* Footer */} |
169 |
| - <div id="footer-wrapper" className="wrapper"> |
170 |
| - <div className="title">The Rest Of It</div> |
171 |
| - <div id="footer" className="container"> |
172 |
| - <header className="style1"> |
173 |
| - <h2>Get In Touch</h2> |
174 |
| - <p> |
175 |
| - Sed turpis tortor, tincidunt sed ornare in metus porttitor mollis nunc in aliquet.<br /> Nam pharetra laoreet imperdiet volutpat etiam consequat feugiat. |
176 |
| - </p> |
177 |
| - </header> |
178 |
| - <hr /> |
179 |
| - <Contact mobileWidth={this.getMobileWidth()}/> |
180 |
| - <hr /> |
181 |
| - </div> |
182 |
| - <div id="copyright"> |
183 |
| - <ul> |
184 |
| - <li>Joey Gryder © {(new Date()).getFullYear()}</li> |
185 |
| - <li>Design: <a href="http://html5up.net">HTML5 UP</a></li> |
186 |
| - </ul> |
187 |
| - </div> |
188 |
| - </div> |
189 |
| - {/* End Footer */} |
190 |
| - |
191 |
| - </div> |
192 |
| - </div > |
| 55 | + <Route exact path="/" |
| 56 | + render={(props) => |
| 57 | + <Home {...props} mobileWidth={this.getMobileWidth()}/> |
| 58 | + } |
| 59 | + /> |
| 60 | + <Route exact path="/portfolio" |
| 61 | + render={(props) => |
| 62 | + <Portfolio {...props} mobileWidth={this.getMobileWidth()}/> |
| 63 | + } |
| 64 | + /> |
193 | 65 | </div>
|
194 | 66 | );
|
195 | 67 | }
|
|
0 commit comments