Skip to content
Merged
Show file tree
Hide file tree
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
54 changes: 25 additions & 29 deletions content/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -56,81 +56,82 @@ is_block:
body:

#### text-block ####
title: ### One codebase. Multiple apps.
title: One codebase. Multiple apps.
----
text: BeeWare allows you to write your app in Python and release it on multiple platforms. No need to rewrite the app in multiple programming languages. It means **no issues** with build tools, environments, compatibility, etc.
----
image:
----
image_alignment: right

#### text-block ####
title: ### Python native tools...
title: Python native tools...
----
text: Python has proven itself as a highly capable language - approachable for newcomers, but powerful in the hands of experts. Why shouldn't you be able to **use Python everywhere** that you need to tell a computer to do something? And shouldn't your tools **exploit all the capabilities of Python** as a language, not just the bits that map nicely to a C binding?
----
image: python.png
----
image_alignment: right

#### text-block ####
title: ### ...on mobile & desktop...
title: ...on mobile & desktop...
----
text: Modern computing doesn't happen in an 80x25 console window. It happens on **phones, tablets, and desktop machines** with rich user interfaces. Shouldn't you be able to use Python in all those locations, and **exploit the unique capabilities of those platforms**?
----
image: cross-platform.png
----
image_alignment: left

#### text-block ####
title: ### ...behaving natively.
title: ...behaving natively.
----
text: End users shouldn't have to care what language their tools are written in. And that starts with looking and behaving **like completely native tools**. Native appearance, native behavior, delivered in the way a native app is delivered. Why shouldn't your Python tools fit in just as well as a native tool?
----
image: native.png
----
image_alignment: right

#### text-block ####
title: ## This is BeeWare.
title: This is BeeWare.
----
text: This is what BeeWare provides. Tools to help you write Python code with a rich, **native user interface**; and the libraries and support code necessary to get that code running on **iOS, Android, macOS, Linux, Windows, tvOS, and more**.
----
image: brutus-97.png
----
image_alignment: left

#### text-block ####
title: ### Open source
title: Open source
----
text: The Open Source development process has proven itself to be the most reliable way to develop robust and reliable software. That's why the entire BeeWare suite of tools are BSD licensed, and **available for all to use and modify**.
----
image: opensource.png
----
image_alignment: right

#### text-block ####
title: ### All contributions welcome
title: All contributions welcome
----
text: But it's not just about code. A successful software project requires documentation, design skills, feedback and bug reports. The BeeWare community acknowledges that **all contributions are important** — not just the ones that come as a pull request on GitHub.
----
image: labhr.png
----
image_alignment: left

#### text-block ####
title: ### From diversity comes strength
title: From diversity comes strength
----
text: A diverse community is a strong community. This means accepting people of all levels of experience, from all backgrounds, of all races, creeds, orientations and expressions. The BeeWare project is committed to **developing and maintaining a diverse, welcoming community**. We have an **open offer to mentor anyone** who wants to get involved as a contributor, backed up by a [Code of Conduct](community/behavior/code-of-conduct/) that is rigorously enforced.
----
image: diversity.png
----
image_alignment: right

#### text-block ####
title: Contribute!
----
text: If all this sounds interesting, why not take a look at the [BeeWare projects](/project) and see how you can use them when developing Python applications? Or, if you'd like to contribute, and you've never contributed to open source before, start with our [guide for first time contributors](/contributing/first-time/). If you feel ready to dive straight in, check out the [project pages](/project/) or our guide on [what you can do to help](/contributing/).
----
image:
----
image_alignment:

#### button-block ####
label:

Contribute to BeeWare
Contribute to BeeWare
----
link: /contributing/
----
Expand All @@ -141,14 +142,12 @@ type: primary
size: lg
----
is_block: yes

