Skip to content

Commit

Permalink
Merge pull request #1 from trechriron/trentin-basic-layout-v1
Browse files Browse the repository at this point in the history
Basic structure including inline styles for our basic layout.
  • Loading branch information
trechriron authored Dec 6, 2023
2 parents bb2e8c1 + dd704c2 commit 7bb65d7
Show file tree
Hide file tree
Showing 11 changed files with 206 additions and 13 deletions.
27 changes: 27 additions & 0 deletions src/App/DevForm.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const devStyles = {
header: {
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100%",
width: "100%",
fontSize: "2rem",
},
body: {
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
height: "300px",
width: "100%",
},
};

return (
<div>
<Widget src="monkeypatcher.near/App.Header" trust={{ mode: "trusted-author" }} />
<h1 style={devStyles.header}>DEV FORM</h1>
<div style={devStyles.body}></div>
<div><Widget src="monkeypatcher.near/App.Footer" trust={{ mode: "trusted-author" }} /></div>
</div>
);
28 changes: 28 additions & 0 deletions src/App/DevResultPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const devResultStyles = {
header: {
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100%",
width: "100%",
fontSize: "2rem",
},
body: {
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
height: "300px",
width: "100%",
},
};

return (
<div>
<Widget src="monkeypatcher.near/App.Header" trust={{ mode: "trusted-author" }} />
<h1 style={devResultStyles.header}>DEV RESULT</h1>
<p>Result line graph from data for dev usage.</p>
<div><Widget src="monkeypatcher.near/App.Footer" trust={{ mode: "trusted-author" }} /></div>
</div>

)
32 changes: 32 additions & 0 deletions src/App/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const footerStyles = {
row: {
display: "flex",
flexDirection: "row",
justifyContent: "space-around",
alignItems: "center",
padding: "10px",
backgroundColor: 'black',
color: 'white',
},
column: {
display: "flex",
flexDirection: "column",
justifyContent: "space-around",
},
}

return (
<div>
<div style={footerStyles.row}>
<div style={footerStyles.column}>
<a href="/monkeypatcher.near/scc">HOME</a>
</div>
<div style={footerStyles.column}>
<a href="/monkeypatcher.near/App.ProviderForm">PROVIDER FORM</a>
</div>
<div style={footerStyles.column}>
<a href="/monkeypatcher.near/App.DevForm" >DEVELOPER FORM</a>
</div>
</div>
</div>
);
32 changes: 32 additions & 0 deletions src/App/Header.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const headerStyles = {
header: {
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100%",
width: "100%",
fontSize: "2rem",
},
row: {
display: "flex",
flexDirection: "row",
justifyContent: "space-around",
alignItems: "center",
padding: "10px",
backgroundColor: 'black',
color: 'white',
},
column: {
display: "flex",
flexDirection: "column",
justifyContent: "space-around",
},
}

return (
<div>
<div style={headerStyles.row}>
<h1 style={headerStyles.header}>BOS Services Calculator</h1>
</div>
</div>
);
1 change: 0 additions & 1 deletion src/App/Landing.jsx

This file was deleted.

1 change: 0 additions & 1 deletion src/App/Main.jsx

This file was deleted.

28 changes: 28 additions & 0 deletions src/App/ProviderForm.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const providerStyles = {
header: {
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100%",
width: "100%",
fontSize: "2rem",
},
body: {
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
height: "300px",
width: "100%",
},
};

return (
<div>
<Widget src="monkeypatcher.near/App.Header" trust={{ mode: "trusted-author" }} />
<h1 style={providerStyles.header}>PROVIDER FORM</h1>
<div style={providerStyles.body}></div>
<div><Widget src="monkeypatcher.near/App.Footer" trust={{ mode: "trusted-author" }} /></div>
</div>
);
ß
28 changes: 28 additions & 0 deletions src/App/ProviderResultPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const providerResultStyles = {
header: {
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100%",
width: "100%",
fontSize: "2rem",
},
body: {
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
height: "300px",
width: "100%",
},
};


return (
<div>
<Widget src="monkeypatcher.near/App.Header" trust={{ mode: "trusted-author" }} />
<h1 style={providerResultStyles.header}>PROVIDER RESULT</h1>
<p>Result line graph and info for provider form data.</p>
<div><Widget src="monkeypatcher.near/App.Footer" trust={{ mode: "trusted-author" }} /></div>
</div>
);
8 changes: 0 additions & 8 deletions src/HelloWorld.jsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/RootContent.jsx

This file was deleted.

31 changes: 31 additions & 0 deletions src/scc.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const sccStyles = {
row: {
display: "flex",
flexDirection: "row",
justifyContent: "space-around",
alignItems: "center",
padding: "10px",
},
column: {
display: "flex",
flexDirection: "column",
justifyContent: "space-around",
},
};

// <Widget src="monkeypatcher.near/App.DevForm" trust={{ mode: "trusted-author" }} />

return (
<div>
<Widget src="monkeypatcher.near/App.Header" trust={{ mode: "trusted-author" }} />
<div style={sccStyles.row}></div>
<div style={sccStyles.row}>
<div style={sccStyles.column}>
<a href="/monkeypatcher.near/App.ProviderForm">I want to be a Provider of Services</a>
</div>
<div style={sccStyles.column}>
<a href="/monkeypatcher.near/App.DevForm" >I want to develop an app on the BOS</a>
</div>
</div>
</div>
);

0 comments on commit 7bb65d7

Please sign in to comment.