Skip to content
Merged
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 added content/images/python_en_espanol.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 27 additions & 12 deletions pelicanconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,20 @@
}

# Social widget
REDES = {
"discord": {"alt": "Discord", "icon": "fa-discord", "url": "https://discord.gg/dTHMfJvauS"},
"telegram": {"alt": "Telegram", "icon": "fa-telegram", "url": "https://t.me/pythonchile"},
"slack": {
"alt": "Slack",
"icon": "fa-slack",
"url": "https://join.slack.com/t/python-chile/shared_invite/zt-3hitnkfk-I_CM~2ANuwofgARLZjI42A",
PLATAFORMAS = {
"discord": {
"alt": "Discord",
"icon": "fa-discord",
"url": "https://discord.gg/dTHMfJvauS"
},
"telegram": {
"alt": "Telegram",
"icon": "fa-telegram",
"url": "https://t.me/pythonchile"
},
}

REDES = {
"facebook": {
"alt": "Facebook",
"icon": "fa-facebook-f",
Expand All @@ -63,17 +69,26 @@
"icon": "fa-twitter",
"url": "https://twitter.com/pythonchiledev",
},
"github": {"alt": "Github", "icon": "fa-github", "url": "https://github.com/python-chile"},
"youtube": {
"alt": "YouTube",
"icon": "fa-youtube",
"url": "https://www.youtube.com/c/PythonChile",
"instagram": {
"alt": "Instagram",
"icon": "fa-instagram",
"url": "https://instagram.com/pythonchiledev",
},
"github": {
"alt": "Github",
"icon": "fa-github",
"url": "https://github.com/python-chile"
},
"linkedin": {
"alt": "LinkedIn",
"icon": "fa-linkedin",
"url": "https://www.linkedin.com/groups/4929519/",
},
"youtube": {
"alt": "YouTube",
"icon": "fa-youtube",
"url": "https://www.youtube.com/c/PythonChile",
},
}

DEFAULT_PAGINATION = 10
Expand Down
47 changes: 46 additions & 1 deletion pycltheme/static/css/cl.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
background-repeat: no-repeat;
}

.cabecera p, h1, h2, h3 {
.cabecera p, h1, h2, h3, h4, h5 {
text-shadow: 1px 2px 4px #000000;
}

Expand Down Expand Up @@ -93,11 +93,23 @@
}

.redes-sociales {
background: rgba(225,45,27,0.9);
padding-top: 10px;
padding-bottom: 10px;
}

.plataformas {
background: #343a40;
padding-top: 10px;
padding-bottom: 10px;
}

.python-en-espanol {
background: #132e45;
padding-top: 10px;
padding-bottom: 10px;
}

.fab:hover {
color: rgba(255, 67, 46, 1);
}
Expand Down Expand Up @@ -204,6 +216,15 @@ blockquote {
margin-bottom: auto;
}

.valign {
display: flex;
align-items: center;
}

.valign span {
margin-left: 10px;
}

.red {
color: #e12d1b;
font-style: normal;
Expand All @@ -215,3 +236,27 @@ blockquote {
}


/* Botón Discord Python en Español */
.discord {
}

.discord button {
width: 100%;
justify-content: center;
}

.discord .btn-primary,
.discord .btn-primary:active,
.discord .btn-primary:visited,
.discord .btn-primary:focus {
background-color: #132e45;
border-color: white;
}
.discord .btn-primary:hover {
background-color: #859bee;
border-color: #859bee;
}

.discord a {
text-decoration: none;
}
52 changes: 47 additions & 5 deletions pycltheme/templates/base-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,35 @@
<div class="col-md-9 col-sm-8 col-xs-12 text-left vauto">
<h1 class="font-weight-light">{{ SITENAME }}</h1>
<p class="lead">{{ SITESUBTITLE }}</p>
<!-- Redes -->
<div class="pt-3 pb-4">
<div class="container">
<div class="row justify-content-md-start">
{% for name, d in REDES.items() %}
<div class="col-auto"> <!---lg-8 col-md-10 mx-auto">-->
<a href="{{ d["url"] }}">
<i class="fab {{ d["icon"] }} fa-2x fa-inverse"></i>
</a>
</div>
{% endfor %}
</div>
</div>
</div>

</div>
</div>
</div>
</div>
</header>

<!-- Redes Sociales -->
<!--<div class="mt-5 pt-5 pb-5 redes-sociales">-->
<div class="pt-3 pb-4 redes-sociales">
<!-- Plataformas -->
<div class="pt-3 pb-4 plataformas">
<div class="container">
<h3 class="text-center" style="color: white;">¡Únete a la comunidad!</h3>
<div class="row justify-content-md-center">
{% for name, d in REDES.items() %}
<div class="col-auto">
<h4 class="text-center text-white pt-2">¡Ponte en contacto con la comunidad en Discord y Telegram!</h4>
</div>
{% for name, d in PLATAFORMAS.items() %}
<div class="col-auto"> <!---lg-8 col-md-10 mx-auto">-->
<a href="{{ d["url"] }}">
<i class="fab {{ d["icon"] }} fa-3x fa-inverse"></i>
Expand All @@ -78,6 +94,32 @@ <h3 class="text-center" style="color: white;">¡Únete a la comunidad!</h3>
</div>
</div>

<!-- Python en Español -->
<div class="pt-2 pb-2 python-en-espanol">
<div class="container">
<div class="row justify-content-md-center">
<div class="col-2 text-center">
<img style="width: 40px;" src="images/python_en_espanol.png" />
</div>
<div class="col-7 text-start vauto" style="color: #fdc130;">
<h5 class="vauto" style="font-size: 95%;">
No olvides unirte también a la comunidad hispanohablante más grande del mundo.
</h5>
</div>
<div class="col-3 text-begin vauto pr-5">
<div class="discord">
<a href="https://discord.gg/35E3Ph7Fez">
<button class="btn btn-primary valign size-h4">
<i class="fab fa-discord fa-2x" aria-hidden="true"></i>
<span>Python en Español</span>
</button>
</a>
</div>
</div>
</div>
</div>
</div>

<!-- Entradas Blog -->
{% block content %}
{% endblock %}
Expand Down
8 changes: 8 additions & 0 deletions pycltheme/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@
<div class="redes-sociales">
<div class="container">
<div class="row justify-content-md-center">
{% for name, d in PLATAFORMAS.items() %}
<div class="col-auto"> <!---lg-8 col-md-10 mx-auto">-->
<a href="{{ d["url"] }}">
<i class="fab {{ d["icon"] }} fa-2x fa-inverse"></i>
</a>
</div>
{% endfor %}

{% for name, d in REDES.items() %}
<div class="col-auto"> <!---lg-8 col-md-10 mx-auto">-->
<a href="{{ d["url"] }}">
Expand Down
3 changes: 3 additions & 0 deletions pycltheme/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ <h4 class="mt-lg-0 mt-sm-4">Contacto</h4>
<p><a href="mailto:contacto@pythonchile.cl"><i class="fa fa-envelope-o mr-3"></i>contacto@pythonchile.cl</a></p>
<p class="pr-5 text-white-50">o ingresa en nuestras redes:</p>
<p>
{% for name, d in PLATAFORMAS.items() %}
<a href="{{ d["url"] }}"><i class="fab {{ d["icon"] }} fa-lg mr-1"></i></a>
{% endfor %}
{% for name, d in REDES.items() %}
<a href="{{ d["url"] }}"><i class="fab {{ d["icon"] }} fa-lg mr-1"></i></a>
{% endfor %}
Expand Down