Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

html and style fixes #4

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

Merged
merged 2 commits into from
Mar 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ description: "An open source Python-3 (CPython >= 3.5.0) Interpreter written in
# baseurl: "/" # the subpath of your site, e.g. /blog
url: "https://rustpython.github.io" # the base hostname & protocol for your site, e.g. http://example.com
github_username: RustPython
disclaimer: "The disclaimer not to use this in production. Update this in the config.yml file at the root."
disclaimer: "RustPython is in a development phase and should not be used in production or a fault intolerant setting. Our current build supports only about half of the Python standard library."
github: https://github.com/RustPython/RustPython/
docs: https://github.com/RustPython/docs/
gitter: https://gitter.im/rustpython/Lobby
show_excerpts: true
contributor_excerpt: "" # TODO: write something here, goes right under "Contributors" heading
blog-intro: Create an issue if you read something wrong. Edit posts or create new ones via PR on <a target="_blank" href="https://github.com/RustPython/rustpython.github.io">github.com/RustPython/rustpython.github.io</a>

navigation:
- title: Blog
Expand Down
4 changes: 2 additions & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<header>
<nav class="menu w-100 text-center border-bottom">
<ul class="list-inline">
<li class="m-small float-left"><a href="{{ site.baseurl }}">Home</a></li>
<li class="float-left pl-1 pr-1"><a href="{{ site.url }}">Home</a></li>
{% for item in site.navigation %}
<li class="m-small float-left"><a href="{{ item.url | relativeurl }}">{{item.title}}</a></li>
<li class="float-left pr-1"><a href="{{ item.url | relativeurl }}">{{item.title}}</a></li>
{% endfor %}
</ul>
</nav>
Expand Down
12 changes: 8 additions & 4 deletions _layouts/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,31 @@
---

<section>
<div class="w-80 m-auto mt-md-4 mt-sm-2">
<div class="w-80 m-auto mt-2">
<div class="d-md-flex">
<div class="d-sm-none">
<img class="logo" src="{{site.baseurl}}/assets/img/rust-python-logo.svg" alt="RustPython Logo">
</div>
<div class="pl-md-2">
<div class="section-title">Archive</div>
<div class="title">{{ site.title }} {{ page.title | escape }}</div>
<small>{{ site.blog-intro }}</small>
</div>
</div>
</div>
</section>

<div class="w-80 m-auto mt-md-4 mt-sm-2">
<div class="w-80 m-auto mt-2">
<div class="blog-intro">
{{ content }}
</div>
{%- if site.posts.size > 0 -%}
<ul class="list-unstyled ">
{%- for post in site.posts -%}
<li class="blog-entry mt-4">
<li class="blog-entry mt-4 ">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<!-- flex container -->
<div class="d-md-flex">
<div class="d-md-flex ">
<div class="pl-md-2 mt-1">
<mark class="post-date">{{ post.date | date: date_format }}</mark>
</div>
Expand Down
46 changes: 24 additions & 22 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<!-- site title, logo and description -->
<!-- to update, edit the global site config.yaml -->
<section>
<div class="w-md-50 m-auto mt-md-4 mt-sm-2">
<div class="d-md-flex ml-lg-20-percent">
<div class="pl-2 d-sm-none"><img class="logo" src="{{site.baseurl}}/assets/img/rust-python-logo.svg" alt="RustPython Logo">
<div class="w-100 m-auto mt-2">
<div class="d-md-flex justify-center">
<div class="d-sm-none"><img class="logo" src="{{site.baseurl}}/assets/img/rust-python-logo.svg" alt="RustPython Logo">
</div>
<div class="pl-2">
<div class="w-md-25 pl-2">
<div class="title">{{ site.title }}</div>
<div class="">
<p class="w-80">
<p>
{{ site.description }}
</p>
</div>
Expand All @@ -23,45 +23,47 @@

<!-- explainer image, paragraph and links to demos -->
<!-- to update, edit index.markdown file in the root folder -->
<section class="p-2">
<div class="m-auto w-md-30 mt-md-4">
<section>
<div class="m-auto w-md-25 mt-2">
<img class="img-fluid" src="{{site.baseurl}}/assets/img/explainer.jpg" alt="RustPython Explainer">
</div>
<div class="mt-md-4 mt-sm-2 w-md-50 m-auto">
<p class="mt-md-4 text-justify">
<p class="mt-md-4">
{{ page.explainer }}
</p>
</div>
<div class="text-md-center">
<ul class="list-inline">
{% for demo in page.demo %}
<li class="float-left m-small"><a rel="noopener" rel="noreferrer" href="{{ demo.url }}" target="_blank">{{ demo.label }}</a></li>
<li class="float-left pr-1 mt-1"><a rel="noopener" rel="noreferrer" href="{{ demo.url }}" target="_blank">{{ demo.label }}</a></li>
{% endfor %}
</ul>
</div>
</section>

