Skip to content

Commit 614ab25

Browse files
committed
dropdown menu
1 parent 94b9f76 commit 614ab25

File tree

1 file changed

+34
-20
lines changed

1 file changed

+34
-20
lines changed

src/pages/cj3-demo/index.astro

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,40 @@ import CheerpJLogo from "../../assets/branding/products/cheerpj/logotype-white.s
77
---
88

99
<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"
1212
>
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>
2714
<div
2815
class="bg-gradient-to-b from-primary-600 to-transparent opacity-20 w-full h-[40rem] absolute inset-0 -z-10"
2916
>
3017
<!-- cool background -->
3118
</div>
3219
</header>
3320
<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 -->
3444
<div class="flex justify-center items-center">
3545
<div class="max-w-xl">
3646
<label
@@ -52,15 +62,19 @@ import CheerpJLogo from "../../assets/branding/products/cheerpj/logotype-white.s
5262
></path>
5363
</svg>
5464
<span class="font-medium text-white">
55-
Drop a JAR file or
65+
Drop a file or
5666
<span class="text-blue-300 underline">browse</span>
5767
</span>
5868
</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+
/>
6075
</label>
6176
</div>
6277
</div>
78+
<Footer />
6379
</body>
64-
65-
<Footer />
6680
</Shell>

0 commit comments

Comments
 (0)