@velocitycareerlabs/vc-renderer-sample 1.25.0-dev-build.158b56827

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,61 @@
1
+ import {
2
+ Box,
3
+ Typography,
4
+ List,
5
+ ListItem,
6
+ ListItemIcon,
7
+ ListItemText,
8
+ } from '@mui/material';
9
+ import CheckCircleIcon from '@mui/icons-material/CheckCircle';
10
+
11
+ const items = [
12
+ 'Issuer verified',
13
+ 'Data secured',
14
+ 'Issued to Olivia Hafez',
15
+ 'Data secured',
16
+ 'In validity period',
17
+ ];
18
+
19
+ export const Sidebar = () => {
20
+ return (
21
+ <Box sx={styles.sidebarContainer}>
22
+ <List>
23
+ {items.map((text, index) => (
24
+ <ListItem key={`${index + text}`} disableGutters>
25
+ <ListItemIcon sx={styles.listItemIconContainer}>
26
+ <CheckCircleIcon sx={styles.listItemIcon} />
27
+ </ListItemIcon>
28
+ <ListItemText
29
+ primary={
30
+ <Typography variant="body1" sx={styles.listItemText}>
31
+ {text}
32
+ </Typography>
33
+ }
34
+ />
35
+ </ListItem>
36
+ ))}
37
+ </List>
38
+ </Box>
39
+ );
40
+ };
41
+
42
+ const styles = {
43
+ sidebarContainer: {
44
+ backgroundColor: '#F5F7FA',
45
+ borderRadius: '8px',
46
+ padding: '16px',
47
+ margin: '56px 40px 0 0',
48
+ width: '189px',
49
+ boxShadow: '0px 4px 10px rgba(0, 0, 0, 0.1)',
50
+ },
51
+ listItemText: {
52
+ color: '#333',
53
+ fontSize: '16px',
54
+ },
55
+ listItemIconContainer: {
56
+ minWidth: '35px',
57
+ },
58
+ listItemIcon: {
59
+ color: '#4CAF50',
60
+ },
61
+ };
@@ -0,0 +1,23 @@
1
+ import { Box, Button } from '@mui/material';
2
+ import { Share } from 'assets';
3
+
4
+ export const SummaryFooter = () => {
5
+ return (
6
+ <Box>
7
+ <Button variant="text" color="info" sx={styles.shareButton}>
8
+ <Share width={13} height={14} />
9
+ Share
10
+ </Button>
11
+ </Box>
12
+ );
13
+ };
14
+
15
+ const styles = {
16
+ shareButton: {
17
+ textTransform: 'none',
18
+ fontSize: '14px',
19
+ minWidth: '50px',
20
+ justifyContent: 'space-between',
21
+ padding: '0',
22
+ },
23
+ };
@@ -0,0 +1,15 @@
1
+ import { Box, IconButton } from '@mui/material';
2
+ import { Trash, RoundShare } from '../../assets';
3
+
4
+ export const VcDetailsFooter = () => {
5
+ return (
6
+ <Box justifyContent="flex-end" pr={4} sx={{ display: 'flex' }}>
7
+ <IconButton color="info">
8
+ <Trash width={52} height={52} />
9
+ </IconButton>
10
+ <IconButton color="info">
11
+ <RoundShare width={52} height={52} />
12
+ </IconButton>
13
+ </Box>
14
+ );
15
+ };
package/src/index.css ADDED
@@ -0,0 +1,13 @@
1
+ body {
2
+ margin: 0;
3
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4
+ 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5
+ sans-serif;
6
+ -webkit-font-smoothing: antialiased;
7
+ -moz-osx-font-smoothing: grayscale;
8
+ }
9
+
10
+ code {
11
+ font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12
+ monospace;
13
+ }
package/src/index.tsx ADDED
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import ReactDOM from 'react-dom/client';
3
+ import './index.css';
4
+ import App from './App';
5
+
6
+ const root = ReactDOM.createRoot(
7
+ document.getElementById('root') as HTMLElement
8
+ );
9
+ root.render(
10
+ <React.StrictMode>
11
+ <App />
12
+ </React.StrictMode>
13
+ );