You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Translation/src/app.tsx

42 lines
969 B

import { Text, Window, hot, View } from "@nodegui/react-nodegui";
import React from "react";
import { StepOne } from "./components/stepone";
import { StepTwo } from "./components/steptwo";
const minSize = { width: 500, height: 500 };
class App extends React.Component {
render() {
return (
<Window windowTitle="Hello 👋🏽" minSize={minSize} styleSheet={styleSheet}>
<View style={containerStyle}>
<Text id="welcome-text">Welcome to NodeGui 🐕</Text>
<Text id="step-1">1. Play around</Text>
<StepOne />
<Text id="step-2">2. Debug</Text>
<StepTwo />
</View>
</Window>
);
}
}
const containerStyle = `
flex: 1;
`;
const styleSheet = `
#welcome-text {
font-size: 24px;
padding-top: 20px;
qproperty-alignment: 'AlignHCenter';
}
#step-1, #step-2 {
font-size: 18px;
padding-top: 10px;
padding-horizontal: 20px;
}
`;
export default hot(App);