Skip to content

Commit 35b04d4

Browse files
committed
Make the upside down demo page display upside down
1 parent d5d78ee commit 35b04d4

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

demo/src/App.css

+1
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@
3131
transform: rotate(360deg);
3232
}
3333
}
34+

demo/src/App.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ With many cheerful facts about the square of the hypotenuse.`
2121
<div className="App" style={{ margin: '5vh' }}>
2222
<header className="App-header">
2323
<h1>talk-like-a</h1>
24-
<p>{filter('Transform plain English text in various comedic ways.')}</p>
24+
<p className={filterName}>{filter('Transform plain English text in various comedic ways.')}</p>
2525
<ul>
2626
<li>
2727
Github:{' '}
@@ -59,7 +59,7 @@ With many cheerful facts about the square of the hypotenuse.`
5959
onChange={(e) => setPlainText(e.target.value)}
6060
/>
6161
</p>
62-
<pre>{filter(plainText)}</pre>
62+
<pre className={filterName}>{filter(plainText)}</pre>
6363
</main>
6464
</div>
6565
);

demo/src/index.css

+7
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ code {
1111
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
1212
monospace;
1313
}
14+
15+
.upsidedown {
16+
transform: rotate(180deg);
17+
text-align: right;
18+
transition: transform 1s;
19+
transform: text-align 1s;
20+
}

0 commit comments

Comments
 (0)