aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/index.tsx49
1 files changed, 41 insertions, 8 deletions
diff --git a/src/index.tsx b/src/index.tsx
index 7af6098..0d05155 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import ReactDOM from 'react-dom';
-import { makeStyles, Button, Typography } from '@material-ui/core';
+import { makeStyles, Button, Link } from '@material-ui/core';
import {
BenzinThemeProvider,
@@ -34,16 +34,36 @@ const headerContents = {
'another page': null,
};
-const renderItem: React.FC<RenderPropTypes> = ({ index, style}) => {
- return (
- <Typography variant="h3" style={style} component="div"> {index} </Typography>
- );
-};
const App: React.FC = () => {
const classes = useStyles();
const [page, setPage] = useState('home');
+ const renderItem: React.FC<RenderPropTypes> = ({ index, style}) => {
+ return (
+ <div style={style} className={classes.window}>
+ <ContentSection sectionName={`Item ${index+1}`}>
+ <p>
+ Fusce commodo. Vestibulum convallis, lorem a tempus semper, dui dui euismod elit, vitae placerat urna tortor vitae lacus. Nullam libero mauris, consequat quis, varius et, dictum id, arcu. Mauris mollis tincidunt felis.
+ </p>
+ {(index % 2 === 0)?
+ (
+ <Button variant="contained" color="primary">
+ primary
+ </Button>
+ )
+ :
+ (
+ <Button variant="contained" color="secondary">
+ secondary
+ </Button>
+ )
+ }
+ </ContentSection>
+ </div>
+ );
+ };
+
return (
<BenzinThemeProvider>
<Header
@@ -59,7 +79,7 @@ const App: React.FC = () => {
<div className={classes.window}>
<ContentSection sectionName="Library preview">
<p>
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pellentesque dapibus suscipit ligula. Donec posuere augue in quam. Etiam vel tortor sodales tellus ultricies commodo. Suspendisse potenti. Aenean in sem ac leo mollis blandit. Donec neque quam, dignissim in, mollis nec, sagittis eu, wisi. <Link href="#">Phasellus lacus.</Link> Etiam laoreet quam sed arcu. Phasellus at dui in ligula mollis ultricies. Integer placerat tristique nisl. Praesent augue. Fusce commodo.
</p>
<Button variant="contained" color="secondary">
secondary
@@ -68,9 +88,22 @@ const App: React.FC = () => {
primary
</Button>
</ContentSection>
+ <ContentSection sectionName="Content section">
+ <p>
+ Fusce suscipit, wisi nec facilisis facilisis, est dui fermentum leo, quis tempor ligula erat quis odio. Nunc porta vulputate tellus. Nunc rutrum turpis sed pede. Sed bibendum. Aliquam posuere.
+ </p>
+ <p>
+ <Link href="#">Link example</Link>
+ </p>
+ </ContentSection>
+ <ContentSection sectionName="Content section">
+ <p>
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan <Link href="#">nulla</Link>. Nullam rutrum. Nam vestibulum accumsan nisl. Pellentesque dapibus suscipit ligula.
+ </p>
+ </ContentSection>
</div>
</Window>
- <Window type="secondary" name="SmartList test window">
+ <Window type="secondary" name="SmartList preview window">
<SmartList
itemSize={270}
itemCount={100}