<!-- installation instructions -->
<!-- to update, edit the parameters in the index.markdown file -->
<section class="p-2">
<section>
<div class="text-center">
<div class="section-title"> Installation</div>
{% for install in page.installation %}
<mark class="code m-auto"> {{ install.command }} </mark>
<mark class="code d-table m-auto mt-1"> {{ install.command }} </mark>
{% endfor %}
<div class="mt-1"> <small><a rel="noopener" rel="noreferrer" href="{{ page.build-from-source-link }}" target="_blank">OR BUILD FROM SOURCE</a> </small></div>
</div>
</section>

<!-- goals and why rustpython -->
<!-- to update, edit the parameters in the index.markdown file -->
<section class="bg-light">
<div class="w-80 m-auto p-2">
<section class="bg-light mt-2">
<div class="w-md-80 m-auto">
<div class="section-title">Goals</div>
<div id="goals" class="d-md-flex ">
<div class="d-md-flex ">
{% for goals in page.goals %}
<div class="bg-rust text-white p-2 w-md-30 mt-2 goal">
{{ goals.goal }}
<div class="w-md-50 mt-2 goal bg-rust">
<div class=" text-white p-2">
{{ goals.goal }}
</div>
</div>
{% endfor %}
</div>
Expand All @@ -70,8 +72,7 @@
{{ content }}
</div>
<div class="w-md-50 mt-2">
<div class="border p-2 w-lg-30 w-md-50 m-auto mt-2">
<div>
<div class="border w-md-50 float-md-right mt-md-4 p-2">
<strong> Learn more </strong>
<!-- list of posts where category is "featured" -->
<ul class="list-unstyled">
Expand All @@ -81,7 +82,6 @@
{% endif %}
{%- endfor -%}
</ul>
</div>
</div>
</div>
</div>
Expand All @@ -91,15 +91,17 @@
<!-- contributor list -->
<!-- to edit, update _data/contributors.json -->
<section>
<div class="w-80 m-auto p-2">
<div class="w-md-80 m-auto">
<div class="section-title"> Contributors </div>
<p class="w-80">{{ site.contributor_excerpt}}</p>
<ul class="list-contributors">
{% for contributor in site.data.contributors %}
<li><a rel="noopener" rel="noreferrer" href="https://github.com/{{ contributor.github_username }}" target="_blank">{{ contributor.github_username }}</a></li>
{% endfor %}
</ul>
<div><small><a href="https://github.com/RustPython/RustPython/graphs/contributors">VIEW MORE</a></small></div>
<div><small><a href="https://github.com/RustPython/RustPython/#contributing">HOW TO CONTRIBUTE</a></small></div>
<div class="d-md-flex">
<div class="pr-1 mt-1"><small><a href="https://github.com/RustPython/RustPython/graphs/contributors">VIEW MORE</a></small></div>
<div class="mt-1"><small><a href="https://github.com/RustPython/RustPython/#contributing">HOW TO CONTRIBUTE</a></small></div>
</div>
</div>
</section>
28 changes: 12 additions & 16 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,22 @@
---

<!-- header section -->
<section>
<div class="w-80 m-auto mt-md-4 mt-sm-2">
<div class="d-md-flex">
<div class="">
<div class="section-title">{{ site.title }} Blog</div>
<div class="title w-80 mt-sm-1"> {{ page.title | escape }}</div>
</div>
</div>
</div>
<section class="bg-light">
<div class="w-80 m-auto">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<mark class="post-date">{{ page.date | date: date_format }}</mark>

<div class="section-title mt-1">{{ site.title }} Blog</div>
<div class="title mt-sm-1"> {{ page.title | escape }}</div>
<small>{{ site.blog-intro }}</small>
</div>
</section>

<!-- date and content -->
<!-- content -->
<section>
<div class="w-80 m-auto mt-2">
<div class="w-md-75 d-flex">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<mark class="post-date">{{ page.date | date: date_format }}</mark>
<div class="w-md-75">
<div class="w-md-80 m-auto">
<div class="w-md-80">
{{ content }}
</div>
</div>
</div>
</section>
8 changes: 0 additions & 8 deletions _posts/2020-03-12-welcome-to-jekyll.markdown

This file was deleted.

19 changes: 12 additions & 7 deletions assets/media.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,30 @@
width: 50%;
}

.w-md-30 {
width: 30%;
.w-md-25 {
width: 25%;
}

.w-md-75 {
width: 75%;
.w-md-80 {
width: 80%;
}

.text-md-center {
text-align: center;
}

.goal:last-child{
margin-left: 2em;
}

.float-md-right {
float: right;
}

}

/* fixes for ipad */
@media (min-width: 992px) {
.ml-lg-20-percent {
margin-left: 20%;
}

.w-lg-30 {
width: 30%;
Expand Down
Binary file added assets/media/bytecode.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/media/python-larpop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/media/tokenizing-with-errors.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/media/tokenizing.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading