Skip to content

Commit 7595656

Browse files
fpligerFabioRosado
andauthored
add try it out section on main page (#52)
* add try it out section on main page * Fix pyscript.com icon * remove disclaimer about PyScript being Alpha * remove commented CSS --------- Co-authored-by: Fabio Pliger <[email protected]> Co-authored-by: FabioRosado <[email protected]>
1 parent 3efd434 commit 7595656

File tree

3 files changed

+33
-19
lines changed

3 files changed

+33
-19
lines changed

assets/css/main.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,9 @@ a.examples-block {
126126
background: #1D1D22;
127127
border: 2px solid #FDA703;
128128
border-radius: 10px;
129-
margin: 2rem auto;
130129
/* color: #fff; */
131130
text-decoration: none;
132-
max-width: 370px;
133-
131+
width: 100%;
134132
align-items: center;
135133
border-radius: 10px;
136134
color: #fff;
@@ -185,7 +183,7 @@ a.examples-block:hover {
185183
display: grid;
186184
grid-gap: 30px;
187185
grid-template-columns: repeat(2,1fr);
188-
margin-top: 1rem;
186+
margin-top: 2rem;
189187
padding: 0;
190188
}
191189

assets/images/pyscript-logo-icon.svg

Lines changed: 3 additions & 0 deletions
Loading

index.html

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,35 @@
7575
</div>
7676
<!-- end terminal window -->
7777

78-
<!-- begin examples badge -->
79-
<a href="https://pyscript.net/examples/" target="_blank" rel="noreferrer noopener" class="examples-block">
80-
<div class="glyph">
81-
<svg width="16px" height="16px" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi bi-grid">
82-
<path d="M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zM2.5 2a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zM1 10.5A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3z"/>
83-
</svg>
84-
</div>
85-
<div>
86-
<h2>Examples</h2>
87-
<p><span>Click here</span> for example projects</p>
88-
</div>
78+
<div class="dialogs">
79+
<!-- begin examples badge -->
80+
<a href="https://pyscript.net/examples/" target="_blank" rel="noreferrer noopener" class="examples-block">
81+
<div class="glyph">
82+
<svg width="16px" height="16px" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi bi-grid">
83+
<path d="M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zM2.5 2a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zM1 10.5A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3z"/>
84+
</svg>
85+
</div>
86+
<div>
87+
<h2>Examples</h2>
88+
<p><span>Click here</span> for example projects</p>
89+
</div>
90+
</a>
91+
<!-- end examples badge -->
8992

90-
</a>
91-
<!-- end examples badge -->
93+
<!-- begin pyscript.com badge -->
94+
<a href="https://pyscript.com/" target="_blank" rel="noreferrer noopener" class="examples-block">
95+
<div class="glyph">
96+
<svg id="pyscript-logo-icon" width="16px" height="16px" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 165 155">
97+
<path d="M155.621 28.601C132.42-5.336 76.466-5.723 42.438 10.485-8.056 34.533-1.18 86.205 2.62 135.64c.295 3.812.605 7.706 2.147 11.203 1.538 3.498 4.56 6.59 8.346 7.145a8.704 8.704 0 0 0 4.41-.483c4.691-1.763 8.173-7.285 9.972-12.386 9.366-26.575 22.345-13.358 43.588-9.822 2.849.474 5.716.865 8.584 1.165l6.136-16.054-23.68-59.474a15.412 15.412 0 0 1 14.333-21.106c6.818 0 12.974 4.295 15.314 10.691l10.615 28.957 9.613-28.817a15.834 15.834 0 0 1 15.044-10.83 14.78 14.78 0 0 1 12.069 6.255 14.756 14.756 0 0 1 1.833 13.46l-26.398 73.734c24.295-8.256 43.956-29.783 49.092-55.01 3.167-15.556.933-32.551-8.027-45.662l.009-.005Z"/>
98+
</svg>
99+
</div>
100+
<div>
101+
<h2>Try it out!</h2>
102+
<p><span>PyScript.com</span> is the easiest way to try it out, for free</p>
103+
</div>
104+
</a>
105+
<!-- end pyscript.com badge -->
106+
</div>
92107

93108
<!-- begin dialog content -->
94109
<div class="dialogs">
@@ -138,8 +153,6 @@ <h2>Install</h2>
138153
</div>
139154
<!-- end dialog content -->
140155

141-
<p class="disclaimer">Please be advised that PyScript is very alpha and under heavy development. There are many known issues, from usability to loading times, and you should expect things to change often. We encourage people to play and explore with PyScript, but at this time we do not recommend using it for production.</p>
142-
143156
<div class="social">
144157
<figure class="profile">
145158
<svg width="256px" height="209px" viewBox="0 0 256 209" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">

0 commit comments

Comments
 (0)