#### text-block ####
title: ### Stay in touch!
title: Stay in touch!
----
text: Follow [@beeware@fosstodon.org](https://fosstodon.org/@beeware) on Mastodon, or [join the BeeWare enthusiasts mailing list](/community/keep-informed/) for updates, hints, tips, and announcements related to the project.
----
image:
----
image_alignment:

#### button-block ####
label: Keep in touch!
----
Expand All @@ -161,15 +160,12 @@ type: success
size: lg
----
is_block: yes

#### text-block ####
title: ### Members
----
text: BeeWare is supported by users like you! Every little bit helps: [click here to contribute](/membership/).
----
image:
title: Members
----
image_alignment:
text: BeeWare is supported by users like you! Every little bit helps: [click here to contribute](/membership/).
---
gutter_top:
---
gutter_bottom: ### [... and many more](/project/)
gutter_bottom: [... and many more](/project/)
3 changes: 1 addition & 2 deletions flowblocks/text-block.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ button_label = Rich Text

[fields.title]
label = Title
description = Markdown
type = markdown
type = text
translate = True

[fields.text]
Expand Down
3 changes: 2 additions & 1 deletion templates/blocks/text-block.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
{% if this.title %}<h3>{{ this.title }}</h3>{% endif %}
<p>{% if this.image %}<img src="{{ this.record.path }}{{ this.image }}" class="hidden-sm-down p-3 float-{{ this.image_alignment }}">{% endif %} {{ this.text }}</p>
<p>{% if this.image %}<img src="{{ this.record.path }}{{ this.image }}" class="hidden-sm-down p-3 float-{{ this.image_alignment }}">{% endif %}</p>
{{ this.text }}
4 changes: 2 additions & 2 deletions templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<div class="col-sm-12 col-md-8">
<h1 class="display-1">BeeWare</h1>
<h2 class="display-2">{{ this.title }}</h2>
<p>{{ this.description }}</p>
<p class="jumbotron-buttons">
{{ this.description }}
<p class="jumbotron-buttons">
{% for blk in this.header.blocks %}
{{ blk }}
{% endfor %}
Expand Down
44 changes: 22 additions & 22 deletions templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,25 +94,25 @@
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
{%- set extra_slash = '/' if this.path[-1] != '/' else '' -%}
{%- set alt_path = '%2B' + this.alt if this.alt and this.alt != 'en' else '' -%}
<li class="nav-item">
{%- if this.alt in get_alts(source=this, fallback=False) -%}
{%- set edit_link = 'https://github.com/beeware/beeware.github.io/edit/lektor/content' + this.path.split('@')[0] + extra_slash + 'contents' + alt_path + '.lr' -%}
<a class="nav-link" href="{{ edit_link }}" rel="noopener noreferrer" target="_blank">
<i class="fa fa-github "></i><small>&nbsp;{{ t_edit_on_github }}</small>
</a>
{%- else -%}
{# This method is provided by a custom plugin found in /packages/lektor_beeware_plugin/ #}
{%- set content_value = urlencode_limit(site.get(this.path, alt='_primary').contents.as_text(), limit=5000) -%}
{%- if content_value and '@' not in this.path -%}
<a class="nav-link" href="https://github.com/beeware/beeware.github.io/new/lektor/content{{ this.path }}/contents{{ alt_path }}.lr?filename=contents{{ alt_path }}.lr&value={{ content_value }}" target="_blank">
<i class="fa fa-github "></i><small>&nbsp;{{ t_create_on_github }}</small>
</a>
{%- endif -%}
{%- set extra_slash = '/' if this.path[-1] != '/' else '' -%}
Comment thread
freakboy3742 marked this conversation as resolved.
Outdated
{%- set alt_path = '%2B' + this.alt if this.alt and this.alt != 'en' else '' -%}
<li class="nav-item">
{%- if this.alt in get_alts(source=this, fallback=False) -%}
{%- set edit_link = 'https://github.com/beeware/beeware.github.io/edit/lektor/content' + this.path.split('@')[0] + extra_slash + 'contents' + alt_path + '.lr' -%}
<a class="nav-link" href="{{ edit_link }}" rel="noopener noreferrer" target="_blank">
<i class="fa fa-github "></i><small>&nbsp;{{ t_edit_on_github }}</small>
</a>
{%- else -%}
{# This method is provided by a custom plugin found in /packages/lektor_beeware_plugin/ #}
{%- set content_value = urlencode_limit(site.get(this.path, alt='_primary').contents.as_text(), limit=5000) -%}
{%- if content_value and '@' not in this.path -%}
<a class="nav-link" href="https://github.com/beeware/beeware.github.io/new/lektor/content{{ this.path }}/contents{{ alt_path }}.lr?filename=contents{{ alt_path }}.lr&value={{ content_value }}" target="_blank">
<i class="fa fa-github "></i><small>&nbsp;{{ t_create_on_github }}</small>
</a>
{%- endif -%}
</li>
<li class="nav-item dropdown dropdown-pull-right">
{%- endif -%}
</li>
<li class="nav-item dropdown dropdown-pull-right">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-globe" aria-hidden="true"></i> <span class="caret"></span>
</a>
Expand All @@ -124,12 +124,12 @@

{%- for alt, alternative in config.ALTERNATIVES.items()|sort -%}
{%- set alt_active = alt == this.alt -%}
{%- if alt != config.primary_alternative -%}
<a class="dropdown-item {% if alt_active %}active{% endif %}" href="{{ '.'|url(alt=alt) }}">
{{ transbag('translate', alt, alternative.name.en.lower()) }}
{%- if alt != config.primary_alternative %}
<a class="dropdown-item{% if alt_active %} active{% endif %}" href="{{ '.'|url(alt=alt) }}">
{{- transbag('translate', alt, alternative.name.en.lower()) -}}
</a>
{%- endif -%}
{%- endfor -%}
{%- endfor %}
</div>
</li>

Expand Down
2 changes: 1 addition & 1 deletion templates/macros/breadcrumbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% if not page.parent.parent %}
<a href="{{ '/'|url(alt=page.alt) }}">{{ t_home }}</a>
{% else %}
{{ breadcrumbs(page.parent) }} >
{{ breadcrumbs(page.parent) }} &gt;
<a href="{{ page.parent|url(alt=page.alt) }}">{{ page.parent.title }}</a>
{% endif %}
{% endmacro %}