Skip to content

Commit a508258

Browse files
committed
adding new version of webioricos landing page to make ab test
1 parent c11c3a1 commit a508258

File tree

6 files changed

+168
-2
lines changed

6 files changed

+168
-2
lines changed
1.14 MB
Loading

pythonpro/pages/templates/pages/tpp_webiorico_landing_page.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
{% load static %}
44

55
{% block title %}MASTERCLASS RUMO A PRIMEIRA VAGA! Inscreva-se Grátis!{% endblock %}
6-
{% block description %}{% endblock %}
6+
{% block description %}Eu vou te mostrar o caminho mais rápido para você conquistar sua primeira oportunidade como programador e iniciar uma carreira à prova de crise.{% endblock %}
77

88
{% block content %}
9+
{% block first_fold %}
910
<div class='bg-black'>
1011
<div class="container">
1112
<div class="row text-center text-light">
@@ -51,6 +52,7 @@ <h4 class='mb-5'>
5152
</div>
5253
</div>
5354
</div>
55+
{% endblock %}
5456

5557
<div class='mt-5 mb-5 content'>
5658
<div class="container">
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
{% extends 'pages/tpp_webiorico_landing_page.html' %}
2+
{% load bootstrap4 %}
3+
{% load static %}
4+
5+
{% block first_fold %}
6+
<div class='bg-black'>
7+
<div class="container">
8+
<div class="row text-center text-light">
9+
10+
</div>
11+
12+
<div class="row">
13+
<div class='col-md-7 col-sm-12 text-light main-form'>
14+
<div class="hero">
15+
<h1 class='font-weight-bold'>
16+
<span class="ec ec-rotating-light"></span>
17+
Pode parecer loucura... mas a <b class='text-uppercase danger'><u>Faculdade Não te Prepara para o Mercado de Trabalho!</b></u>
18+
</h1>
19+
20+
<h3 class='mb-4'>
21+
Pensando nisso, eu resolvi preparar uma Masterclass e mostrar o <b><u>caminho
22+
mais rápido para você conquistar sua PRIMEIRA OPORTUNIDADE</b></u> como programador
23+
e iniciar uma <b><u>carreira à prova de crise</b></u>.
24+
<span class="ec ec-rocket"></span>
25+
</h3>
26+
</div>
27+
<span class='' style='font-size: 16pt'>Preencha o formulário:</span>
28+
<form method="POST" class='mb-5 text-center'>
29+
{% csrf_token %}
30+
{% bootstrap_form form %}
31+
32+
<button type='submit' class='btn btn-warning text-center cta'>
33+
<b>
34+
EU QUERO A MINHA PRIMEIRA VAGA!
35+
<span class="ec ec-rocket"></span>
36+
</b>
37+
</button>
38+
</form>
39+
40+
<h4 class=''>
41+
<b class='text-uppercase'>Dia {{ date }} às 20h, Horário de Brasília</b>
42+
</h4>
43+
44+
<h4 class='' id="topo">
45+
Evento Online e 100% Gratuito.
46+
</h4>
47+
</div>
48+
49+
<div class='col-md-5 col-sm-12'>
50+
<img width="400px" class="photo-renzo not-iphone" src="{% static 'img/spp/footer/renzo-nuccitelli-v2.png' %}">
51+
</div>
52+
</div>
53+
</div>
54+
</div>
55+
{% endblock %}
56+
57+
{% block styles %}
58+
{{ block.super }}
59+
<link rel="preconnect" href="https://fonts.gstatic.com">
60+
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;700&display=swap" rel="stylesheet">
61+
<link rel='stylesheet' href='https://unpkg.com/emoji.css/dist/emoji.min.css'>
62+
63+
<style>
64+
* {
65+
font-family: 'Fira Sans', sans-serif !important;
66+
}
67+
.hero .danger {
68+
color: #F42C04;
69+
}
70+
.hero b {
71+
color: #ffc107;
72+
}
73+
.bg-black {
74+
background-color: #0c1b33 !important;
75+
}
76+
.content .ec {
77+
font-size: 100pt;
78+
}
79+
.content .col h3 {
80+
font-size: 17pt;
81+
margin: -20px 0;
82+
}
83+
84+
.photo-renzo {
85+
margin-top: 100px;
86+
}
87+
88+
.cta {
89+
font-size: 15pt !important;
90+
}
91+
92+
.hero {
93+
margin: 20px 0;
94+
}
95+
96+
.hero h1 {
97+
text-transform: inherit;
98+
margin-bottom: 30px;
99+
}
100+
@media only screen and (min-device-width : 320px) and (max-device-width : 1024px) {
101+
.hero h1 {
102+
font-size: 21pt;
103+
}
104+
.hero h3 {
105+
font-size: 14pt;
106+
line-height: 20pt;
107+
}
108+
.hero h4 {
109+
font-size: 14pt;
110+
}
111+
.cta {
112+
font-size: 12pt !important;
113+
padding: 10px;
114+
}
115+
h2 {
116+
font-size: 18pt;
117+
}
118+
p {
119+
font-size: 12pt;
120+
}
121+
.photo-renzo {
122+
margin-top: 10px;
123+
width: 300px;
124+
display: block;
125+
margin-left: auto;
126+
margin-right: auto;
127+
}
128+
.main-form {
129+
text-align: center;
130+
}
131+
.content .ec {
132+
font-size: 50pt;
133+
}
134+
.content h3 {
135+
margin-bottom: -10px;
136+
}
137+
.content .block {
138+
margin: 10px;
139+
}
140+
}
141+
</style>
142+
143+
{% endblock %}

pythonpro/pages/tests/test_tpp_webiorico_landing_page.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,10 @@ def test_should_set_date_by_url(client):
9393
def test_should_return_200_when_load_thank_you_page(client):
9494
resp = client.get(reverse('pages:tpp_webiorico_thank_you_page'))
9595
assert resp.status_code == 200
96+
97+
98+
def test_should_set_page_version_by_url(client):
99+
resp = client.get(reverse('pages:tpp_webiorico_landing_page_date_page_var', args=['13-10', 'v2']))
100+
101+
assert resp.status_code == 200
102+
assert resp.templates[0].name == 'pages/tpp_webiorico_landing_page_v2.html'

pythonpro/pages/urls.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@
4141
name='bootcamp_vip_thank_you_page'
4242
),
4343
path(
44-
'rumo-a-primeira-vaga/inscricao-<slug:date>',
44+
'rumo-a-primeira-vaga/inscricao-<str:date>_<str:version>',
45+
views.TppWebioricoLandingPage.as_view(),
46+
name='tpp_webiorico_landing_page_date_page_var'
47+
),
48+
path(
49+
'rumo-a-primeira-vaga/inscricao-<str:date>',
4550
views.TppWebioricoLandingPage.as_view(),
4651
name='tpp_webiorico_landing_page_date_var'
4752
),

pythonpro/pages/views.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ class TppWebioricoLandingPage(BaseLandingPageView):
9494
success_url = reverse_lazy('pages:tpp_webiorico_thank_you_page')
9595
email_marketing_tag = 'tpp-webiorico'
9696

97+
def get_template_names(self, *args, **kwargs):
98+
version = self.kwargs.get('version')
99+
template_name = super().get_template_names(*args, **kwargs)
100+
101+
if version is not None:
102+
template_name[0] = template_name[0].replace('.html', f'_{version}.html')
103+
104+
return template_name
105+
97106
def get_next_wed(self):
98107
if self.kwargs.get('date') is not None:
99108
return self.kwargs.get('date').replace('-', '/')

0 commit comments

Comments
 (0)