diff --git a/client/public/favicon/android-chrome-192x192.png b/client/public/favicon/android-chrome-192x192.png new file mode 100644 index 0000000..c097362 Binary files /dev/null and b/client/public/favicon/android-chrome-192x192.png differ diff --git a/client/public/favicon/android-chrome-512x512.png b/client/public/favicon/android-chrome-512x512.png new file mode 100644 index 0000000..52660f3 Binary files /dev/null and b/client/public/favicon/android-chrome-512x512.png differ diff --git a/client/public/favicon/apple-touch-icon.png b/client/public/favicon/apple-touch-icon.png new file mode 100644 index 0000000..28050c9 Binary files /dev/null and b/client/public/favicon/apple-touch-icon.png differ diff --git a/client/public/favicon/browserconfig.xml b/client/public/favicon/browserconfig.xml new file mode 100644 index 0000000..c1d2317 --- /dev/null +++ b/client/public/favicon/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #2d89ef + + + diff --git a/client/public/favicon/favicon-16x16.png b/client/public/favicon/favicon-16x16.png new file mode 100644 index 0000000..10dfff1 Binary files /dev/null and b/client/public/favicon/favicon-16x16.png differ diff --git a/client/public/favicon/favicon-32x32.png b/client/public/favicon/favicon-32x32.png new file mode 100644 index 0000000..8feefcc Binary files /dev/null and b/client/public/favicon/favicon-32x32.png differ diff --git a/client/public/favicon/favicon.ico b/client/public/favicon/favicon.ico new file mode 100644 index 0000000..bc71f25 Binary files /dev/null and b/client/public/favicon/favicon.ico differ diff --git a/client/public/favicon/mstile-144x144.png b/client/public/favicon/mstile-144x144.png new file mode 100644 index 0000000..b67d8e6 Binary files /dev/null and b/client/public/favicon/mstile-144x144.png differ diff --git a/client/public/favicon/mstile-150x150.png b/client/public/favicon/mstile-150x150.png new file mode 100644 index 0000000..8ae4552 Binary files /dev/null and b/client/public/favicon/mstile-150x150.png differ diff --git a/client/public/favicon/mstile-310x150.png b/client/public/favicon/mstile-310x150.png new file mode 100644 index 0000000..fda3f42 Binary files /dev/null and b/client/public/favicon/mstile-310x150.png differ diff --git a/client/public/favicon/mstile-310x310.png b/client/public/favicon/mstile-310x310.png new file mode 100644 index 0000000..ec64c09 Binary files /dev/null and b/client/public/favicon/mstile-310x310.png differ diff --git a/client/public/favicon/mstile-70x70.png b/client/public/favicon/mstile-70x70.png new file mode 100644 index 0000000..e83aa96 Binary files /dev/null and b/client/public/favicon/mstile-70x70.png differ diff --git a/client/public/favicon/safari-pinned-tab.svg b/client/public/favicon/safari-pinned-tab.svg new file mode 100644 index 0000000..f6cc3b0 --- /dev/null +++ b/client/public/favicon/safari-pinned-tab.svg @@ -0,0 +1,78 @@ + + + + +Created by potrace 1.14, written by Peter Selinger 2001-2017 + + + + + + + diff --git a/client/public/favicon/site.webmanifest b/client/public/favicon/site.webmanifest new file mode 100644 index 0000000..5eb5e44 --- /dev/null +++ b/client/public/favicon/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "/favicon/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/favicon/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/client/public/index.html b/client/public/index.html index 7636761..d84efd7 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -2,15 +2,22 @@ - - + + + + + + + + + - CSPR.click app + Code of Creation diff --git a/client/src/apiClient.ts b/client/src/apiClient.ts index 29fdc3f..ebfdaba 100644 --- a/client/src/apiClient.ts +++ b/client/src/apiClient.ts @@ -1,6 +1,6 @@ import axios from 'axios'; -const url = "http://ec2-18-191-174-59.us-east-2.compute.amazonaws.com:3001" +const url = "" export async function claim(publicKey: string): Promise { const data = { publicKey: publicKey }; @@ -28,7 +28,7 @@ export async function checkUser(publicKey: string): Promise { } export async function checkMax(): Promise { - const response = await axios.get(`${url}:3001/max`); + const response = await axios.get(`${url}/max`); if (response.status == 200) { return response.data as boolean; diff --git a/client/src/components/Instructions.tsx b/client/src/components/Instructions.tsx index c012df6..14db8c9 100644 --- a/client/src/components/Instructions.tsx +++ b/client/src/components/Instructions.tsx @@ -42,7 +42,11 @@ export default function Instructions(props: InstructionsProps) { } async function connectWallet() { - console.log(await clickRef?.signIn()); + if (!(await clickRef?.isProviderPresent('casper-wallet'))) { + alert('Please visit this website from the browser in the Casper Wallet app to sign in.'); + return; + } + console.log(await clickRef?.connect('casper-wallet')); } function openCasperWalletInstall() { diff --git a/client/src/components/Welcome.tsx b/client/src/components/Welcome.tsx index 0da12e0..e87a3b2 100644 --- a/client/src/components/Welcome.tsx +++ b/client/src/components/Welcome.tsx @@ -8,7 +8,8 @@ const Container = styled.div(({ theme }) => backgroundImage: `url("${background}")`, backgroundRepeat: 'no-repeat', backgroundSize: 'cover', - backgroundPosition: ['top 50% center', 'top 80% center', 'center', 'top 35% center'], + //backgroundPosition: ['top 50% center', 'top 80% center', 'center', 'top 35% center'], + backgroundPosition: ['top 50% center', 'top 80% center', 'bottom 30% center'], position: 'absolute', top: 40, left: 0, @@ -26,6 +27,10 @@ const HeadingContainer = styled.div(({ theme }) => h2: { color: 'white', }, + position: 'absolute', + bottom: [80, 50], + left: '50%', + transform: 'translateX(-50%)', }) ); @@ -44,7 +49,7 @@ export const Welcome = () => { -

A Collaboration between Dario De Siena & Casper.Network

+

A Collaboration between Dario De Siena & Casper Network

);