react-electronix 1.0.0
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.
- package/README.md +67 -0
- package/dist/cjs/components/Iphone/Iphone.d.ts +3 -0
- package/dist/cjs/components/Iphone/Iphone.js +27 -0
- package/dist/cjs/components/Iphone/Iphone.js.map +1 -0
- package/dist/cjs/components/Iphone/Iphone.props.d.ts +5 -0
- package/dist/cjs/components/Iphone/Iphone.props.js +3 -0
- package/dist/cjs/components/Iphone/Iphone.props.js.map +1 -0
- package/dist/cjs/components/Iphone/Iphone.style.d.ts +98 -0
- package/dist/cjs/components/Iphone/Iphone.style.js +102 -0
- package/dist/cjs/components/Iphone/Iphone.style.js.map +1 -0
- package/dist/cjs/components/Iphone/index.d.ts +2 -0
- package/dist/cjs/components/Iphone/index.js +6 -0
- package/dist/cjs/components/Iphone/index.js.map +1 -0
- package/dist/cjs/components/Mac/Mac.d.ts +3 -0
- package/dist/cjs/components/Mac/Mac.js +37 -0
- package/dist/cjs/components/Mac/Mac.js.map +1 -0
- package/dist/cjs/components/Mac/Mac.props.d.ts +9 -0
- package/dist/cjs/components/Mac/Mac.props.js +3 -0
- package/dist/cjs/components/Mac/Mac.props.js.map +1 -0
- package/dist/cjs/components/Mac/Mac.styles.d.ts +11 -0
- package/dist/cjs/components/Mac/Mac.styles.js +157 -0
- package/dist/cjs/components/Mac/Mac.styles.js.map +1 -0
- package/dist/cjs/components/Mac/components/Startup/Startup.d.ts +3 -0
- package/dist/cjs/components/Mac/components/Startup/Startup.js +26 -0
- package/dist/cjs/components/Mac/components/Startup/Startup.js.map +1 -0
- package/dist/cjs/components/Mac/components/Startup/Startup.props.d.ts +3 -0
- package/dist/cjs/components/Mac/components/Startup/Startup.props.js +3 -0
- package/dist/cjs/components/Mac/components/Startup/Startup.props.js.map +1 -0
- package/dist/cjs/components/Mac/components/Startup/Startup.style.d.ts +25 -0
- package/dist/cjs/components/Mac/components/Startup/Startup.style.js +28 -0
- package/dist/cjs/components/Mac/components/Startup/Startup.style.js.map +1 -0
- package/dist/cjs/components/Mac/components/Startup/index.d.ts +3 -0
- package/dist/cjs/components/Mac/components/Startup/index.js +7 -0
- package/dist/cjs/components/Mac/components/Startup/index.js.map +1 -0
- package/dist/cjs/components/Mac/index.d.ts +3 -0
- package/dist/cjs/components/Mac/index.js +7 -0
- package/dist/cjs/components/Mac/index.js.map +1 -0
- package/dist/cjs/components/index.d.ts +2 -0
- package/dist/cjs/components/index.js +6 -0
- package/dist/cjs/components/index.js.map +1 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +5 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/components/Iphone/Iphone.d.ts +3 -0
- package/dist/esm/components/Iphone/Iphone.js +22 -0
- package/dist/esm/components/Iphone/Iphone.js.map +1 -0
- package/dist/esm/components/Iphone/Iphone.props.d.ts +5 -0
- package/dist/esm/components/Iphone/Iphone.props.js +2 -0
- package/dist/esm/components/Iphone/Iphone.props.js.map +1 -0
- package/dist/esm/components/Iphone/Iphone.style.d.ts +98 -0
- package/dist/esm/components/Iphone/Iphone.style.js +98 -0
- package/dist/esm/components/Iphone/Iphone.style.js.map +1 -0
- package/dist/esm/components/Iphone/index.d.ts +2 -0
- package/dist/esm/components/Iphone/index.js +3 -0
- package/dist/esm/components/Iphone/index.js.map +1 -0
- package/dist/esm/components/Mac/Mac.d.ts +3 -0
- package/dist/esm/components/Mac/Mac.js +32 -0
- package/dist/esm/components/Mac/Mac.js.map +1 -0
- package/dist/esm/components/Mac/Mac.props.d.ts +9 -0
- package/dist/esm/components/Mac/Mac.props.js +2 -0
- package/dist/esm/components/Mac/Mac.props.js.map +1 -0
- package/dist/esm/components/Mac/Mac.styles.d.ts +11 -0
- package/dist/esm/components/Mac/Mac.styles.js +153 -0
- package/dist/esm/components/Mac/Mac.styles.js.map +1 -0
- package/dist/esm/components/Mac/components/Startup/Startup.d.ts +3 -0
- package/dist/esm/components/Mac/components/Startup/Startup.js +21 -0
- package/dist/esm/components/Mac/components/Startup/Startup.js.map +1 -0
- package/dist/esm/components/Mac/components/Startup/Startup.props.d.ts +3 -0
- package/dist/esm/components/Mac/components/Startup/Startup.props.js +2 -0
- package/dist/esm/components/Mac/components/Startup/Startup.props.js.map +1 -0
- package/dist/esm/components/Mac/components/Startup/Startup.style.d.ts +25 -0
- package/dist/esm/components/Mac/components/Startup/Startup.style.js +24 -0
- package/dist/esm/components/Mac/components/Startup/Startup.style.js.map +1 -0
- package/dist/esm/components/Mac/components/Startup/index.d.ts +3 -0
- package/dist/esm/components/Mac/components/Startup/index.js +4 -0
- package/dist/esm/components/Mac/components/Startup/index.js.map +1 -0
- package/dist/esm/components/Mac/index.d.ts +3 -0
- package/dist/esm/components/Mac/index.js +4 -0
- package/dist/esm/components/Mac/index.js.map +1 -0
- package/dist/esm/components/Mac/vmToPx.d.ts +0 -0
- package/dist/esm/components/Mac/vmToPx.js +2 -0
- package/dist/esm/components/Mac/vmToPx.js.map +1 -0
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/components/index.js +3 -0
- package/dist/esm/components/index.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/utils/vmToPx.d.ts +1 -0
- package/dist/esm/utils/vmToPx.js +9 -0
- package/dist/esm/utils/vmToPx.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const useStyles: ({ animation }: StylesProps) => {
|
|
2
|
+
startup: {
|
|
3
|
+
position: string;
|
|
4
|
+
top: number;
|
|
5
|
+
left: number;
|
|
6
|
+
opacity: number;
|
|
7
|
+
width: string;
|
|
8
|
+
height: string;
|
|
9
|
+
background: string;
|
|
10
|
+
display: string;
|
|
11
|
+
justifyContent: string;
|
|
12
|
+
alignItems: string;
|
|
13
|
+
zIndex: number;
|
|
14
|
+
transition: string;
|
|
15
|
+
};
|
|
16
|
+
startupSvg: {
|
|
17
|
+
fill: string;
|
|
18
|
+
width: string;
|
|
19
|
+
height: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
interface StylesProps {
|
|
23
|
+
animation?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useStyles = void 0;
|
|
4
|
+
var useStyles = function (_a) {
|
|
5
|
+
var animation = _a.animation;
|
|
6
|
+
return ({
|
|
7
|
+
startup: {
|
|
8
|
+
position: 'absolute',
|
|
9
|
+
top: 0, left: 0,
|
|
10
|
+
opacity: animation ? 1 : 0,
|
|
11
|
+
width: '100%',
|
|
12
|
+
height: '100%',
|
|
13
|
+
background: 'black',
|
|
14
|
+
display: 'flex',
|
|
15
|
+
justifyContent: 'center',
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
zIndex: 1,
|
|
18
|
+
transition: 'opacity 0.5s'
|
|
19
|
+
},
|
|
20
|
+
startupSvg: {
|
|
21
|
+
fill: 'white',
|
|
22
|
+
width: '10%',
|
|
23
|
+
height: 'auto'
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
exports.useStyles = useStyles;
|
|
28
|
+
//# sourceMappingURL=Startup.style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Startup.style.js","sourceRoot":"","sources":["../../../../../../src/components/Mac/components/Startup/Startup.style.ts"],"names":[],"mappings":";;;AAAO,IAAM,SAAS,GAAG,UAAC,EAAwB;QAAvB,SAAS,eAAA;IAAmB,OAAA,CAAC;QACpD,OAAO,EAAE;YACL,QAAQ,EAAE,UAAU;YACpB,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC;YACf,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1B,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,OAAO;YACnB,OAAO,EAAE,MAAM;YACf,cAAc,EAAE,QAAQ;YACxB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,CAAC;YACT,UAAU,EAAE,cAAc;SAC7B;QACD,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,MAAM;SACjB;KACJ,CAAC;AAnBqD,CAmBrD,CAAA;AAnBW,QAAA,SAAS,aAmBpB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Startup"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./Startup.props"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./Startup.style"), exports);
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/Mac/components/Startup/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B;AAC1B,0DAA+B;AAC/B,0DAA+B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Mac"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./Mac.props"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./Mac.styles"), exports);
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Mac/index.ts"],"names":[],"mappings":";;;AAAA,gDAAqB;AACrB,sDAA4B;AAC5B,uDAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,gDAAqB;AACrB,mDAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Box } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useStyles } from './Iphone.style';
|
|
4
|
+
export var Iphone = function (_a) {
|
|
5
|
+
var width = _a.width, children = _a.children;
|
|
6
|
+
var style = useStyles({ width: width });
|
|
7
|
+
// const [time, setTime] = useState(new Date())
|
|
8
|
+
// useEffect(() => {
|
|
9
|
+
// setInterval(() => setTime(new Date()), 1000)
|
|
10
|
+
// }, [])
|
|
11
|
+
return (React.createElement(Box, { sx: style.iphone },
|
|
12
|
+
React.createElement(Box, { sx: style.buttons },
|
|
13
|
+
React.createElement(Box, { sx: style.silencer }),
|
|
14
|
+
React.createElement(Box, { sx: style.volumeUp }),
|
|
15
|
+
React.createElement(Box, { sx: style.volumeDown })),
|
|
16
|
+
React.createElement(Box, { sx: style.powerButton }),
|
|
17
|
+
React.createElement(Box, { sx: style.display },
|
|
18
|
+
React.createElement(Box, { sx: style.floatinIsland },
|
|
19
|
+
React.createElement(Box, { sx: style.camera })),
|
|
20
|
+
React.createElement(Box, { sx: style.children }, children))));
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=Iphone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Iphone.js","sourceRoot":"","sources":["../../../../src/components/Iphone/Iphone.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,IAAM,MAAM,GAAG,UAAC,EAGT;QAFV,KAAK,WAAA,EACL,QAAQ,cAAA;IAER,IAAM,KAAK,GAAG,SAAS,CAAC,EAAE,KAAK,OAAA,EAAE,CAAC,CAAA;IAClC,+CAA+C;IAE/C,oBAAoB;IACpB,mDAAmD;IACnD,SAAS;IAET,OAAO,CACH,oBAAC,GAAG,IAAC,EAAE,EAAE,KAAK,CAAC,MAAM;QACjB,oBAAC,GAAG,IAAC,EAAE,EAAE,KAAK,CAAC,OAAO;YAClB,oBAAC,GAAG,IAAC,EAAE,EAAE,KAAK,CAAC,QAAQ,GAAQ;YAC/B,oBAAC,GAAG,IAAC,EAAE,EAAE,KAAK,CAAC,QAAQ,GAAQ;YAC/B,oBAAC,GAAG,IAAC,EAAE,EAAE,KAAK,CAAC,UAAU,GAAQ,CAC/B;QACN,oBAAC,GAAG,IAAC,EAAE,EAAE,KAAK,CAAC,WAAW,GAAQ;QAClC,oBAAC,GAAG,IAAC,EAAE,EAAE,KAAK,CAAC,OAAO;YAClB,oBAAC,GAAG,IAAC,EAAE,EAAE,KAAK,CAAC,aAAa;gBACxB,oBAAC,GAAG,IAAC,EAAE,EAAE,KAAK,CAAC,MAAM,GAAQ,CAC3B;YACN,oBAAC,GAAG,IAAC,EAAE,EAAE,KAAK,CAAC,QAAQ,IASlB,QAAQ,CACP,CACJ,CACJ,CACT,CAAA;AACL,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Iphone.props.js","sourceRoot":"","sources":["../../../../src/components/Iphone/Iphone.props.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export declare const useStyles: ({ width }: StyleProps) => {
|
|
2
|
+
iphone: {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
position: string;
|
|
6
|
+
borderRadius: string;
|
|
7
|
+
zIndex: string;
|
|
8
|
+
};
|
|
9
|
+
display: {
|
|
10
|
+
borderRadius: string;
|
|
11
|
+
boxShadow: string;
|
|
12
|
+
width: string;
|
|
13
|
+
height: string;
|
|
14
|
+
background: string;
|
|
15
|
+
zIndex: string;
|
|
16
|
+
overflow: string;
|
|
17
|
+
};
|
|
18
|
+
children: {
|
|
19
|
+
width: string;
|
|
20
|
+
height: string;
|
|
21
|
+
overflow: string;
|
|
22
|
+
borderRadius: string;
|
|
23
|
+
margin: string;
|
|
24
|
+
};
|
|
25
|
+
floatinIsland: {
|
|
26
|
+
width: string;
|
|
27
|
+
height: string;
|
|
28
|
+
background: string;
|
|
29
|
+
borderRadius: string;
|
|
30
|
+
position: string;
|
|
31
|
+
top: string;
|
|
32
|
+
left: string;
|
|
33
|
+
transform: string;
|
|
34
|
+
zIndex: string;
|
|
35
|
+
};
|
|
36
|
+
camera: {
|
|
37
|
+
width: string;
|
|
38
|
+
height: string;
|
|
39
|
+
};
|
|
40
|
+
buttons: {
|
|
41
|
+
width: string;
|
|
42
|
+
position: string;
|
|
43
|
+
top: string;
|
|
44
|
+
left: string;
|
|
45
|
+
};
|
|
46
|
+
silencer: {
|
|
47
|
+
width: string;
|
|
48
|
+
height: string;
|
|
49
|
+
borderRadius: string;
|
|
50
|
+
border: string;
|
|
51
|
+
borderRight: string;
|
|
52
|
+
backgroundImage: string;
|
|
53
|
+
boxShadow: string;
|
|
54
|
+
};
|
|
55
|
+
volumeUp: {
|
|
56
|
+
width: string;
|
|
57
|
+
height: string;
|
|
58
|
+
borderRadius: string;
|
|
59
|
+
border: string;
|
|
60
|
+
borderRight: string;
|
|
61
|
+
backgroundImage: string;
|
|
62
|
+
boxShadow: string;
|
|
63
|
+
position: string;
|
|
64
|
+
top: string;
|
|
65
|
+
};
|
|
66
|
+
volumeDown: {
|
|
67
|
+
width: string;
|
|
68
|
+
height: string;
|
|
69
|
+
borderRadius: string;
|
|
70
|
+
border: string;
|
|
71
|
+
borderRight: string;
|
|
72
|
+
backgroundImage: string;
|
|
73
|
+
boxShadow: string;
|
|
74
|
+
position: string;
|
|
75
|
+
top: string;
|
|
76
|
+
};
|
|
77
|
+
powerButton: {
|
|
78
|
+
width: string;
|
|
79
|
+
height: string;
|
|
80
|
+
position: string;
|
|
81
|
+
top: string;
|
|
82
|
+
right: string;
|
|
83
|
+
borderRadius: string;
|
|
84
|
+
border: string;
|
|
85
|
+
borderRight: string;
|
|
86
|
+
backgroundImage: string;
|
|
87
|
+
boxShadow: string;
|
|
88
|
+
};
|
|
89
|
+
statusBar: {
|
|
90
|
+
backgroundColor: string;
|
|
91
|
+
};
|
|
92
|
+
timeContainer: {};
|
|
93
|
+
iconContainer: {};
|
|
94
|
+
};
|
|
95
|
+
interface StyleProps {
|
|
96
|
+
width: number;
|
|
97
|
+
}
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export var useStyles = function (_a) {
|
|
2
|
+
var width = _a.width;
|
|
3
|
+
return ({
|
|
4
|
+
iphone: {
|
|
5
|
+
width: width,
|
|
6
|
+
height: width * 2.07,
|
|
7
|
+
position: 'relative',
|
|
8
|
+
borderRadius: "".concat(width / 5.8, "px"),
|
|
9
|
+
zIndex: '1'
|
|
10
|
+
},
|
|
11
|
+
display: {
|
|
12
|
+
borderRadius: "".concat(width / 5.8, "px"),
|
|
13
|
+
boxShadow: "inset 0 0 0 ".concat(width * 0.001, "px #8C826A, inset 0 0 0 ").concat(width * 0.002, "px #2C250C, inset 0 0 0 ").concat(width * 0.003, "px #77725B, inset 0 0 0 ").concat(width * 0.004, "px #E1D8C4, inset 0 0 0 ").concat(width * 0.006, "px #FFFBE7, inset 0 0 0 ").concat(width * 0.007, "px #E4DBC1, inset 0 0 0 ").concat(width * 0.008, "px #B5A586, inset 0 0 0 ").concat(width * 0.009, "px #A3906D, inset 0 0 0 ").concat(width * 0.010, "px #907F5E, inset 0 0 0 ").concat(width * 0.012, "px #928769, inset 0 0 0 ").concat(width * 0.013, "px #383624, inset 0 0 0 ").concat(width * 0.014, "px #404037, inset 0 0 0 ").concat(width * 0.015, "px #101109, inset 0 0 0 ").concat(width * 0.04, "px black"),
|
|
14
|
+
width: '100%',
|
|
15
|
+
height: '100%',
|
|
16
|
+
background: 'rgb(10, 10, 10)',
|
|
17
|
+
zIndex: '-1',
|
|
18
|
+
overflow: 'hidden'
|
|
19
|
+
},
|
|
20
|
+
children: {
|
|
21
|
+
width: "".concat(width * 0.917, "px"),
|
|
22
|
+
height: "".concat(width * 1.989, "px"),
|
|
23
|
+
overflow: 'scroll',
|
|
24
|
+
borderRadius: "".concat(width / 7.5, "px"),
|
|
25
|
+
margin: "".concat(width * 0.0415, "px auto"),
|
|
26
|
+
},
|
|
27
|
+
floatinIsland: {
|
|
28
|
+
width: "".concat(width * 0.267, "px"),
|
|
29
|
+
height: "".concat(width * 0.078, "px"),
|
|
30
|
+
background: 'black',
|
|
31
|
+
borderRadius: "".concat(width * 0.040, "px"),
|
|
32
|
+
position: 'absolute',
|
|
33
|
+
top: "".concat(width * 0.064, "px"),
|
|
34
|
+
left: '50%',
|
|
35
|
+
transform: 'translateX(-50%)',
|
|
36
|
+
zIndex: '1'
|
|
37
|
+
},
|
|
38
|
+
camera: {
|
|
39
|
+
width: "".concat(width * 0.022, "px"),
|
|
40
|
+
height: "".concat(width * 0.022, "px")
|
|
41
|
+
},
|
|
42
|
+
buttons: {
|
|
43
|
+
width: "".concat(width * 0.0050, "px"),
|
|
44
|
+
position: 'absolute',
|
|
45
|
+
top: "".concat(width * 0.364, "px"),
|
|
46
|
+
left: "-".concat(width * 0.0050, "px"),
|
|
47
|
+
},
|
|
48
|
+
silencer: {
|
|
49
|
+
width: '100%',
|
|
50
|
+
height: "".concat(width * 0.0729, "px"),
|
|
51
|
+
borderRadius: "".concat(width * 0.002, "px 0 0 ").concat(width * 0.002, "px"),
|
|
52
|
+
border: "".concat(width * 0.001, "px solid #9D947A"),
|
|
53
|
+
borderRight: 'none',
|
|
54
|
+
backgroundImage: 'linear-gradient(to bottom, #AEA289 0%, #FFFCE0 2%, #5D5032 4%, #E6D5B4 10%, #E6D5B4 90%, #5D5032 94%, #FFFCE0 98%, #AEA289 100%)',
|
|
55
|
+
boxShadow: "inset ".concat(width * 0.001, "px 0 0 #E5D6B4")
|
|
56
|
+
},
|
|
57
|
+
volumeUp: {
|
|
58
|
+
width: '100%',
|
|
59
|
+
height: "".concat(width * 0.144, "px"),
|
|
60
|
+
borderRadius: "".concat(width * 0.002, "px 0 0 ").concat(width * 0.002, "px"),
|
|
61
|
+
border: "".concat(width * 0.001, "px solid #9D947A"),
|
|
62
|
+
borderRight: 'none',
|
|
63
|
+
backgroundImage: 'linear-gradient(to bottom, #AEA289 0%, #FFFCE0 2%, #5D5032 4%, #E6D5B4 10%, #E6D5B4 90%, #5D5032 94%, #FFFCE0 98%, #AEA289 100%)',
|
|
64
|
+
boxShadow: "inset ".concat(width * 0.001, "px 0 0 #E5D6B4"),
|
|
65
|
+
position: 'absolute',
|
|
66
|
+
top: "".concat(width * 0.137, "px")
|
|
67
|
+
},
|
|
68
|
+
volumeDown: {
|
|
69
|
+
width: '100%',
|
|
70
|
+
height: "".concat(width * 0.144, "px"),
|
|
71
|
+
borderRadius: "".concat(width * 0.002, "px 0 0 ").concat(width * 0.002, "px"),
|
|
72
|
+
border: "".concat(width * 0.001, "px solid #9D947A"),
|
|
73
|
+
borderRight: 'none',
|
|
74
|
+
backgroundImage: 'linear-gradient(to bottom, #AEA289 0%, #FFFCE0 2%, #5D5032 4%, #E6D5B4 10%, #E6D5B4 90%, #5D5032 94%, #FFFCE0 98%, #AEA289 100%)',
|
|
75
|
+
boxShadow: "inset ".concat(width * 0.001, "px 0 0 #E5D6B4"),
|
|
76
|
+
position: 'absolute',
|
|
77
|
+
top: "".concat(width * 0.316, "px")
|
|
78
|
+
},
|
|
79
|
+
powerButton: {
|
|
80
|
+
width: "".concat(width * 0.0050, "px"),
|
|
81
|
+
height: "".concat(width * 0.225, "px"),
|
|
82
|
+
position: 'absolute',
|
|
83
|
+
top: "".concat(width * 0.605, "px"),
|
|
84
|
+
right: "-".concat(width * 0.0050, "px"),
|
|
85
|
+
borderRadius: "".concat(width * 0.002, "px ").concat(width * 0.002, "px 0 0"),
|
|
86
|
+
border: "".concat(width * 0.001, "px solid #9D947A"),
|
|
87
|
+
borderRight: 'none',
|
|
88
|
+
backgroundImage: 'linear-gradient(to bottom, #AEA289 0%, #FFFCE0 2%, #5D5032 4%, #E6D5B4 10%, #E6D5B4 90%, #5D5032 94%, #FFFCE0 98%, #AEA289 100%)',
|
|
89
|
+
boxShadow: "inset -".concat(width * 0.001, "px 0 0 #E5D6B4"),
|
|
90
|
+
},
|
|
91
|
+
statusBar: {
|
|
92
|
+
backgroundColor: 'white'
|
|
93
|
+
},
|
|
94
|
+
timeContainer: {},
|
|
95
|
+
iconContainer: {}
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=Iphone.style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Iphone.style.js","sourceRoot":"","sources":["../../../../src/components/Iphone/Iphone.style.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,EAEb;QADT,KAAK,WAAA;IACS,OAAA,CAAC;QACf,MAAM,EAAE;YACJ,KAAK,OAAA;YACL,MAAM,EAAE,KAAK,GAAG,IAAI;YACpB,QAAQ,EAAE,UAAU;YACpB,YAAY,EAAE,UAAG,KAAK,GAAG,GAAG,OAAI;YAChC,MAAM,EAAE,GAAG;SACd;QACD,OAAO,EAAE;YACL,YAAY,EAAE,UAAG,KAAK,GAAG,GAAG,OAAI;YAChC,SAAS,EAAE,sBAAe,KAAK,GAAG,KAAK,qCAA2B,KAAK,GAAG,KAAK,qCAA2B,KAAK,GAAG,KAAK,qCAA2B,KAAK,GAAG,KAAK,qCAA2B,KAAK,GAAG,KAAK,qCAA2B,KAAK,GAAG,KAAK,qCAA2B,KAAK,GAAG,KAAK,qCAA2B,KAAK,GAAG,KAA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AG,EAAE,UAAG,KAAK,GAAG,KAAK,OAAI;YACzB,KAAK,EAAE,WAAI,KAAK,GAAG,MAAM,OAAI;YAC7B,YAAY,EAAE,UAAG,KAAK,GAAG,KAAK,gBAAM,KAAK,GAAG,KAAK,WAAQ;YACzD,MAAM,EAAE,UAAG,KAAK,GAAG,KAAK,qBAAkB;YAC1C,WAAW,EAAE,MAAM;YACnB,eAAe,EAAE,kIAAkI;YACnJ,SAAS,EAAE,iBAAU,KAAK,GAAG,KAAK,mBAAgB;SACrD;QACD,SAAS,EAAE;YACP,eAAe,EAAE,OAAO;SAC3B;QACD,aAAa,EAAE,EAEd;QACD,aAAa,EAAE,EAEd;KACJ,CAAC;AAjGgB,CAiGhB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Iphone/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { useStyles } from '.';
|
|
3
|
+
import { Startup } from './components/Startup';
|
|
4
|
+
export var Mac = function (_a) {
|
|
5
|
+
var startup = _a.startup, animateOpen = _a.animateOpen, open = _a.open, width = _a.width, openAngle = _a.openAngle, children = _a.children;
|
|
6
|
+
var _b = useState(animateOpen ? false : open), macOpen = _b[0], setMacOpen = _b[1];
|
|
7
|
+
var styles = useStyles({ width: width, macOpen: macOpen, openAngle: openAngle });
|
|
8
|
+
useEffect(function () {
|
|
9
|
+
if (animateOpen) {
|
|
10
|
+
setTimeout(function () { return setMacOpen(open); }, 100);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
setMacOpen(open);
|
|
14
|
+
}
|
|
15
|
+
}, [open, animateOpen]);
|
|
16
|
+
return (React.createElement("div", { style: styles.mac },
|
|
17
|
+
React.createElement("div", { className: 'top-portion', style: styles.topPortion },
|
|
18
|
+
React.createElement("div", { className: 'lid', style: styles.lid }),
|
|
19
|
+
React.createElement("div", { className: 'top', style: styles.top },
|
|
20
|
+
React.createElement("div", { className: 'screen', style: styles.screen },
|
|
21
|
+
React.createElement("div", { className: "camera", style: styles.camera }),
|
|
22
|
+
React.createElement(Startup, { show: startup }),
|
|
23
|
+
React.createElement("div", { style: styles.screenContent }, children)),
|
|
24
|
+
React.createElement("div", { className: 'engraving', style: styles.engraving }, "Macbook Pro"),
|
|
25
|
+
React.createElement("div", { className: 'after-screen', style: styles.afterScreen }))),
|
|
26
|
+
React.createElement("div", { className: 'bottom-portion', style: styles.bottomPortion },
|
|
27
|
+
React.createElement("div", { className: 'bottom-cover', style: styles.bottomCover }),
|
|
28
|
+
React.createElement("div", { className: 'bottom', style: styles.bottom },
|
|
29
|
+
React.createElement("div", { className: "opener", style: styles.opener }),
|
|
30
|
+
React.createElement("div", { className: "bottom-after", style: styles.bottomAfter })))));
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=Mac.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Mac.js","sourceRoot":"","sources":["../../../../src/components/Mac/Mac.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAY,SAAS,EAAE,MAAM,GAAG,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,MAAM,CAAC,IAAM,GAAG,GAAG,UAAC,EAOT;QANP,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,IAAI,UAAA,EACJ,KAAK,WAAA,EACL,SAAS,eAAA,EACT,QAAQ,cAAA;IAEF,IAAA,KAAwB,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,EAA3D,OAAO,QAAA,EAAE,UAAU,QAAwC,CAAA;IAClE,IAAM,MAAM,GAAG,S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C,MAAM;gBACxC,6BAAK,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAE,MAAM,CAAC,MAAM,GAAQ;gBACpD,6BAAK,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,MAAM,CAAC,WAAW,GAAQ,CAC7D,CACJ,CACJ,CACT,CAAA;AACL,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Mac.props.js","sourceRoot":"","sources":["../../../../src/components/Mac/Mac.props.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const useStyles: ({ width, macOpen, openAngle }: StylesProps) => Styles;
|
|
3
|
+
interface StylesProps {
|
|
4
|
+
width: number;
|
|
5
|
+
macOpen: boolean;
|
|
6
|
+
openAngle?: number;
|
|
7
|
+
}
|
|
8
|
+
interface Styles {
|
|
9
|
+
[key: string]: React.CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
export var useStyles = function (_a) {
|
|
2
|
+
var width = _a.width, macOpen = _a.macOpen, openAngle = _a.openAngle;
|
|
3
|
+
return ({
|
|
4
|
+
mac: {
|
|
5
|
+
width: width,
|
|
6
|
+
height: width * 0.683,
|
|
7
|
+
display: 'flex',
|
|
8
|
+
flexDirection: 'column',
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
perspective: '120vw',
|
|
12
|
+
perspectiveOrigin: '50% 100%',
|
|
13
|
+
transition: 'right 1s',
|
|
14
|
+
margin: '0 150px',
|
|
15
|
+
},
|
|
16
|
+
topPortion: {
|
|
17
|
+
transformStyle: 'preserve-3d',
|
|
18
|
+
transform: "rotateX(-".concat(macOpen ? openAngle !== null && openAngle !== void 0 ? openAngle : 0 : 90, "deg)"),
|
|
19
|
+
transformOrigin: '50% 100%',
|
|
20
|
+
},
|
|
21
|
+
lid: {
|
|
22
|
+
position: 'absolute',
|
|
23
|
+
top: 0,
|
|
24
|
+
left: 0,
|
|
25
|
+
width: width,
|
|
26
|
+
height: width * 0.009,
|
|
27
|
+
transform: "translate3d(0, 0, -".concat(width * 0.009, "px ) rotateX(90deg) scale(1, 1)"),
|
|
28
|
+
transformOrigin: '50% 0',
|
|
29
|
+
backfaceVisibility: 'hidden',
|
|
30
|
+
borderTopRightRadius: "".concat(width / 8, "px ").concat(width * 0.0075, "px"),
|
|
31
|
+
borderTopLeftRadius: "".concat(width / 8, "px ").concat(width * 0.0075, "px"),
|
|
32
|
+
borderBottomRightRadius: 2,
|
|
33
|
+
borderBottomLeftRadius: 2,
|
|
34
|
+
borderBottom: '1px solid black',
|
|
35
|
+
boxSizing: 'border-box',
|
|
36
|
+
backgroundColor: 'rgba(92,92,92,1)',
|
|
37
|
+
background: 'linear-gradient(to right, rgba(92,92,92,1) 0%, rgba(200,200,200,1) 2%, rgba(105,105,105,1) 4%, rgba(200,200,200,1) 10%, rgba(200,200,200,1) 90%, rgba(112,112,112,1) 94%, rgba(200,200,200,1) 98%, rgba(112,112,112,1) 100%)',
|
|
38
|
+
filter: "progid:DXImageTransform.Microsoft.gradient( startColorstr='#5c5c5c', endColorstr='#707070', GradientType=1 )"
|
|
39
|
+
},
|
|
40
|
+
top: {
|
|
41
|
+
width: width,
|
|
42
|
+
height: width * 0.683,
|
|
43
|
+
background: 'black',
|
|
44
|
+
borderRadius: "".concat(width / 22.8, "px ").concat(width / 22.8, "px 0 0"),
|
|
45
|
+
border: "".concat(width / 300, "px solid rgb(129, 129, 129)"),
|
|
46
|
+
borderBottom: 'none',
|
|
47
|
+
boxSizing: 'border-box',
|
|
48
|
+
position: 'relative',
|
|
49
|
+
overflow: 'hidden',
|
|
50
|
+
top: 1,
|
|
51
|
+
},
|
|
52
|
+
engraving: {
|
|
53
|
+
zIndex: 1,
|
|
54
|
+
color: 'rgb(178, 178, 178)',
|
|
55
|
+
fontSize: "".concat(width * 0.017075, "px"),
|
|
56
|
+
position: 'absolute',
|
|
57
|
+
top: "".concat((width * 0.683) - (width * 0.023222), "px"),
|
|
58
|
+
left: '50%',
|
|
59
|
+
transform: 'translateX(-50%)',
|
|
60
|
+
fontFamily: "'SF Pro Display', sans-serif"
|
|
61
|
+
},
|
|
62
|
+
screen: {
|
|
63
|
+
width: "".concat(width * 0.95, "px"),
|
|
64
|
+
height: "".concat(width * 0.59421, "px"),
|
|
65
|
+
background: 'rgb(13, 13, 13)',
|
|
66
|
+
margin: '0 auto',
|
|
67
|
+
marginTop: "".concat(width * 0.04997560976, "px"),
|
|
68
|
+
position: 'relative',
|
|
69
|
+
color: 'white'
|
|
70
|
+
},
|
|
71
|
+
camera: {
|
|
72
|
+
position: 'absolute',
|
|
73
|
+
width: width / 160,
|
|
74
|
+
height: width / 160,
|
|
75
|
+
borderRadius: '50%',
|
|
76
|
+
backgroundImage: 'linear-gradient(to bottom right, rgb(34, 33, 33), black)',
|
|
77
|
+
top: -(width * 0.683 * 0.073170731707317) / 2,
|
|
78
|
+
left: '50%',
|
|
79
|
+
transform: 'translate(-50%, -50%)',
|
|
80
|
+
border: "".concat(width / 266.66, " solid rgb(20, 20, 20)"),
|
|
81
|
+
},
|
|
82
|
+
innerScreen: {
|
|
83
|
+
position: 'absolute',
|
|
84
|
+
width: '100%',
|
|
85
|
+
height: '100%',
|
|
86
|
+
top: 0,
|
|
87
|
+
left: 0
|
|
88
|
+
},
|
|
89
|
+
screenContent: {
|
|
90
|
+
width: '100%',
|
|
91
|
+
height: '100%'
|
|
92
|
+
},
|
|
93
|
+
afterScreen: {
|
|
94
|
+
background: 'rgb(28, 28, 28)',
|
|
95
|
+
width: '100%',
|
|
96
|
+
height: "".concat(width * 0.023222, "px"),
|
|
97
|
+
position: 'absolute',
|
|
98
|
+
bottom: 0,
|
|
99
|
+
left: 0
|
|
100
|
+
},
|
|
101
|
+
bottomPortion: {
|
|
102
|
+
transform: 'rotateX(-90deg)',
|
|
103
|
+
position: 'absolute',
|
|
104
|
+
top: 0,
|
|
105
|
+
left: 0,
|
|
106
|
+
transformStyle: 'preserve-3d',
|
|
107
|
+
transformOrigin: '50% 100%',
|
|
108
|
+
display: 'inline-block',
|
|
109
|
+
transition: 'transform 0.5s'
|
|
110
|
+
},
|
|
111
|
+
bottomCover: {
|
|
112
|
+
width: width,
|
|
113
|
+
height: width * 0.683,
|
|
114
|
+
backfaceVisibility: 'hidden'
|
|
115
|
+
},
|
|
116
|
+
bottom: {
|
|
117
|
+
position: 'absolute',
|
|
118
|
+
top: 0,
|
|
119
|
+
left: 0,
|
|
120
|
+
transform: 'rotateX(90deg)',
|
|
121
|
+
transformOrigin: '50% 0',
|
|
122
|
+
width: width,
|
|
123
|
+
borderRadius: '2px 2px 0 0',
|
|
124
|
+
height: width * 0.0249,
|
|
125
|
+
backgroundColor: 'rgba(92,92,92,1)',
|
|
126
|
+
background: 'linear-gradient(to right, rgba(92,92,92,1) 0%, rgba(200,200,200,1) 2%, rgba(105,105,105,1) 4%, rgba(200,200,200,1) 10%, rgba(200,200,200,1) 90%, rgba(112,112,112,1) 94%, rgba(200,200,200,1) 98%, rgba(112,112,112,1) 100%)',
|
|
127
|
+
filter: "progid:DXImageTransform.Microsoft.gradient( startColorstr='#5c5c5c', endColorstr='#707070', GradientType=1 )"
|
|
128
|
+
},
|
|
129
|
+
opener: {
|
|
130
|
+
width: width * 0.15,
|
|
131
|
+
height: (width * 0.023905) * 0.5,
|
|
132
|
+
background: 'rgb(207, 207, 207)',
|
|
133
|
+
position: 'absolute',
|
|
134
|
+
top: 0,
|
|
135
|
+
left: '50%',
|
|
136
|
+
transform: 'translateX(-50%)',
|
|
137
|
+
borderRadius: "0 0 ".concat(width * 0.02, "px ").concat(width * 0.02, "px"),
|
|
138
|
+
boxShadow: 'inset 0 3px 10px -2px black'
|
|
139
|
+
},
|
|
140
|
+
bottomAfter: {
|
|
141
|
+
width: '100%',
|
|
142
|
+
height: '80%',
|
|
143
|
+
background: 'rgb(113, 113, 113)',
|
|
144
|
+
position: 'absolute',
|
|
145
|
+
top: 'calc(100% - 1px)',
|
|
146
|
+
left: 0,
|
|
147
|
+
borderBottomRightRadius: "".concat(width * 0.25, "px 100%"),
|
|
148
|
+
borderBottomLeftRadius: "".concat(width * 0.25, "px 100%"),
|
|
149
|
+
boxShadow: 'inset 0 -5px 10px black, 0 5px 10px',
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
//# sourceMappingURL=Mac.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Mac.styles.js","sourceRoot":"","sources":["../../../../src/components/Mac/Mac.styles.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,EAIZ;QAHV,KAAK,WAAA,EACL,OAAO,aAAA,EACP,SAAS,eAAA;IACc,OAAA,CAAC;QACxB,GAAG,EAAE;YACD,KAAK,OAAA;YACL,MAAM,EAAE,KAAK,GAAG,KAAK;YACrB,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,QAAQ;YACvB,cAAc,EAAE,QAAQ;YACxB,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,OAAO;YACpB,iBAAiB,EAAE,UAAU;YAC7B,UAAU,EAAE,UAAU;YACtB,MAAM,EAAE,SAAS;SACpB;QACD,UAAU,EAAE;YACR,cAAc,EAAE,aAAa;YAC7B,SAAS,EAAE,mBAAY,OAAO,CAAC,CAAC,CAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,CAAC,CAAC,CAAC,CAAC,EAAE,SAAM;YAC1D,eAAe,EAAE,UAAU;SAC9B;QACD,GAAG,EAAE;YACD,QAAQ,EAAE,UAAU;YACpB,GAAG,EAAE,CAAC;YACN,IAAI,EAAE,CAAC;YACP,KAAK,OAAA;YACL,MAAM,EAAE,KAAK,GAAG,KAAK;YACrB,SAAS,EAAE,6BAAsB,KAAK,GAAG,KAAK,oCAAiC;YAC/E,eAAe,EAAE,OAAO;YACxB,kBAAkB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