Skip to content

Commit 950007d

Browse files
committed
creating linktree page to add in instagram bio. Closes #2066
1 parent ef21142 commit 950007d

6 files changed

Lines changed: 151 additions & 1 deletion

File tree

6.25 KB
Loading

pythonpro/core/templates/core/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
{% block head %}{% endblock %}
3939
</head>
40-
<body>
40+
<body class='{% block body_class %}{% endblock %}'>
4141
{# Google Tag Manager (noscript)#}
4242
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{GOOGLE_TAG_MANAGER_ID}}"
4343
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
{% extends 'core/base_without_nav.html' %}
2+
{% load static %}
3+
{% block title %}Linktree Python Pro{% endblock %}
4+
5+
{% block body_class %}bg-primary{% endblock %}
6+
7+
{% block styles %}{{block.super}}
8+
<link rel='stylesheet' href='https://unpkg.com/emoji.css/dist/emoji.min.css'>
9+
10+
<style>
11+
@font-face {
12+
font-family: 'Gilroy-Bold';
13+
font-style: normal;
14+
font-weight: normal;
15+
src: local('Gilroy-Bold ☞'), url('{% static "fonts/Gilroy-Bold.woff" %}') format('woff');
16+
}
17+
a, div, p, span {
18+
text-decoration: none;
19+
font-family: Gilroy-Bold;
20+
}
21+
</style>
22+
{% endblock %}
23+
24+
{% block body %}
25+
<div class="container text-center">
26+
<div class="row mt-5">
27+
<div class="col">
28+
<img src="{% static 'img/renzo-thumb.jpg' %}" class="rounded-circle" >
29+
</div>
30+
</div>
31+
32+
<div class="row mt-2 mb-5">
33+
<div class="col">
34+
<h1 style="text-weight: bold; color: #fff">@renzoprobr</h1>
35+
</div>
36+
</div>
37+
38+
<div class="row mb-3">
39+
<div class="col">
40+
<a href="https://www.python.pro.br/curso-de-python-gratis?utm_source=instagram-bio&utm_medium=trafego-organico" target="_blank" class='btn btn-lg btn-block btn-warning linktree-python-birds'>
41+
<span class="ec ec-gift"></span>
42+
<b>Curso de Python GRÁTIS</b>
43+
</a>
44+
</div>
45+
</div>
46+
47+
<div class="row mb-3">
48+
<div class="col">
49+
<a href="https://www.python.pro.br/curso-de-python-intermediario?utm_source=instagram-bio&utm_medium=trafego-organico" target="_blank" class='btn btn-lg btn-block btn-warning linktree-pytools'>
50+
<span class="ec ec-desktop-computer"></span>
51+
<b>Curso PyTools</b>
52+
</a>
53+
</div>
54+
</div>
55+
56+
<div class="row mb-3">
57+
<div class="col">
58+
<a href="https://www.python.pro.br/inscricao?utm_source=instagram-bio&utm_medium=trafego-organico" target="_blank" class='btn btn-lg btn-block btn-warning linktree-python-pro'>
59+
<span class="ec ec-rocket"></span>
60+
<b>Curso Python Pro</b>
61+
</a>
62+
</div>
63+
</div>
64+
65+
<div class="row mb-3">
66+
<div class="col">
67+
<a href="https://www.youtube.com/playlist?list=PLA05yVJtRWYQjnOvJXFpOo8K8unbnAf3B" target="_blank" class='btn btn-lg btn-block btn-warning linktree-devpro'>
68+
<span class="ec ec-headphones"></span>
69+
<b>Podcast DevPro</b>
70+
</a>
71+
</div>
72+
</div>
73+
74+
<div class="row mb-3">
75+
<div class="col">
76+
<a href="http://anchor.fm/renzoprocast" target="_blank" class='btn btn-lg btn-block btn-warning linktree-renzoprocast'>
77+
<span class="ec ec-headphones"></span>
78+
<b>RenzoProCast</b>
79+
</a>
80+
</div>
81+
</div>
82+
83+
<div class="row mb-3">
84+
<div class="col">
85+
<a href="https://www.youtube.com/user/renzonuccitelli" target="_blank" class='btn btn-lg btn-block btn-warning linktree-youtube'>
86+
<span class="ec ec-clapper"></span>
87+
<b>Canal do Youtube</b>
88+
</a>
89+
</div>
90+
</div>
91+
92+
<div class="row mb-3">
93+
<div class="col">
94+
<a href="http://bit.ly/canal-python-pro" target="_blank" class='btn btn-lg btn-block btn-warning linktree-telegram'>
95+
<span class="ec ec-bell"></span>
96+
<b>Canal no Telegram</b>
97+
</a>
98+
</div>
99+
</div>
100+
101+
<div class="row mb-3">
102+
<div class="col">
103+
<a href="http://bit.ly/galera-python-pro" target="_blank" class='btn btn-lg btn-block btn-warning linktree-galera-python-pro'>
104+
<span class="ec ec-speaking-head"></span>
105+
<b>Galera Python Pro</b>
106+
</a>
107+
</div>
108+
</div>
109+
110+
<div class="row mb-3">
111+
<div class="col">
112+
<a href="https://twitter.com/renzoprobr" target="_blank" class='btn btn-lg btn-block btn-warning linktree-twitter'>
113+
<span class="ec ec-memo"></span>
114+
<b>Twitter</b>
115+
</a>
116+
</div>
117+
</div>
118+
119+
<div class="row mb-3">
120+
<div class="col">
121+
<a href="https://api.whatsapp.com/send?phone=5512992488788" target="_blank" class='btn btn-lg btn-block btn-warning linktree-whatsapp'>
122+
<span class="ec ec-iphone"></span>
123+
<b>WhatsApp</b>
124+
</a>
125+
</div>
126+
</div>
127+
128+
129+
130+
</div>
131+
{% endblock body %}
132+
133+
{% block footer %}{% endblock %}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pytest
2+
from django.urls import reverse
3+
4+
5+
@pytest.fixture
6+
def resp(client):
7+
return client.get(reverse('core:linktree'), secure=True)
8+
9+
10+
def test_status_code(resp):
11+
assert 200 == resp.status_code

pythonpro/core/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
path('sitemap.xml', views.sitemap, name='sitemap'),
1010
path('robots.txt', robots_txt(timeout=86400), name='robots'),
1111
path('tech-talks', views.teck_talks, name='tech_talks'),
12+
path('linktree', views.linktree, name='linktree'),
1213
path('podcast', views.podcast, name='podcast'),
1314
path('curso-de-python-gratis', views.lead_landing, name='lead_landing'),
1415
path('curso-de-python-gratis-lite', views.lead_landing_lite, name='lead_landing_lite'),

pythonpro/core/views.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,8 @@ def lead_form(request):
176176

177177
def lead_form_without_OTO(request):
178178
return _lead_form(request, redirect_to_OTO=False)
179+
return redirect(reverse('payments:client_landing_page_oto'))
180+
181+
182+
def linktree(request):
183+
return render(request, 'core/linktree.html', {})

0 commit comments

Comments
 (0)