forked from nodegui/nodegui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodeExample.js
More file actions
42 lines (39 loc) · 987 Bytes
/
CodeExample.js
File metadata and controls
42 lines (39 loc) · 987 Bytes
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
import React from "react";
import { SplitView } from "../components/SplitView";
import styled from "styled-components";
const Image = styled.img`
max-height: 300px;
padding-bottom: 40px;
`;
export const CodeExample = () => {
const ColumnOne = () => {
return (
<div>
<Image src="img/code-sample.png" />
</div>
);
};
const ColumnTwo = () => {
return (
<div>
<h3>Written in JavaScript—rendered with native code by Qt</h3>
<p>
Apps can be built completely in JavaScript. This enables native app
development for whole new teams of developers, and can let existing
native teams work much faster.
</p>
<p>
With NodeGui you get flexibility of web and performance of Native
desktop apps.
</p>
</div>
);
};
return (
<SplitView
columnOneClass={"text"}
columnOne={<ColumnTwo />}
columnTwo={<ColumnOne />}
/>
);
};