-
Notifications
You must be signed in to change notification settings - Fork 1
/
Welcome.tsx
73 lines (67 loc) · 3.54 KB
/
Welcome.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import { Card, CardContent, Typography, Button } from "@mui/material";
import { Box } from "@mui/system";
import { ImageList } from './ImageList';
export function Welcome(props: any) {
let showLoginHelp = props.loggedIn ? 'none' : 'flex';
const goToVul = () => {
window.ddClient.host.openExternal("https://vul.dev")
}
return (
<Box flexDirection='column' alignItems="center" sx={{
minWidth: 275, m: '4rem', flexDirection: "column", display: props.showWelcome, justifyContent: 'center', alignItems: "center"
}}>
<Box sx={{ display: 'flex' }}>
<img src="images/vul_logo.svg" alt="Vul Logo" height="160px" />
<Box sx={{ marginLeft: '0.8rem', marginTop: '1.8rem' }}>
<Typography variant="h3" fontFamily='Droplet'>
khulnasoft
</Typography>
<Typography variant="h1" fontFamily='Droplet'>
vul
</Typography>
</Box>
</Box>
<Typography variant="h4" component="div" gutterBottom sx={{ marginTop: '2.5rem' }}>
Free, open-source container image scanning.
</Typography>
<Typography variant="h5" sx={{ marginTop: '2rem' }}>
<img src="images/tada.svg" alt="Tada Logo" height="30px" /> Scan unlimited images, no sign up required! Scans run on your machine!
</Typography>
<Typography variant="h5" sx={{ marginTop: '2rem' }}>
Select from a local stored image or enter the name of a remote image you wish to scan.
</Typography>
<Box marginTop='4rem' width='80%' maxWidth='800px'>
<ImageList
disableScan={props.disableScan}
setDisableScan={props.setDisableScan}
scanImage={props.scanImage}
setScanImage={props.setScanImage}
runScan={props.runScan}
imageUpdated={props.imageUpdated}
fixedOnly={props.fixedOnly}
setFixedOnly={props.setFixedOnly}
SBOMOutput={props.SBOMOutput}
setSBOMOutput={props.setSBOMOutput}
uploadKhulnaSoft={props.uploadKhulnaSoft}
setUploadKhulnaSoft={props.setUploadKhulnaSoft}
showUploadKhulnaSoft={props.showUploadKhulnaSoft}
textAlign='center'
/>
</Box>
<Box width='50%' minWidth='400px' maxWidth='700px' marginTop='2.5rem'>
<Card sx={{ display: 'flex', p: '2rem', justifyContent: 'center' }}>
<CardContent>
<Box sx={{ display: 'flex', justifyContent: 'center' }}>
<Typography variant="h6" marginTop='6px' marginRight='20px' >New to Vul?
<Button sx={{ fontSize: '12pt', marginTop: '-2px' }} onClick={() => { goToVul() }}>Learn more...</Button></Typography>
</Box>
<Box sx={{ display: showLoginHelp, justifyContent: 'center' }}>
<Typography variant="h6" marginTop='6px' marginRight='20px' >KhulnaSoft Customer?
<Button sx={{ fontSize: '12pt', marginTop: '-2px' }} onClick={() => { props.openLogin(true) }}>Sign in</Button></Typography>
</Box>
</CardContent>
</Card>
</Box>
</Box >
)
}