diff --git a/config-overrides.js b/config-overrides.js
index 5161229..4ac0c3a 100644
--- a/config-overrides.js
+++ b/config-overrides.js
@@ -1,16 +1,63 @@
-const { useBabelRc, override, addWebpackResolve} = require('customize-cra');
+// const { useBabelRc, override, addWebpackResolve, addWebpackPlugin} = require('customize-cra');
+// const { ProvidePlugin } = require('webpack');
-module.exports = override(
- // eslint-disable-next-line react-hooks/rules-of-hooks
- useBabelRc(),
- addWebpackResolve({
- fallback: {
- assert: require.resolve('assert'),
- buffer: require.resolve('buffer'),
- crypto: require.resolve('crypto-browserify'),
- fs: false,
- path: require.resolve('path-browserify'),
- stream: require.resolve('stream-browserify'),
- }
- })
-)
\ No newline at end of file
+// module.exports = override(
+// // eslint-disable-next-line react-hooks/rules-of-hooks
+// useBabelRc(),
+// addWebpackPlugin(
+// new ProvidePlugin({
+// Buffer: ['buffer', 'Buffer'],
+// }),
+// ),
+// addWebpackResolve({
+// fallback: {
+// assert: require.resolve('assert'),
+// buffer: require.resolve('buffer'),
+// crypto: require.resolve('crypto-browserify'),
+// fs: false,
+// path: require.resolve('path-browserify'),
+// stream: require.resolve('stream-browserify'),
+// }
+// }),
+
+// )
+
+const { ProvidePlugin } = require('webpack');
+
+module.exports = function (config, env) {
+ return {
+ ...config,
+ module: {
+ ...config.module,
+ rules: [
+ ...config.module.rules,
+ {
+ test: /\.(m?js|ts)$/,
+ enforce: 'pre',
+ use: ['source-map-loader'],
+ },
+ ],
+ },
+ plugins: [
+ ...config.plugins,
+ // new ProvidePlugin({
+ // process: 'process/browser',
+ // }),
+ new ProvidePlugin({
+ Buffer: ['buffer', 'Buffer'],
+ }),
+ ],
+ resolve: {
+ ...config.resolve,
+ fallback: {
+ assert: require.resolve('assert'),
+ buffer: require.resolve('buffer'),
+ stream: require.resolve('stream-browserify'),
+ crypto: require.resolve('crypto-browserify'),
+ fs: false,
+ path: require.resolve('path-browserify'),
+ },
+ },
+ ignoreWarnings: [/Failed to parse source map/],
+ };
+};
\ No newline at end of file
diff --git a/public/CivicLogos/Icon/civic-icon-black.png b/public/CivicLogos/Icon/civic-icon-black.png
new file mode 100644
index 0000000..3684042
Binary files /dev/null and b/public/CivicLogos/Icon/civic-icon-black.png differ
diff --git a/public/CivicLogos/Icon/civic-icon-black.svg b/public/CivicLogos/Icon/civic-icon-black.svg
new file mode 100644
index 0000000..1eb2524
--- /dev/null
+++ b/public/CivicLogos/Icon/civic-icon-black.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/public/CivicLogos/Icon/civic-icon-dark.png b/public/CivicLogos/Icon/civic-icon-dark.png
new file mode 100644
index 0000000..0381b76
Binary files /dev/null and b/public/CivicLogos/Icon/civic-icon-dark.png differ
diff --git a/public/CivicLogos/Icon/civic-icon-dark.svg b/public/CivicLogos/Icon/civic-icon-dark.svg
new file mode 100644
index 0000000..d7835c8
--- /dev/null
+++ b/public/CivicLogos/Icon/civic-icon-dark.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/public/CivicLogos/Icon/civic-icon-orange.png b/public/CivicLogos/Icon/civic-icon-orange.png
new file mode 100644
index 0000000..b6f6187
Binary files /dev/null and b/public/CivicLogos/Icon/civic-icon-orange.png differ
diff --git a/public/CivicLogos/Icon/civic-icon-orange.svg b/public/CivicLogos/Icon/civic-icon-orange.svg
new file mode 100644
index 0000000..90e7fa6
--- /dev/null
+++ b/public/CivicLogos/Icon/civic-icon-orange.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/public/CivicLogos/Icon/civic-icon-white.png b/public/CivicLogos/Icon/civic-icon-white.png
new file mode 100644
index 0000000..1a6803d
Binary files /dev/null and b/public/CivicLogos/Icon/civic-icon-white.png differ
diff --git a/public/CivicLogos/Icon/civic-icon-white.svg b/public/CivicLogos/Icon/civic-icon-white.svg
new file mode 100644
index 0000000..4e24cb9
--- /dev/null
+++ b/public/CivicLogos/Icon/civic-icon-white.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/public/CivicLogos/Logo/civic-logo-black.png b/public/CivicLogos/Logo/civic-logo-black.png
new file mode 100644
index 0000000..7d22646
Binary files /dev/null and b/public/CivicLogos/Logo/civic-logo-black.png differ
diff --git a/public/CivicLogos/Logo/civic-logo-black.svg b/public/CivicLogos/Logo/civic-logo-black.svg
new file mode 100644
index 0000000..641f6d1
--- /dev/null
+++ b/public/CivicLogos/Logo/civic-logo-black.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/public/CivicLogos/Logo/civic-logo-dark.png b/public/CivicLogos/Logo/civic-logo-dark.png
new file mode 100644
index 0000000..3937b80
Binary files /dev/null and b/public/CivicLogos/Logo/civic-logo-dark.png differ
diff --git a/public/CivicLogos/Logo/civic-logo-dark.svg b/public/CivicLogos/Logo/civic-logo-dark.svg
new file mode 100644
index 0000000..deed906
--- /dev/null
+++ b/public/CivicLogos/Logo/civic-logo-dark.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/public/CivicLogos/Logo/civic-logo-orange.png b/public/CivicLogos/Logo/civic-logo-orange.png
new file mode 100644
index 0000000..bb4756f
Binary files /dev/null and b/public/CivicLogos/Logo/civic-logo-orange.png differ
diff --git a/public/CivicLogos/Logo/civic-logo-orange.svg b/public/CivicLogos/Logo/civic-logo-orange.svg
new file mode 100644
index 0000000..e7fdf5d
--- /dev/null
+++ b/public/CivicLogos/Logo/civic-logo-orange.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/public/CivicLogos/Logo/civic-logo-white.png b/public/CivicLogos/Logo/civic-logo-white.png
new file mode 100644
index 0000000..52e7580
Binary files /dev/null and b/public/CivicLogos/Logo/civic-logo-white.png differ
diff --git a/public/CivicLogos/Logo/civic-logo-white.svg b/public/CivicLogos/Logo/civic-logo-white.svg
new file mode 100644
index 0000000..98870a8
--- /dev/null
+++ b/public/CivicLogos/Logo/civic-logo-white.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/App.css b/src/App.css
index b3f8fe0..ccd66d2 100644
--- a/src/App.css
+++ b/src/App.css
@@ -36,3 +36,5 @@
/* transform: rotate(360deg);*/
/* }*/
/*}*/
+
+/*civic orange: #FF6B4E*/
\ No newline at end of file
diff --git a/src/Logo.tsx b/src/Logo.tsx
index e585da7..f0a709e 100644
--- a/src/Logo.tsx
+++ b/src/Logo.tsx
@@ -7,6 +7,7 @@ import {
usePrefersReducedMotion,
} from "@chakra-ui/react"
import logo from "./logo.svg"
+import civicLogo from "./public/civic-logo-white.svg"
const spin = keyframes`
from { transform: rotate(0deg); }
@@ -19,6 +20,6 @@ export const Logo = forwardRef((props, ref) => {
const animation = prefersReducedMotion
? undefined
: `${spin} infinite 20s linear`
-
- return
+ //animation={animation}
+ return
})
\ No newline at end of file
diff --git a/src/components/CivicOrangeButton.tsx b/src/components/CivicOrangeButton.tsx
new file mode 100644
index 0000000..0e48f4e
--- /dev/null
+++ b/src/components/CivicOrangeButton.tsx
@@ -0,0 +1,16 @@
+
+import {Button} from "@chakra-ui/react";
+import {ReactNode} from "react"
+
+interface Props {
+ onClick?: any,
+ text?: ReactNode
+ // any props that come into the component
+}
+
+export const CivicOrangeButton = ({onClick, text, ...props}: Props) => {
+
+ return (
+
+ )
+}
\ No newline at end of file
diff --git a/src/components/Credential.tsx b/src/components/Credential.tsx
index 58b4b80..0f46ead 100644
--- a/src/components/Credential.tsx
+++ b/src/components/Credential.tsx
@@ -1,7 +1,8 @@
import {FC, useCallback, useState} from "react";
import {useCredentials} from "../hooks/useCredentials";
-import {extractMerkleProofFromCredential, getClaim, MerkleProof} from "../lib/credentials";
+import {extractMerkleProofFromCredential, getClaim, getSignature, MerkleProof} from "../lib/credentials";
import {VerifiableCredential} from "../types/VerifiableCredential";
+import { CivicOrangeButton } from "./CivicOrangeButton";
import {
Box, Button,
Container,
@@ -33,12 +34,14 @@ export const Credential: FC = () => {
const selectCredential = useCallback(async (credential: VerifiableCredential) => {
const merkle = extractMerkleProofFromCredential(credential, claimIdentifier);
const claim = getClaim(credential, claimIdentifier);
+ const signature = getSignature(credential, claimIdentifier);
setMerkleProof(merkle);
setClaimValue(claim.value);
set('merkleProof', merkle);
set('issuer', credential.issuer);
+ set('signature', signature);
}, [set]);
const store = useCallback(() => {
@@ -65,7 +68,7 @@ export const Credential: FC = () => {
Credential