Skip to content
Open
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
Binary file modified static/img/banners/coddy/coddy-billboard-bottom-python.png
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 static/img/banners/coddy/coddy-billboard-c.png
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 static/img/banners/coddy/coddy-billboard-cpp.png
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 static/img/banners/coddy/coddy-billboard-cs.png
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 static/img/banners/coddy/coddy-billboard-go.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/banners/coddy/coddy-billboard-js.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/banners/coddy/coddy-billboard-long-js.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 static/img/banners/coddy/coddy-billboard-php.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 static/img/banners/coddy/coddy-billboard-ts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion templates/index-python.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h1>{{ page_title }}</h1>
<div>
<p>This site is generously supported by <a href="https://datacamp.pxf.io/c/67577/1012793/13294?sharedId=learnpython.org&u=https%3A%2F%2Fwww.datacamp.com%2Fcategory%2Fpython">DataCamp</a>. DataCamp offers online interactive <a href="https://datacamp.pxf.io/c/67577/1012793/13294?sharedId=learnpython.org&u=https%3A%2F%2Fwww.datacamp.com%2Fcategory%2Fpython">Python Tutorials</a> for Data Science. Join <b>over a million</b> other learners and get started learning Python for data science today!</p>
{# <p>Ready to take the test? Head onto <a href="https://www.learnx.org" target="_blank">LearnX</a> and get your Python Certification!</p>#}
<a href="https://coddyapp.onelink.me/bvMS/3nrlodkd?af_sub1=learnpython.org" target="_blank">
<a href="https://link.coddy.tech/bvMS?af_web_dp=https%3A%2F%2Fcoddy.tech%2Flanding%2Fpython&af_sub1=learnpython.org" target="_blank">
<img src="/static/img/banners/coddy/coddy-billboard-bottom-python.png" style="width: 100%; margin-bottom: 10px"/>
</a>

Expand Down
30 changes: 27 additions & 3 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,30 @@
{% block ogurl %}{{ domain_data.full_url }}{% if tutorial_page %}/{{ path }}{% endif %}{% endblock %}

{% block content %}
{% set coddy_banner_languages = {
"learnjavaonline.org": {"img": "java", "landing": "java"},
"learn-html.org": {"img": "html", "landing": "html"},
"learn-golang.org": {"img": "go", "landing": "go"},
"learn-c.org": {"img": "c", "landing": "c"},
"learn-cpp.org": {"img": "cpp", "landing": "cpp"},
"learn-ts.org": {"img": "ts", "landing": "js"},
"learn-php.org": {"img": "php", "landing": "php"},
"learnshell.org": {"img": "shell", "landing": "terminal"},
"learncs.org": {"img": "cs", "landing": "csharp"},
"learnrubyonline.org": {"img": "ruby", "landing": "ruby"}
} %}
<div class="container" id="main">
<div class="row">
<div class="col-12">
<div class="d-none d-lg-block">
{% if domain_data.language == "javascript" %}
<a href="https://coddyapp.onelink.me/bvMS/0nt24j38?af_sub1=learn-js.org" target="_blank">
<a href="https://link.coddy.tech/bvMS?af_web_dp=https%3A%2F%2Fcoddy.tech%2Flanding%2Fjs&af_sub1=learn-js.org" target="_blank">
<img src="/static/img/banners/coddy/coddy-billboard-js.png" style="width: 100%; margin-bottom: 10px"/>
</a>
{% elif domain_data.namespace in coddy_banner_languages %}
<a href="https://link.coddy.tech/bvMS?af_web_dp=https%3A%2F%2Fcoddy.tech%2Flanding%2F{{ coddy_banner_languages[domain_data.namespace].landing }}&af_sub1={{ domain_data.namespace }}" target="_blank">
<img src="/static/img/banners/coddy/coddy-billboard-{{ coddy_banner_languages[domain_data.namespace].img }}.png" style="width: 100%; margin-bottom: 10px"/>
</a>
{% elif domain_data.language == "sql" %}
<a href="https://datacamp.pxf.io/c/67577/3120137/13294?sharedid=learnsql_topbanner" target="_blank">
<img src="/static/img/banners/datacamp/datacamp-billboard-sql.png" style="width: 100%; margin-bottom: 10px"/>
Expand Down Expand Up @@ -127,9 +143,13 @@ <h1>{{ page_title }}</h1>
<div class="row mt-2">
<div class="col">
{% if domain_data.language == "javascript" %}
<a href="https://coddyapp.onelink.me/bvMS/0nt24j38?af_sub1=learn-js.org" target="_blank">
<a href="https://link.coddy.tech/bvMS?af_web_dp=https%3A%2F%2Fcoddy.tech%2Flanding%2Fjs&af_sub1=learn-js.org" target="_blank">
<img src="/static/img/banners/coddy/coddy-billboard-js.png" style="width: 100%; margin-bottom: 10px"/>
</a>
{% elif domain_data.namespace in coddy_banner_languages %}
<a href="https://link.coddy.tech/bvMS?af_web_dp=https%3A%2F%2Fcoddy.tech%2Flanding%2F{{ coddy_banner_languages[domain_data.namespace].landing }}&af_sub1={{ domain_data.namespace }}" target="_blank">
<img src="/static/img/banners/coddy/coddy-billboard-{{ coddy_banner_languages[domain_data.namespace].img }}.png" style="width: 100%; margin-bottom: 10px"/>
</a>
{% else %}
<a href="https://codingforkids.io?utm_source=learnpython&utm_medium=banner&utm_campaign=cfk-learnpython&utm_id=learnpython" target="_blank">
<img src="/static/img/banners/cfk/cfk-billboard.png" style="width: 100%; margin-bottom: 10px"/>
Expand Down Expand Up @@ -165,9 +185,13 @@ <h4>Sponsors</h4>
{# </div>#}
<div class="mt-3">
{% if domain_data.language == "javascript" %}
<a href="https://coddyapp.onelink.me/bvMS/0nt24j38?af_sub1=learn-js.org" target="_blank">
<a href="https://link.coddy.tech/bvMS?af_web_dp=https%3A%2F%2Fcoddy.tech%2Flanding%2Fjs&af_sub1=learn-js.org" target="_blank">
<img src="/static/img/banners/coddy/coddy-billboard-long-js.png" style="width: 100%; margin-bottom: 10px"/>
</a>
{% elif domain_data.namespace in coddy_banner_languages %}
<a href="https://link.coddy.tech/bvMS?af_web_dp=https%3A%2F%2Fcoddy.tech%2Flanding%2F{{ coddy_banner_languages[domain_data.namespace].landing }}&af_sub1={{ domain_data.namespace }}" target="_blank">
<img src="/static/img/banners/coddy/coddy-billboard-long-{{ coddy_banner_languages[domain_data.namespace].img }}.png" style="width: 100%; margin-bottom: 10px"/>
</a>
{% else %}
<a href="https://codingforkids.io?utm_source=learnpython&utm_medium=banner&utm_campaign=cfk-learnpython&utm_id=learnpython" target="_blank">
<img src="/static/img/banners/cfk/promo_high.png" style="width: 100%; margin-bottom: 10px"/>
Expand Down