Skip to content

Commit ba9095d

Browse files
committed
fixed links and css-modules path
1 parent 03c98fe commit ba9095d

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

src/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ function App() {
1919
<Router history={history}>
2020
<Route component={MainLayout}>
2121
<Route path="/" component={HomeContainer}/>
22-
<Route path="/about" component={CssModulesContainer}/>
2322
<Route path="/currency-converter" component={CurrencyConverterContainer}/>
23+
<Route path="/css-modules" component={CssModulesContainer}/>
2424
</Route>
2525
</Router>
2626
</Provider>

src/containers/css-modules-container/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ export function CssModulesContainer() {
3030
<div className={containerStyles.effect__hideOnMobile}>
3131
<div className={[containerStyles.darkBg, containerStyles.effect__elevate].join(' ')}>
3232
<p className={containerStyles.glowingText}>
33-
Shrink your window
33+
<br />
34+
Hover me!
35+
<br />
36+
<small className="c-text--quiet">(narrow your window)</small>
3437
</p>
3538
</div>
3639
</div>

src/containers/home-container/index.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as React from 'react';
2+
import { Link } from 'react-router';
23
import { PageSection } from '../../components/page-section';
34
import { PageHero } from '../../components/page-hero';
45

@@ -11,15 +12,19 @@ export function HomeContainer() {
1112
Below you can find a few examples created using concepts of this starter-kit:
1213
</p>
1314
<ul>
14-
<li><a href="/#/currency-converter"> Currency Converter App</a> - (work in progress)</li>
15-
<li><a href="/#/about"> CSS Modules </a></li>
15+
<li>
16+
<Link to="/currency-converter">Currency Converter App</Link> - (work in progress)
17+
</li>
18+
<li>
19+
<Link to="/css-modules">CSS Modules</Link>
20+
</li>
1621
</ul>
22+
<br />
1723
<div className="c-alerts__alert c-alerts__alert--primary">
1824
Note: Open Redux DevTools Inspector
1925
</div>
2026
</PageSection>
2127
<br />
22-
<br />
2328
</article>
2429
);
2530
};

src/layouts/main-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class MainLayout extends React.Component<{}, {}> {
1515
<LayoutTopNav>
1616
<LayoutTopNavLink href="/" isPrimary> Home </LayoutTopNavLink>
1717
<LayoutTopNavLink href="/currency-converter"> Currency Converter </LayoutTopNavLink>
18-
<LayoutTopNavLink href="/about"> CSS Modules </LayoutTopNavLink>
18+
<LayoutTopNavLink href="/css-modules"> CSS Modules </LayoutTopNavLink>
1919
</LayoutTopNav>
2020
</LayoutHeader>
2121

0 commit comments

Comments
 (0)