@@ -7,30 +7,40 @@ import CheerpJLogo from "../../assets/branding/products/cheerpj/logotype-white.s
7
7
---
8
8
9
9
<Shell
10
- title =" Leaning Techologies Engineering Blog "
11
- description =" Read the latest updates from the Leaning Technologies development team about WebAssembly, compilers, and more. "
10
+ title =" CheerpJ Demo "
11
+ description =" Run a Java application example or your own JAR file "
12
12
>
13
- <header class =" text-center text-stone-100 py-32" >
14
- <div class =" flex justify-center items-center" >
15
- <Image
16
- src ={ CheerpJLogo }
17
- width =" 300"
18
- height =" 129"
19
- class =" invisible md:visible"
20
- alt =" CheerpJ logo"
21
- />
22
- </div >
23
- <p class =" text-lg text-balance my-8" >
24
- Run a Java application in the browser (Demo)
25
- </p >
26
-
13
+ <header >
27
14
<div
28
15
class =" bg-gradient-to-b from-primary-600 to-transparent opacity-20 w-full h-[40rem] absolute inset-0 -z-10"
29
16
>
30
17
<!-- cool background -->
31
18
</div >
32
19
</header >
33
20
<body >
21
+ <div class =" text-center text-stone-100 py-32" >
22
+ <div class =" flex justify-center items-center" >
23
+ <Image
24
+ src ={ CheerpJLogo }
25
+ width =" 300"
26
+ height =" 129"
27
+ class =" invisible md:visible"
28
+ alt =" CheerpJ logo"
29
+ />
30
+ </div >
31
+ <p class =" text-lg text-balance my-8" >
32
+ Select an example
33
+ <select data-te-select-init >
34
+ <option hidden selected >Select</option >
35
+ <option value =" 1" >SwingSet3</option >
36
+ <option value =" 2" >FoilSim</option >
37
+ <option value =" 3" >Pitch</option >
38
+ </select >
39
+ or run your own JAR:
40
+ </p >
41
+ </div >
42
+
43
+ <!-- JAR picker -->
34
44
<div class =" flex justify-center items-center" >
35
45
<div class =" max-w-xl" >
36
46
<label
@@ -52,15 +62,19 @@ import CheerpJLogo from "../../assets/branding/products/cheerpj/logotype-white.s
52
62
></path >
53
63
</svg >
54
64
<span class =" font-medium text-white" >
55
- Drop a JAR file or
65
+ Drop a file or
56
66
<span class =" text-blue-300 underline" >browse</span >
57
67
</span >
58
68
</span >
59
- <input type =" file" name =" file_upload" class =" hidden" />
69
+ <input
70
+ type =" file"
71
+ name =" file_upload"
72
+ class =" hidden"
73
+ accept =" .jar, .class"
74
+ />
60
75
</label >
61
76
</div >
62
77
</div >
78
+ <Footer />
63
79
</body >
64
-
65
- <Footer />
66
80
</Shell >
0 commit comments