From cdcc03241e06c146ffc28a9a086d23dc2f3631eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20=C3=81lvarez?= Date: Wed, 13 Sep 2017 14:11:26 -0300 Subject: [PATCH 01/32] Cambiando /territorios por /candidaturas --- elections/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elections/urls.py b/elections/urls.py index 0c8c9446..3cb1bb24 100644 --- a/elections/urls.py +++ b/elections/urls.py @@ -61,7 +61,7 @@ cache_page(60 * settings.CACHE_MINUTES)(CandidateDetailView.as_view(template_name='elections/candidate_detail.html')), name='candidate_detail_view' ), - url(r'^territorio/(?P[-\w]+)/(?P[-\w]+)/?$', + url(r'^candidaturas/(?P[-\w]+)/(?P[-\w]+)/?$', cache_page(60 * settings.CACHE_MINUTES)(CandidateDetailView.as_view(template_name='elections/candidate_detail.html')), name='candidate_detail_view_area' ), @@ -73,10 +73,10 @@ url(r'^eleccion/(?P[-\w]+)/extra_info.html$', ElectionDetailView.as_view(template_name='elections/extra_info.html'), name='election_extra_info'), - url(r'^territorio/(?P[-\w]+)/?$', + url(r'^candidaturas/(?P[-\w]+)/?$', AreaDetailView.as_view(template_name='elections/area.html'), name='area'), - url(r'^territorio/?$', KnowYourCandidatesView.as_view(), name='know_your_candidates'), + url(r'^candidaturas/?$', KnowYourCandidatesView.as_view(), name='know_your_candidates'), ] # urlpatterns += [ From 25012bb0e0a709048f3465d2d80832992d0c0b70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lissett=20Garc=C3=ADa=20Albornoz?= Date: Wed, 13 Sep 2017 19:16:52 -0300 Subject: [PATCH 02/32] Cards style --- .../static/sass/_levantalamano.scss | 80 +++++++++++++++++++ .../static/sass/_media-levantalamano.scss | 12 +++ .../templates/votita/lista_propuesta.html | 21 ++++- .../templates/votita/materiales.html | 2 + 4 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 votai_general_theme/templates/votita/materiales.html diff --git a/votai_general_theme/static/sass/_levantalamano.scss b/votai_general_theme/static/sass/_levantalamano.scss index 73e6f0ac..16cbce64 100644 --- a/votai_general_theme/static/sass/_levantalamano.scss +++ b/votai_general_theme/static/sass/_levantalamano.scss @@ -105,6 +105,86 @@ h2{ padding: 30px 0 240px; } +/*PROPOSALS REPOSITORY*/ +#grid{ + position: relative; +} +#grid > #posts .post{ + width: 340px; +} +#posts{ + position: relative; + height: -webkit-fill-available; +} +.post.propuesta{ + position: absolute; + left: 0px; + top: 0px; +} +.post{ + margin: 0 0 50px; +} +.propuesta{ + min-height: 310px; + border-radius: 10px; + padding: 0; + position: relative; +} +.propuesta-content{ + padding: 25px 20px 35px; +} +.votita-love-politica{ + border: 3px solid $yellow; + .label-default{ + background: $yellow; + } +} +.votita-love-salud{ + border: 3px solid $blue; + .label-default{ + background: $blue; + } +} +.votita-love-medio_ambiente{ + border: 3px solid $green; + .label-default{ + background: $green; + } +} +.votita-love-cultura{ + border: 3px solid $red; + .label-default{ + background: $red; + } +} +.votita-love-diversidad{ + border: 3px solid $purple; + .label-default{ + background: $purple; + } +} +.votita-love-tecnologia{ + border: 3px solid $blue; + .label-default{ + background: $blue; + } +} +.votita-love-educacion_y_trabajo{ + border: 3px solid $pink; + .label-default{ + background: $pink; + } +} +.votita-love-proteccion_y_familia{ + border: 3px solid $yellow; + .label-default{ + background: $yellow; + } +} +.label-default{ + @extend .small; +} + /*FOOTER*/ .greenline{ background-image: url("../img/lm-footer.svg"); diff --git a/votai_general_theme/static/sass/_media-levantalamano.scss b/votai_general_theme/static/sass/_media-levantalamano.scss index 05bff1eb..e927ce24 100644 --- a/votai_general_theme/static/sass/_media-levantalamano.scss +++ b/votai_general_theme/static/sass/_media-levantalamano.scss @@ -10,3 +10,15 @@ padding: 80px 0 240px; } } +@media screen and (max-width: 991px) { + /*PROPOSALS REPOSITORY*/ + #grid > #posts .post{ + width: 440px; + } +} +@media screen and (max-width: 768px) { + /*PROPOSALS REPOSITORY*/ + #grid > #posts .post{ + width: 100%; + } +} diff --git a/votai_general_theme/templates/votita/lista_propuesta.html b/votai_general_theme/templates/votita/lista_propuesta.html index 1194580a..39e568b4 100644 --- a/votai_general_theme/templates/votita/lista_propuesta.html +++ b/votai_general_theme/templates/votita/lista_propuesta.html @@ -9,8 +9,27 @@ {% block content %}

{% trans "Propuestas" %}

-
+
{% include 'popular_proposal/_lista_propuestas.html' with popular_proposals=proposals %}
+ {% endblock content %} diff --git a/votai_general_theme/templates/votita/materiales.html b/votai_general_theme/templates/votita/materiales.html new file mode 100644 index 00000000..f2eb165b --- /dev/null +++ b/votai_general_theme/templates/votita/materiales.html @@ -0,0 +1,2 @@ +{% extends "votita/base.html" %} +hola From 8fe9023a5af6b7eba947b888db329f1450c9f748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lissett=20Garc=C3=ADa=20Albornoz?= Date: Thu, 14 Sep 2017 13:04:35 -0300 Subject: [PATCH 03/32] New contents --- votai_general_theme/static/img/lm-met.svg | 15 +++-- votai_general_theme/static/img/lm-redline.svg | 10 +++ .../static/img/lm-yellowline.svg | 6 +- .../static/sass/_levantalamano.scss | 63 +++++++++++++++---- .../static/sass/_media-levantalamano.scss | 18 +++++- .../templates/votita/index.html | 22 +++++-- 6 files changed, 103 insertions(+), 31 deletions(-) create mode 100644 votai_general_theme/static/img/lm-redline.svg diff --git a/votai_general_theme/static/img/lm-met.svg b/votai_general_theme/static/img/lm-met.svg index c092703f..5b2d9b78 100644 --- a/votai_general_theme/static/img/lm-met.svg +++ b/votai_general_theme/static/img/lm-met.svg @@ -1,14 +1,14 @@ - Page 1 + Group 4 Created with Sketch. - - + + @@ -16,12 +16,11 @@ - - + - - - + + + diff --git a/votai_general_theme/static/img/lm-redline.svg b/votai_general_theme/static/img/lm-redline.svg new file mode 100644 index 00000000..26767d9e --- /dev/null +++ b/votai_general_theme/static/img/lm-redline.svg @@ -0,0 +1,10 @@ + + + + Fill 1 Copy 2 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/votai_general_theme/static/img/lm-yellowline.svg b/votai_general_theme/static/img/lm-yellowline.svg index 18fc338d..a73ccfd3 100644 --- a/votai_general_theme/static/img/lm-yellowline.svg +++ b/votai_general_theme/static/img/lm-yellowline.svg @@ -1,10 +1,10 @@ - + - Fill 1 Copy 2 + Fill 1 Copy 3 Created with Sketch. - + \ No newline at end of file diff --git a/votai_general_theme/static/sass/_levantalamano.scss b/votai_general_theme/static/sass/_levantalamano.scss index 73e6f0ac..7482828a 100644 --- a/votai_general_theme/static/sass/_levantalamano.scss +++ b/votai_general_theme/static/sass/_levantalamano.scss @@ -19,6 +19,15 @@ html, body { .img-responsive{ display: inline; } +h1{ + font-family: 'Fredoka One', sans-serif; + letter-spacing: 2px; +} +h2{ + @extend h1; +} + +/*BUTTONS*/ .btn{ border-radius: 20px; border: none; @@ -44,14 +53,23 @@ html, body { box-shadow: none; } } -h1{ - font-family: 'Fredoka One', sans-serif; - letter-spacing: 2px; -} -h2{ - @extend h1; +.btn-blue{ + border: 3px solid $blue; + background-color: $blue; + color: white; + &:hover{ + background-color: transparent; + color: white; + border: 3px solid white; + } + &:focus{ + @extend .btn-blue:hover; + } + &:active:hover{ + @extend .btn-blue:hover; + box-shadow: none; + } } - /*MAIN CONTAINERS*/ .color{ color: white; @@ -79,15 +97,21 @@ h2{ background-repeat: no-repeat; min-height: 28px; } -.yellowline{ - background-image: url("../img/lm-yellowline.svg"); +.redline{ + background-image: url("../img/lm-redline.svg"); background-repeat: no-repeat; min-height: 46px; margin-top: -48px; } +.yellowline{ + background-image: url("../img/lm-yellowline.svg"); + background-repeat: no-repeat; + min-height: 28px; + margin-top: -30px; +} .special-position{ position: relative; - top: 100px; + top: 80px; } /*HOME 0*/ @@ -96,13 +120,26 @@ h2{ top: 100px; } #banner{ - min-height: 400px; + min-height: 380px; } #que-es{ - padding: 30px 0 60px; + padding: 30px 0 70px; +} +p.bajada{ + font-size: 18px; + line-height: 22px; +} +p.aviso{ + font-size: 22px; + line-height: 26px; + font-family: 'Nunito', sans-serif; + font-weight: 700; } #contact{ - padding: 30px 0 240px; + padding: 30px 0 80px; +} +#soon{ + padding: 40px 0 210px; } /*FOOTER*/ diff --git a/votai_general_theme/static/sass/_media-levantalamano.scss b/votai_general_theme/static/sass/_media-levantalamano.scss index 05bff1eb..666bd1c4 100644 --- a/votai_general_theme/static/sass/_media-levantalamano.scss +++ b/votai_general_theme/static/sass/_media-levantalamano.scss @@ -3,10 +3,24 @@ .logo-title{ top: 70px; } + .special-position{ + top: 30px; + } #que-es{ - padding: 100px 0 60px; + padding: 50px 0 60px; } #contact{ - padding: 80px 0 240px; + padding: 20px 0 90px; + } + #soon{ + padding: 40px 0 210px; + } + p.bajada{ + font-size: 16px; + line-height: 20px; + } + p.aviso{ + font-size: 20px; + line-height: 24px; } } diff --git a/votai_general_theme/templates/votita/index.html b/votai_general_theme/templates/votita/index.html index e03bad1c..e847255c 100644 --- a/votai_general_theme/templates/votita/index.html +++ b/votai_general_theme/templates/votita/index.html @@ -23,8 +23,8 @@

¿Qué es?

-

La formación ciudadana debe iniciarse desde la infancia y consolidarse durante la adolescencia. Por ello, desde Fundación Ciudadano Inteligente y el Fondo de las Naciones Unidas para la Infancia, UNICEF Chile, proponemos la iniciativa “Levanta la mano” como una alternativa para abrir el debate con niños, niñas y adolescentes, de manera que analicen y discutan, desde su perspectiva y vivencias, los problemas y desafíos que enfrenta actualmente Chile, y las posibles soluciones que pueden llevarse a cabo.

-

Te invitamos a descargar la metodología y generar un encuentro con tu curso o grupo

+

Formarse como ciudadanos y ciudadanas tiene que partir desde la infancia y seguir avanzando en la adolescencia y la adultez. Por eso, desde la Fundación Ciudadano Inteligente y el Fondo de las Naciones Unidas para la Infancia, UNICEF Chile, creamos “Levanta la mano” una herramienta para abrir la conversación entre niños, niñas y adolescentes para reflexionar, participar, discutir y proponer desde las vivencias propias, los problemas y desafíos que tenemos como país, y las posibles soluciones que se nos puedan ocurrir.

+

Si eres profesor o guía de un grupo de niños, niñas y adolescentes, te invitamos a descargar la metodología y generar un encuentro con tu curso o grupo.

@@ -33,14 +33,26 @@

¿Qué es?

+
+
+
+
+
+
+

Inscribe a tu grupo

+

Si quieres que tu profesor o guía de algún taller,
grupo scout o actividad lleve esta iniciativa a tu grupo,
déjanos su contacto

+
+
+
+
-
+
-
+

Próximamente

-

Próximamente podrás subir las propuestas de tu encuentro y ver todas las propuestas que otros niños, niñas y adolescentes han generado

+

¡Después de las vacaciones de fiestas patrias tendremos el paso a paso para comenzar subir las propuestas!

From 32b0899daae8e2188be3eeced2425018da4e18cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lissett=20Garc=C3=ADa=20Albornoz?= Date: Thu, 14 Sep 2017 13:11:18 -0300 Subject: [PATCH 04/32] Favicon and title --- votai_general_theme/static/lm-favicon.ico | Bin 0 -> 382 bytes votai_general_theme/templates/votita/base.html | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 votai_general_theme/static/lm-favicon.ico diff --git a/votai_general_theme/static/lm-favicon.ico b/votai_general_theme/static/lm-favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..a2e189232d912090f35c64013c5cdf32245ff9eb GIT binary patch literal 382 zcmV-^0fGLBP)F|CS`q#dVA`Vb4eqR_V)+SoZv_XI@f++|?ioKiz{-BzI`RwN zEOdiEGyRCy4YzGR=JuHBRPB5O`w+J}fd)*0^1BdOh|=!I7Fof!L8m@|J}wI~bw;%z zL{>muLlxGb2P*QsGGB%o=xKUxqMZ}f!V^%ta&QTX=~k)sPDLMPUF9NLpZnrsLz&c$ zPcm9O?}``Ds#ROZENKJ1Zw{_t1Ingx!L5cg({)EZ_n+7$o{2A3Pm@efID}2mEjw@u c-|)Zo1N1FF(B~5n<^TWy07*qoM6N<$f~xSG>Hq)$ literal 0 HcmV?d00001 diff --git a/votai_general_theme/templates/votita/base.html b/votai_general_theme/templates/votita/base.html index c46cfda5..3c712433 100644 --- a/votai_general_theme/templates/votita/base.html +++ b/votai_general_theme/templates/votita/base.html @@ -8,7 +8,7 @@ - {% trans "Vota Inteligente" %} {% block title %}- {{ config.WEBSITE_GENERAL_SETTINGS_HOME_TITLE }}{% endblock title %} + {% trans "Levanta la mano" %} {% block title %}- {{ config.WEBSITE_GENERAL_SETTINGS_HOME_TITLE }}{% endblock title %} @@ -26,6 +26,7 @@ + From 52b86d0d30e71b4c5514bedb68ae79e77f235420 Mon Sep 17 00:00:00 2001 From: damian-garrido Date: Thu, 14 Sep 2017 16:33:45 -0300 Subject: [PATCH 05/32] primer acercamiento --- .../templates/elections/area.html | 9 ++++++-- .../templates/elections/election_base.html | 21 +++++++------------ 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/votai_general_theme/templates/elections/area.html b/votai_general_theme/templates/elections/area.html index e33e1724..8731faa9 100644 --- a/votai_general_theme/templates/elections/area.html +++ b/votai_general_theme/templates/elections/area.html @@ -38,7 +38,7 @@ {% block keywords %},{{area.name}}{% endblock keywords %} {% block content %} - -