Skip to content

Commit

Permalink
chore: lean into chakra UI
Browse files Browse the repository at this point in the history
Signed-off-by: Brooks Townsend <[email protected]>
  • Loading branch information
brooksmtownsend committed Oct 31, 2023
1 parent 09a8e40 commit 4a1112b
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 206 deletions.
5 changes: 2 additions & 3 deletions xkcdgenerator/ui/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"files": {
"main.js": "/static/js/main.49004617.js",
"static/js/27.2a45638c.chunk.js": "/static/js/27.2a45638c.chunk.js",
"main.js": "/static/js/main.882e2eaf.js",
"index.html": "/index.html"
},
"entrypoints": [
"static/js/main.49004617.js"
"static/js/main.882e2eaf.js"
]
}
2 changes: 1 addition & 1 deletion xkcdgenerator/ui/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/apple-touch-icon.png"/><link rel="manifest" href="/manifest.json"/><title>Cosmonic XKCD</title><script defer="defer" src="/static/js/main.49004617.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/apple-touch-icon.png"/><link rel="manifest" href="/manifest.json"/><title>Cosmonic XKCD</title><script defer="defer" src="/static/js/main.882e2eaf.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1 change: 0 additions & 1 deletion xkcdgenerator/ui/build/static/js/27.2a45638c.chunk.js

This file was deleted.

2 changes: 0 additions & 2 deletions xkcdgenerator/ui/build/static/js/main.49004617.js

This file was deleted.

2 changes: 2 additions & 0 deletions xkcdgenerator/ui/build/static/js/main.882e2eaf.js

Large diffs are not rendered by default.

49 changes: 18 additions & 31 deletions xkcdgenerator/ui/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
Box,
Button,
VStack,
Flex,
Grid,
Text,
theme,
Expand Down Expand Up @@ -52,39 +53,25 @@ function App() {
<Image
src="Cosmonic.Logo-Hrztl_Color.svg" // Update with the correct path
alt="Cosmonic Logo"
style={{
position: 'absolute',
bottom: 0,
right: 0,
padding: '8px',
width: '18rem'
}}
pos="absolute"
bottom="0"
right="0"
p={2}
w="18rem"
/>
</a>
<div style={{
position: 'absolute',
bottom: 0,
left: 0,
display: 'flex',
flexDirection: 'column',
}}>
<b><h1>Keep going!</h1></b>
<a href="https://new.cosmonic.app/?yaml=https://raw.githubusercontent.com/cosmonic/awesome-cosmonic/main/xkcdgenerator/xkcd-generator-cosmonic.wadm.yaml" target="_blank" rel="noreferrer">
<Button margin="4px" width="100%" textAlign="left" textColor="#685BC7">
Step 1: Deploy on Cosmonic
</Button>
</a>
<a href="https://new.cosmonic.app/?yaml=https://raw.githubusercontent.com/cosmonic/awesome-cosmonic/main/xkcdgenerator/xkcd-generator-stargate.wadm.yaml" target="_blank" rel="noreferrer">
<Button margin="4px" width="100%" textAlign="left" textColor="#685BC7">
Step 2. Distribute to your Edge
</Button>
</a>
<a href="https://cosmonic.com/docs/getting-started/makeityourown" target="_blank" rel="noreferrer">
<Button margin="4px" width="100%" textAlign="left" textColor="#685BC7">
Step 3. Make it Your Own
</Button>
</a>
</div>
<Flex align="center" justify="center" pos="absolute" direction="column" bottom="20" left="5">
<Text as="h3" fontSize="xl">Keep going!</Text>
<Button as="a" href="https://new.cosmonic.app/?yaml=https://raw.githubusercontent.com/cosmonic/awesome-cosmonic/main/xkcdgenerator/xkcd-generator-cosmonic.wadm.yaml" target="_blank" rel="noreferrer" margin="4px" width="100%" textAlign="left" textColor="#685BC7">
Step 1: Deploy on Cosmonic
</Button>
<Button as="a" href="https://new.cosmonic.app/?yaml=https://raw.githubusercontent.com/cosmonic/awesome-cosmonic/main/xkcdgenerator/xkcd-generator-stargate.wadm.yaml" target="_blank" rel="noreferrer" margin="4px" width="100%" textAlign="left" textColor="#685BC7">
Step 2. Distribute to your Edge
</Button>
<Button as="a" href="https://cosmonic.com/docs/getting-started/makeityourown" target="_blank" rel="noreferrer" margin="4px" width="100%" textAlign="left" textColor="#685BC7">
Step 3. Make it Your Own
</Button>
</Flex>
</Box>
</ChakraProvider >
);
Expand Down
15 changes: 1 addition & 14 deletions xkcdgenerator/ui/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import { ColorModeScript } from '@chakra-ui/react';
import React, { StrictMode } from 'react';
import * as ReactDOM from 'react-dom/client';
import App from './App';
import reportWebVitals from './reportWebVitals';
import * as serviceWorker from './serviceWorker';

const container = document.getElementById('root');
const root = ReactDOM.createRoot(container);

Expand All @@ -13,14 +10,4 @@ root.render(
<ColorModeScript />
<App />
</StrictMode>
);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://cra.link/PWA
serviceWorker.unregister();

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
);
13 changes: 0 additions & 13 deletions xkcdgenerator/ui/src/reportWebVitals.js

This file was deleted.

141 changes: 0 additions & 141 deletions xkcdgenerator/ui/src/serviceWorker.js

This file was deleted.

0 comments on commit 4a1112b

Please sign in to comment.