Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the explainer an HTML table #31

Merged
merged 3 commits into from
Dec 10, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Implement the explainer as an html table
  • Loading branch information
coolreader18 committed Dec 10, 2020
commit 611aac08c9bd80323330a2f256519a0c5437f7da
43 changes: 42 additions & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
@@ -26,7 +26,48 @@
<!-- to update, edit index.markdown file in the root folder -->
<section>
<div class="m-auto w-md-25 mt-2">
<img class="img-fluid" src="{{site.baseurl}}/assets/img/explainer.jpg" alt="RustPython Explainer">
<table class="w-100">
<tr>
<td class="valign-center vpad-small">
<img class="explainer-icon" src="{{site.baseurl}}/assets/img/python-logo.svg" alt="Python Logo">
Python
</td>
<td></td><td></td>
</tr>
<tr>
<td class="valign-center vpad-small">
</td>
<td></td><td></td>
</tr>
<tr>
<td><div class="padding-small text-center">
<!-- inline css to get it to look like one word, despite the padding classes -->
<span class="bg-rust rustpy-name text-white" style="padding-right: 1px;">Rust</span
><span class="color-py rustpy-name" style="padding-left: 0;">Python</span>
</div></td>
<td class="text-center padding-small">
</td>
<td><div class="valign-center padding-small text-center">Python embedded in Rust apps</div></td>
</tr>
<tr>
<td class="valign-center vpad-small">
</td>
<td></td><td></td>
</tr>
<tr>
<td><div class="valign-center vpad-small">
<img class="explainer-icon" src="{{site.baseurl}}/assets/img/wasm-logo.svg" alt="WebAssembly Logo">
WebAssembly
</div></td>
<td class="text-center padding-small">
</td>
<td><div class="valign-center padding-small text-center">Python on the Web</div></td>
</tr>
</table>
</div>
<div class="mt-md-4 mt-sm-2 w-md-50 m-auto">
<p class="mt-md-4">
1 change: 1 addition & 0 deletions assets/img/python-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions assets/img/wasm-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions assets/style.css
Original file line number Diff line number Diff line change
@@ -112,6 +112,11 @@ code.highlighter-rouge, mark.code {
color: #fff;
}

.color-py {
background-color: #ffd343;
color: #306998;
}

/* alignment */
.d-flex-space-between {
justify-content: space-between;
@@ -129,6 +134,12 @@ code.highlighter-rouge, mark.code {
text-align: center;
}

.valign-center {
display:flex;
align-items: center;
justify-content: center;
}

.justify-center {
justify-content: center;
align-items: center;
@@ -144,6 +155,10 @@ code.highlighter-rouge, mark.code {
padding: 5px;
}

.vpad-small {
padding: 5px 0;
}

.mb-1 {
margin-bottom: 1em;
}
@@ -251,6 +266,15 @@ ul.list-inline {
height: 80px;
}

.explainer-icon {
height: 30px;
margin-right: 5px;
}

.rustpy-name {
padding: 5px 7px;
}

.goal {
line-height: 1.5em;
}