@editframe/create 0.8.0-beta.3 → 0.8.0-beta.4
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.
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"author": "",
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@editframe/cli": "0.8.0-beta.
|
|
15
|
-
"@editframe/elements": "0.8.0-beta.
|
|
16
|
-
"@editframe/vite-plugin": "0.8.0-beta.
|
|
14
|
+
"@editframe/cli": "0.8.0-beta.4",
|
|
15
|
+
"@editframe/elements": "0.8.0-beta.4",
|
|
16
|
+
"@editframe/vite-plugin": "0.8.0-beta.4",
|
|
17
17
|
"tailwindcss": "^3.4.3",
|
|
18
18
|
"vite": "^5.2.11",
|
|
19
19
|
"vite-plugin-singlefile": "^2.0.1"
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"author": "",
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@editframe/cli": "0.8.0-beta.
|
|
15
|
-
"@editframe/react": "0.8.0-beta.
|
|
16
|
-
"@editframe/vite-plugin": "0.8.0-beta.
|
|
14
|
+
"@editframe/cli": "0.8.0-beta.4",
|
|
15
|
+
"@editframe/react": "0.8.0-beta.4",
|
|
16
|
+
"@editframe/vite-plugin": "0.8.0-beta.4",
|
|
17
17
|
"@vitejs/plugin-react": "^4.3.1",
|
|
18
18
|
"tailwindcss": "^3.4.3",
|
|
19
19
|
"vite": "^5.2.11",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Timegroup, Audio, Image, useTimingInfo } from "@editframe/react";
|
|
3
3
|
|
|
4
4
|
interface CardInfo {
|
|
5
5
|
title: string;
|
|
@@ -30,34 +30,34 @@ const CardSegment = ({ title, id }: CardInfo) => {
|
|
|
30
30
|
useTimingInfo();
|
|
31
31
|
|
|
32
32
|
return (
|
|
33
|
-
<
|
|
33
|
+
<Timegroup mode="contain" ref={ref}>
|
|
34
34
|
<div className="absolute flex flex-col items-center justify-center z-10">
|
|
35
35
|
<h1 className="text-4xl p-4">{title}</h1>
|
|
36
|
-
<
|
|
37
|
-
<
|
|
36
|
+
<Audio id={id} src={`/assets/cards/${id}.mp3`} />
|
|
37
|
+
<Image src={`/assets/cards/${id}.png`} className="w-1/4" />
|
|
38
38
|
<code>
|
|
39
39
|
{(ownCurrentTimeMs / 1000).toFixed(2)}s /{" "}
|
|
40
40
|
{(durationMs / 1000).toFixed(2)}s
|
|
41
41
|
</code>
|
|
42
42
|
<progress max="1" value={percentComplete} className="h-[10px]" />
|
|
43
43
|
</div>
|
|
44
|
-
<
|
|
44
|
+
<Image
|
|
45
45
|
src={`/assets/cards/${id}.png`}
|
|
46
46
|
className="absolute z-0 blur-lg opacity-20 "
|
|
47
47
|
/>
|
|
48
|
-
</
|
|
48
|
+
</Timegroup>
|
|
49
49
|
);
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
export const Video = () => {
|
|
53
53
|
return (
|
|
54
|
-
<
|
|
54
|
+
<Timegroup
|
|
55
55
|
className="w-[500px] h-[500px] bg-slate-200 flex items-center justify-center relative overflow-hidden"
|
|
56
56
|
mode="sequence"
|
|
57
57
|
>
|
|
58
58
|
{cards.map((card) => (
|
|
59
59
|
<CardSegment key={card.id} {...card} />
|
|
60
60
|
))}
|
|
61
|
-
</
|
|
61
|
+
</Timegroup>
|
|
62
62
|
);
|
|
63
63
|
};
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"author": "",
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@editframe/cli": "0.8.0-beta.
|
|
15
|
-
"@editframe/elements": "0.8.0-beta.
|
|
16
|
-
"@editframe/vite-plugin": "0.8.0-beta.
|
|
14
|
+
"@editframe/cli": "0.8.0-beta.4",
|
|
15
|
+
"@editframe/elements": "0.8.0-beta.4",
|
|
16
|
+
"@editframe/vite-plugin": "0.8.0-beta.4",
|
|
17
17
|
"tailwindcss": "^3.4.3",
|
|
18
18
|
"vite": "^5.2.11",
|
|
19
19
|
"vite-plugin-singlefile": "^2.0.1"
|