Skip to content

Commit

Permalink
Adição de shortcodes e correção no contato (#78)
Browse files Browse the repository at this point in the history
* Adição de shortcodes e correção no contato

* Update contato.es.md
  • Loading branch information
m00sp authored Oct 8, 2024
1 parent 9879bcd commit 3a80bfa
Show file tree
Hide file tree
Showing 12 changed files with 163 additions and 65 deletions.
2 changes: 1 addition & 1 deletion content/badges/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ assets = "badges/"
+++


Você pode ir ao meu [Perfil da Credly](https://www.credly.com/users/luis-ricardo-martinez-diaz) para ver meu portfolio de badges completo ou para ver uma descrição detalhada das abilidades ganhadas.
Você pode ir ao meu [Perfil da Credly](https://www.credly.com/users/luis-ricardo-martinez-diaz) para ver meu portfolio de badges completo ou para ver uma descrição detalhada das habilidades ganhadas.

<div style="text-align: center;">

Expand Down
13 changes: 2 additions & 11 deletions content/pages/contato.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ draft = false


<br>
<p align="center">In person, I offer technical assistance near <a class="link" href="#ubicación" data-scroll> My Location.</a></p>
<p align="center">In person I offer technical assistance in Sao Paulo (Capital)</p>
<p align="center">For remote work, service quotes or contracts, please use one of the following contact methods:</p>
<p align="center"><a class="link" href="#mail" data-scroll>E-Mail.</a></p>
<p align="center"><a class="link" href="#whatsapp" data-scroll>WhatsApp.</a></p>
Expand Down Expand Up @@ -42,16 +42,7 @@ draft = false
</a>
<br>
<br>
<h1 align="center"><a name="ubicación">My Location</a></h1>
<br>
<a aria-label="" href="https://maps.app.goo.gl/2jhxeaV6scHKJsFY9">
{{ img(src="/icons/vector-location-icon.png" class="ci" alt="Location" w="50" h="50") }}
</a>
<p align="center">Vila Matilde</p>
<p align="center">São Paulo</p>
<p align="center">Brasil</p>
<br>
<br>

{{ img(src="/icons/ferris-happy.svg" class="ci" alt="Ferris is Happy" w="75" h="75") }}

<p align="center">Thank you for your visit, have a nice day.</p>
Expand Down
12 changes: 1 addition & 11 deletions content/pages/contato.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ template = "pages.html"
draft = false
+++
<br>
<p align="center">Personalmente, ofrezco asistencia técnica cerca de <a class="link" href="#ubicación" data-scroll> Mi Ubicación</a>.</p>
<p align="center">Personalmente ofrezco asistencia técnica en San Pablo (Capital).</p>
<p style="text-align: center;">Para trabajo remoto, presupuesto de servicios o contrataciones utilice uno de los siguientes medios de contacto:</p>
<p align="center"><a class="link" href="#mail" data-scroll>E-Mail.</a></p>
<p align="center"><a class="link" href="#whatsapp" data-scroll>WhatsApp.</a></p>
Expand Down Expand Up @@ -42,16 +42,6 @@ draft = false
</a>
<br>
<br>
<h1 style="text-align: center;"><a name="ubicación">Mi Ubicación</a></h1>
<br>
<a aria-label="" href="https://maps.app.goo.gl/2jhxeaV6scHKJsFY9">
{{ img(src="/icons/m00location-icon-50x50-fs8.png" class="ci" alt="Location" w="50" h="50") }}
</a>
<p align="center">Vila Matilde</p>
<p align="center">San Pablo</p>
<p align="center">Brasil</p>
<br>
<br>

{{ img(src="/icons/ferris-happy.svg" class="ci" alt="Ferris is Happy" w="75" h="75") }}

Expand Down
13 changes: 2 additions & 11 deletions content/pages/contato.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ draft = false


<br>
<p style="text-align: center;">Pessoalmente, ofereço assistência técnica perto da <a class="link" href="#ubicación" data-scroll> Minha Localização</a>.</p>
<p style="text-align: center;">Pessoalmente ofereço assistência técnica em São Paulo (Capital).</p>
<p style="text-align: center;">Para trabalho remoto, orçamento de serviços ou contratações, utilize um dos seguintes meios de contato:</p>
<p style="text-align: center;"><a class="link" href="#mail" data-scroll>E-Mail.</a></p>
<p style="text-align: center;"><a class="link" href="#whatsapp" data-scroll>WhatsApp.</a></p>
Expand Down Expand Up @@ -44,16 +44,7 @@ draft = false
</a>
<br>
<br>
<h1 style="text-align: center;"><a name="ubicación">Minha Localização</a></h1>
<br>
<a aria-label="" href="https://maps.app.goo.gl/2jhxeaV6scHKJsFY9">
{{ img(src="/icons/vector-location-icon.png" class="ci" alt="Location" w="50" h="50") }}
</a>
<p style="text-align: center;">Vila Matilde</p>
<p style="text-align: center;">São Paulo</p>
<p style="text-align: center;">Brasil</p>
<br>
<br>

{{ img(src="/icons/ferris-happy.svg" class="ci" alt="Ferris is Happy" w="75" h="75") }}

<p style="text-align: center;">Obrigado, pela visita, até já.</p>
Expand Down
11 changes: 3 additions & 8 deletions content/pages/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ draft = false
+++

{{ m00inicio() }}
{{ m00projetos(link="https://github.com/m00sp/m00wm") }}
{{ m00projetos(link="https://github.com/m00sp/m00alpineupdate") }}


This site provides a demo for the [abridge theme](https://github.com/Jieiku/abridge) for [Zola](https://www.getzola.org/) the static site generator.

Abridge was created by [Jake G (jieiku)](https://github.com/Jieiku) to be fast and lightweight, using semantic html, a class-light [abridge.css](https://github.com/Jieiku/abridge.css), and No Mandatory JS.

Nearly half of the existing Zola MIT themes were inspiration for features and design of this theme.

Abridge is licensed under the [MIT license](https://opensource.org/licenses/MIT).
Aqui pode continuar meu md.
73 changes: 73 additions & 0 deletions sass/_extra.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,77 @@
*****************************************************************************/
@import "lib/devicon";
@import "lib/fontawesome";
$main: #1a222c;
$purple: #54516A;
$cut: 550px;
#about {
width: 90%;
margin: 0 auto;
max-width: 960px;
@media only screen and (min-width: $cut) {
width: 80%;
}
}

.tech {
margin: 10px;
}

.user {
text-align: center;
font-size: 60px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
p {
font-size: 16px;
}
@media only screen and (min-width: $cut) {
flex-wrap: nowrap;
font-size: 75px;
}
}

.user-details {
text-align: center;
margin: 5px auto;
}
#projects {
display: flex;
flex-direction: column;
justify-content: space-between;
width: 90%;
max-width: 960px;
margin: 0 auto;
@media only screen and (min-width: $cut) {
width: 80%;
}
}

.user-projects {
margin: 20px auto;
img {
max-width: 100%;
height: auto;
border-radius: 5px;
}
h5 {
margin: 0;
}
li {
color: $main;
font-size: 1.1rem;
}
p {
margin-right: 5px;
}
}

.contents {
@media only screen and (min-width: $cut) {
margin-left: 0;
width: 48%;
}
}

56 changes: 35 additions & 21 deletions templates/m00content.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,53 @@
{% macro about() %}
<div class="user-details">
<h1> My Expertise </h1>
<p> {{ config.extra.user_description }} </p>
{% macro hardware() %}
<div class="user-details">
<h1> Hardware </h1>
<p>Adicionar descrição</p>
</div>
{% endmacro hardware %}

{% macro software() %}
<div class="user-details">
<h1> Software </h1>
<p>Adicionar descrição</p>
</div>
{% endmacro software%}

{% macro about() %}
<div class="user">
<div class="tech">
<h2>Design</h2>
<h2>Desenho</h2>
<i class="devicon-html5-plain-wordmark"></i>
<i class="devicon-bootstrap-plain-wordmark colored"></i>
<i class="devicon-sass-original colored"></i>
<p>Mumblecore hexagon kombucha, pitchfork four loko raclette intelligentsia master cleanse.
Vinyl XOXO lumbersexual</p>
<i class="devicon-css3-plain-wordmark"></i>
<i class="devicon-sass-original"></i>
</div>
<div class="tech">
<h2>Code</h2>
<i class="devicon-javascript-plain colored"></i>
<i class="devicon-typescript-original colored"></i>
<i class="devicon-nodejs-plain-wordmark"></i>
<p>Mumblecore hexagon kombucha, pitchfork four loko raclette intelligentsia master cleanse.
Vinyl XOXO lumbersexual</p>
<h2>Código</h2>
<i class="devicon-javascript-plain"></i>
<i class="devicon-typescript-original"></i>
<br>
<i class="devicon-javascript-plain"></i>
<i class="devicon-typescript-original"></i>
</div>
<div class="tech">
<h2>Tools</h2>
<h2>Ferramentas</h2>
<i class="devicon-git-plain"></i>
<i class="devicon-gulp-plain colored"></i>
<i class="devicon-atom-original-wordmark"></i>
<p>Mumblecore hexagon kombucha, pitchfork four loko raclette intelligentsia master cleanse.
Vinyl XOXO lumbersexual</p>
<i class="devicon-github-plain"></i>
<i class="devicon-linux-plain"></i>
</div>
</div>
{% endmacro about %}

{% macro btnup() %}
<div class="user-details">
<a class="top" href="#" data-scroll><i class="icon fa fa-chevron-up" aria-hidden="true"></i></a>
</div>
{% endmacro btnup %}

{% macro btndown() %}
<div class="user-details">
<a class="top" href="#projects" data-scroll><i class="icon fa fa-chevron-down" aria-hidden="true"></i></a>
</div>
{% endmacro about %}
{% endmacro btndown %}

{% macro projects() %}
<div class="user-details">
Expand Down
3 changes: 3 additions & 0 deletions templates/shortcodes/dolado.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<aside>
{{ body }}
</aside>
4 changes: 2 additions & 2 deletions templates/shortcodes/m00inicio.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% import "m00content.html" as m00content %}

{%- block content %}
{{ m00content::hardware() }}
{{ m00content::software() }}
{{ m00content::about() }}
{{ m00content::projects() }}
{{ m00content::faqs() }}
{%- endblock content %}
28 changes: 28 additions & 0 deletions templates/shortcodes/m00projetos.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{%- if config.base_url != "http://127.0.0.1:1111" %}
{%- if link is starting_with("https://github.com") %}
{%- set gh_token = get_env(name="GITHUB_TOKEN", default="notoken") %}
{%- set gh_repo_link = link | replace(from="https://github.com", to="https://api.github.com/repos") %}
{%- if gh_token is matching("^notoken") %}{% set gh_repo_data = load_data(url=gh_repo_link, format="json") %}{% else %}{% set gh_repo_data = load_data(url=gh_repo_link, format="json", headers=["accept=application/vnd.github.v4.idl", "authorization=Bearer " ~ gh_token]) %}{% endif %}
{%- endif %}
{%- else %}
{%- set gh_repo_data = load_data(literal='{"archived": false, "language": "APL", "html_url": "none", "name": "foobar", "description": "Test description test description test description", "license": {"spdx_id": "FOO"}, "topics": ["foo", "bar", "test"]}', format="json") %}
{%- endif %}
{%- set gh_archive = gh_repo_data["archived"] | default(value="") %}
{%- set gh_language = gh_repo_data["language"] | default(value="") %}
{# {%- set gh_license = gh_repo_data["license"]["spdx_id"] | replace(from="NOASSERTION", to="") | default(value="") %}i #}
{%- set gh_description = gh_repo_data["description"] | default(value="") | regex_replace(pattern='\p{Emoji}', rep='') %}
<div class="projects frame-dim">
<h2><a {% if gh_archive == true %}id="project-archived" {% endif %}href="{{ gh_repo_data['html_url'] | safe }}" target="_blank">{{ gh_repo_data["name"] | safe }}</a></h2>
<ul class="project-list">
<li><b><span class="project-lang">{{ gh_language | safe }}</span></b> <span class="project-lang {{ gh_language | replace(from="#", to="-Sharp") | replace(from="++", to="pp") | replace(from="-", to="") | replace(from=" ", to="") | safe }}"><b>&#42;</b></span></li>
{# <li><span class="project-license">{{ gh_license | safe }}</span></li> #}
<li><span class="project-description">{{ gh_description | safe }}</span></li>
{# <li><ul class="tags project-tags"
{%- for topic in gh_repo_data["topics"] %}
><li id="info-tag">{{ topic | safe }}</li
{%- if not loop.last %}
{%- endif %}
{%- endfor %}
></ul></li> #}
</ul>
</div>
5 changes: 5 additions & 0 deletions templates/shortcodes/quote.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<blockquote>
{{ body }} <br>
-- {{ author}}
</blockquote>

8 changes: 8 additions & 0 deletions templates/shortcodes/youtube.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div {% if class %}class="{{class}}"{% endif %}>
<iframe
src="https://www.youtube.com/embed/{{id}}{% if autoplay %}?autoplay=1{% endif %}"
webkitallowfullscreen
mozallowfullscreen
allowfullscreen>
</iframe>
</div>

0 comments on commit 3a80bfa

Please sign in to comment.