Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

Commit

Permalink
enhance home page design
Browse files Browse the repository at this point in the history
  • Loading branch information
hasyee committed Dec 9, 2016
1 parent c5062c8 commit 1636b24
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 24 deletions.
4 changes: 4 additions & 0 deletions public/reset.css
Expand Up @@ -46,4 +46,8 @@ q:before, q:after {
table {
border-collapse: collapse;
border-spacing: 0;
}

p {
margin: 5px 0px;
}
62 changes: 38 additions & 24 deletions src/app/components/DescriptionPage.jsx
@@ -1,39 +1,53 @@
import React from "react";
import { switchPage } from "../actions";
import { Card, CardHeader, CardText, CardActions } from 'material-ui/Card';
import { Card, CardHeader, CardText, CardActions, CardTitle } from 'material-ui/Card';
import RaisedButton from 'material-ui/RaisedButton';
import RightArrow from 'material-ui/svg-icons/hardware/keyboard-arrow-right';

export default class DescriptionPage extends React.Component {

render() {
return (
<Card
<div
style={{
margin: "3em auto",
width: "800px",
maxWidth: "96%"
display: "flex",
flex: "1 1 auto",
flexDirection: "column",
alignItems: "center"
}}
>
<Card
style={{
flex: "0 0 auto",
margin: "3em auto",
width: "50%",
minWidth: "500px",
maxWidth: "96%"
}}
>
<CardHeader
title='React example client for JayStack OData v4 Server'
>

</CardHeader>
<CardText>
This example React.js client consumes JayStack OData v4 Server example service <a href="http://jaydata.org/jaystack-odata-v4-server">http://jaydata.org/jaystack-odata-v4-server</a>. You can find the source of this client here (link). Build your own OData v4 Server step-by-step by following this tutorial <a href="https://github.com/jaystack/odata-v4-server-react-client-example">https://github.com/jaystack/odata-v4-server-react-client-example</a>
</CardText>
<CardActions>
<RaisedButton
label="Go to Categories page"
labelPosition="before"
fullWidth={true}
icon={<RightArrow />}
primary={true}
onClick={() => switchPage("categories")}
/>
</CardActions>
</Card>
<CardTitle style={{fontSize: '150%'}}>React example client for JayStack OData v4 Server</CardTitle>
<CardText style={{lineHeight: '1.5em'}}>
<p>This example React.js client consumes JayStack OData v4 Server example service</p>
<p><a href="http://jaydata.org/jaystack-odata-v4-server" target="_blank">http://jaydata.org/jaystack-odata-v4-server</a></p>
<p>You can find the source of this client here (link). Build your own OData v4 Server step-by-step by following this tutorial</p>
<p><a href="https://github.com/jaystack/odata-v4-server-react-client-example" target="_blank">https://github.com/jaystack/odata-v4-server-react-client-example</a></p>
</CardText>
<CardActions
style={{
display: "flex",
justifyContent: "flex-end"
}}
>
<RaisedButton
label="Go to Categories page"
labelPosition="before"
icon={<RightArrow />}
primary={true}
onClick={() => switchPage("categories")}
/>
</CardActions>
</Card>
</div>
);
}

Expand Down

0 comments on commit 1636b24

Please sign in to comment.