Skip to content

Commit d14dbf8

Browse files
committed
Make text selectable on landing page.
1 parent 14b4d29 commit d14dbf8

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

docs/site/index.md

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,28 @@ layout: base
2020
<div class="wrapper">
2121
<div class="container">
2222
<div class="languages__example-row">
23-
<a href="{{ '/jvm-developers/' | relative_url }}" title="Embed Python in JVM Applications">
24-
<div class="languages__example-card languages__example-card-link" tabindex="0">
25-
<p class="languages__example-card-title">Embed Python in JVM Applications</p>
26-
<div class="cta-code">
23+
<div class="languages__example-card languages__example-card-primary" tabindex="0">
24+
<a href="{{ '/jvm-developers/' | relative_url }}" title="Embed Python in JVM Applications" class="languages__example-card-link"></a>
25+
<p class="languages__example-card-title">Embed Python in JVM Applications</p>
26+
<div class="cta-code">
2727
{%- highlight java -%}
2828
import org.graalvm.polyglot.Context;
2929

30-
try (Context context = Context.newBuilder().allowAllAccess(true).build()) {
30+
try (Context context = Context.newBuilder().build()) {
3131
context.eval("python", "print('Hello from GraalPy!')");
3232
}
3333
{%- endhighlight -%}
34-
</div>
35-
<ul class="language__benefits-list">
36-
<li>Use Python packages directly in Java, Kotlin, or Scala</li>
37-
<li>Upgrade Jython projects to Python 3</li>
38-
<li>Script JVM applications with Python</li>
39-
</ul>
4034
</div>
41-
</a>
42-
<a href="{{ '/python-developers/' | relative_url }}" title="Build and Run Python Applications">
43-
<div class="languages__example-card-secondary languages__example-card-secondary-link" tabindex="0">
44-
<p class="languages__example-card-title">Build and Run Python Applications</p>
45-
<div class="cta-code">
35+
<ul class="language__benefits-list">
36+
<li>Use Python packages directly in Java, Kotlin, or Scala</li>
37+
<li>Upgrade Jython projects to Python 3</li>
38+
<li>Script JVM applications with Python</li>
39+
</ul>
40+
</div>
41+
<div class="languages__example-card" tabindex="0">
42+
<a href="{{ '/python-developers/' | relative_url }}" title="Build and Run Python Applications" class="languages__example-card-link"></a>
43+
<p class="languages__example-card-title">Build and Run Python Applications</p>
44+
<div class="cta-code">
4645
{%- highlight bash -%}
4746
$ pyenv install graalpy-{{ site.language_version }}
4847
$ pyenv shell graalpy-{{ site.language_version }}
@@ -51,14 +50,13 @@ graalpy
5150
$ python3 -m timeit "'-'.join(str(n) for n in range(100))"
5251
500000 loops, best of 5: 757 nsec per loop
5352
{%- endhighlight -%}
54-
</div>
55-
<ul class="language__benefits-list">
56-
<li>Speed up Python applications with the Graal JIT</li>
57-
<li>Package Python applications as a single binary</li>
58-
<li>Use Java libraries in Python applications</li>
59-
</ul>
6053
</div>
61-
</a>
54+
<ul class="language__benefits-list">
55+
<li>Speed up Python applications with the Graal JIT</li>
56+
<li>Package Python applications as a single binary</li>
57+
<li>Use Java libraries in Python applications</li>
58+
</ul>
59+
</div>
6260
</div>
6361
</div>
6462
</div>

0 commit comments

Comments
 (0)