forked from piotrwitek/react-redux-typescript-jspm-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.tsx
62 lines (60 loc) · 2.26 KB
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import * as React from 'react';
import { PageSection } from '../../components/page-section';
import { PageHeader } from '../../components/page-header';
import { containerStyles } from './container-styles';
export function CssModulesContainer() {
return (
<article>
<PageHeader>CSS Modules</PageHeader>
<p>
Own concept to achieve locally scoped CSS styles
using <a href="https://github.com/rtsao/csjs#faq">(csjs)</a> with
statically typed CSS class-names using TypeScript.
</p>
<ul>
<li>
Full CSS support with pseudo-classes & media queries, encapsulated in
ES6 Modules that can be nicely imported by your UI components.
</li>
<li>
Define interfaces with your CSS classes and you get className property
type-checking, solid auto-completion and easy refactoring.
You can also add doc comments and auto-generate docs of your styles
library for your team and utilize IntelliSense features of your IDE.
</li>
</ul>
<br />
<PageSection className={containerStyles.textCentered}>
<div className={containerStyles.effect__hideOnTablet}>
<div className={[containerStyles.darkBg, containerStyles.effect__elevate].join(' ')}>
<p className={containerStyles.glowingText}>
<br />
Hover me!
<br />
<small><i>(narrow your window)</i></small>
</p>
</div>
</div>
<div className={containerStyles.effect__showOnTablet}>
<div className={[containerStyles.darkBg, containerStyles.effect__elevate].join(' ')}>
<p className={containerStyles.glowingText}>
SUPRISE!!!
</p>
</div>
</div>
</PageSection>
<br />
<p className="u-centered">
Source code: <a
href="https://github.com/piotrwitek/react-redux-typescript-starter-kit/tree/master/src/containers/css-modules-container">
Link to GitHub
</a>
</p>
<br />
<div className="u-centered">
<iframe width="560" height="315" src="https://www.youtube.com/embed/67pPYqom2a0" frameBorder="0" allowFullScreen></iframe>
</div>
<br />
</article>
);
};