Compare commits

..

2 commits

Author SHA1 Message Date
TheThomaas ad174007b2 Updated socials system to be more dynamic 2024-01-24 23:48:43 +01:00
TheThomaas 8c7ca4d909 Added mail icon 2024-01-24 23:25:05 +01:00
10 changed files with 37 additions and 34 deletions

View file

@ -4,9 +4,9 @@ module.exports = {
mail: "",
about: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio doloribus, iure eum nostrum error tempora facilis ea."
},
socials: {
github: "https://github.com/TheThomaas"
},
socials: [
{ title: 'My personal Github', icon: 'icon-github', link: 'https://github.com/TheThomaas'},
],
buildTime: new Date(),
isProduction: process.env.NODE_ENV === 'production',
title: "TheThomaas",

View file

@ -10,13 +10,11 @@
<h2>{{ subpage.data.title }}</h2>
{% endif %}
{{ subpage.templateContent }}
{% if subpage.data.socials %}
{% if site.socials %}
<ul class="list-inline">
{% if subpage.data.socials.github %}
<li>
<a href="{{subpage.data.socials.github}}" class="icon-github" title="Github"></a>
</li>
{% endif %}
{% for social in site.socials %}
<li><a href="{{ social.link }}" class="{{ social.icon }}" title="{{ social.title }}" target="_blank"></a></li>
{% endfor %}
</ul>
{% endif %}
</div>

View file

@ -5,12 +5,9 @@
<div class="top">
<span></span>
<div class="links">
{% if project.data.website.link %}
<a href="{{ project.data.website.link }}" target="_blank" title="{{ project.data.website.title }}" class="icon-internet"></a>
{% endif %}
{% if project.data.github.link %}
<a href="{{ project.data.github.link }}" target="_blank" title="{{ project.data.github.title }}" class="icon-github"></a>
{% endif %}
{%- for link in project.data.links -%}
<a href="{{ link.link }}" target="_blank" title="{{ link.title }}" class="{{ link.icon }}"></a>
{%- endfor -%}
</div>
</div>
<div class="content">

View file

@ -6,8 +6,6 @@ sectionType: 'about'
img:
src: https://placehold.co/400
alt: This is a placeholder
socials:
github: https://github.com
---
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Velit culpa dignissimos laborum, dolor voluptatem perspiciatis earum placeat modi minus officia perferendis rerum alias maiores deleniti et quia provident quo doloribus.</p>

View file

@ -1,7 +1,8 @@
---
title: Cancre Simulator
description: Un jeu fait pour les Portes Ouvertes 2020
github:
title: Voir sur Github
links:
- title: Voir sur Github
link: https://github.com
icon: icon-github
---

View file

@ -1,7 +1,8 @@
---
title: Qui est-ce ?
description: Un "Qui est-ce ?" fait en Python et avec des LEGO Mindstorms
github:
title: Voir sur Github
links:
- title: Voir sur Github
link: https://github.com
icon: icon-github
---

View file

@ -1,10 +1,11 @@
---
title: LDAP
description: Ajouter, voir et se connecter à des utilisateurs LDAP depuis un site
github:
title: Voir sur Github
link: https://github.com
website:
title: Voir sur Github
links:
- title: Voir le site
link: https://google.com
icon: icon-internet
- title: Voir sur Github
link: https://github.com
icon: icon-github
---

View file

@ -1,10 +1,11 @@
---
title: Sigfox Temperature
description: Des capteurs de température affichés sur un tableau de bord
github:
title: Voir sur Github
link: https://github.com
website:
title: Voir le site
links:
- title: Voir le site
link: https://google.com
icon: icon-internet
- title: Voir sur Github
link: https://github.com
icon: icon-github
---

View file

@ -2,7 +2,8 @@
title: Snake
description: Un snake réalisé en Java
background: rgb(255, 143, 143)
github:
title: Voir le site
link: https://google.com
links:
- title: Voir sur Github
link: https://github.com
icon: icon-github
---

View file

@ -56,3 +56,8 @@
-webkit-mask-image: url("data:image/svg+xml,%3Csvg height='1em' width='1em' aria-hidden='true' focusable='false' viewBox='0 0 10 10' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.18 6C7.22 5.67 7.25 5.34 7.25 5C7.25 4.66 7.22 4.33 7.18 4H8.87C8.95 4.32 9 4.655 9 5C9 5.345 8.95 5.68 8.87 6M6.295 8.78C6.595 8.225 6.825 7.625 6.985 7H8.46C7.98 7.825 7.215 8.465 6.295 8.78ZM6.17 6H3.83C3.78 5.67 3.75 5.34 3.75 5C3.75 4.66 3.78 4.325 3.83 4H6.17C6.215 4.325 6.25 4.66 6.25 5C6.25 5.34 6.215 5.67 6.17 6ZM5 8.98C4.585 8.38 4.25 7.715 4.045 7H5.955C5.75 7.715 5.415 8.38 5 8.98ZM3 3H1.54C2.015 2.17 2.785 1.53 3.7 1.22C3.4 1.775 3.175 2.375 3 3ZM1.54 7H3C3.175 7.625 3.4 8.225 3.7 8.78C2.785 8.465 2.015 7.825 1.54 7ZM1.13 6C1.05 5.68 1 5.345 1 5C1 4.655 1.05 4.32 1.13 4H2.82C2.78 4.33 2.75 4.66 2.75 5C2.75 5.34 2.78 5.67 2.82 6M5 1.015C5.415 1.615 5.75 2.285 5.955 3H4.045C4.25 2.285 4.585 1.615 5 1.015ZM8.46 3H6.985C6.825 2.375 6.595 1.775 6.295 1.22C7.215 1.535 7.98 2.17 8.46 3ZM5 0C2.235 0 0 2.25 0 5C0 6.32608 0.526784 7.59785 1.46447 8.53553C1.92876 8.99983 2.47995 9.36812 3.08658 9.6194C3.69321 9.87067 4.34339 10 5 10C6.32608 10 7.59785 9.47322 8.53553 8.53553C9.47322 7.59785 10 6.32608 10 5C10 4.34339 9.87067 3.69321 9.6194 3.08658C9.36812 2.47995 8.99983 1.92876 8.53553 1.46447C8.07124 1.00017 7.52005 0.631876 6.91342 0.380602C6.30679 0.129329 5.65661 0 5 0Z'%3E%3C/path%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg height='1em' width='1em' aria-hidden='true' focusable='false' viewBox='0 0 10 10' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.18 6C7.22 5.67 7.25 5.34 7.25 5C7.25 4.66 7.22 4.33 7.18 4H8.87C8.95 4.32 9 4.655 9 5C9 5.345 8.95 5.68 8.87 6M6.295 8.78C6.595 8.225 6.825 7.625 6.985 7H8.46C7.98 7.825 7.215 8.465 6.295 8.78ZM6.17 6H3.83C3.78 5.67 3.75 5.34 3.75 5C3.75 4.66 3.78 4.325 3.83 4H6.17C6.215 4.325 6.25 4.66 6.25 5C6.25 5.34 6.215 5.67 6.17 6ZM5 8.98C4.585 8.38 4.25 7.715 4.045 7H5.955C5.75 7.715 5.415 8.38 5 8.98ZM3 3H1.54C2.015 2.17 2.785 1.53 3.7 1.22C3.4 1.775 3.175 2.375 3 3ZM1.54 7H3C3.175 7.625 3.4 8.225 3.7 8.78C2.785 8.465 2.015 7.825 1.54 7ZM1.13 6C1.05 5.68 1 5.345 1 5C1 4.655 1.05 4.32 1.13 4H2.82C2.78 4.33 2.75 4.66 2.75 5C2.75 5.34 2.78 5.67 2.82 6M5 1.015C5.415 1.615 5.75 2.285 5.955 3H4.045C4.25 2.285 4.585 1.615 5 1.015ZM8.46 3H6.985C6.825 2.375 6.595 1.775 6.295 1.22C7.215 1.535 7.98 2.17 8.46 3ZM5 0C2.235 0 0 2.25 0 5C0 6.32608 0.526784 7.59785 1.46447 8.53553C1.92876 8.99983 2.47995 9.36812 3.08658 9.6194C3.69321 9.87067 4.34339 10 5 10C6.32608 10 7.59785 9.47322 8.53553 8.53553C9.47322 7.59785 10 6.32608 10 5C10 4.34339 9.87067 3.69321 9.6194 3.08658C9.36812 2.47995 8.99983 1.92876 8.53553 1.46447C8.07124 1.00017 7.52005 0.631876 6.91342 0.380602C6.30679 0.129329 5.65661 0 5 0Z'%3E%3C/path%3E%3C/svg%3E");
}
.icon-mail:before, .icon-mail:after {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM12.0606 11.6829L5.64722 6.2377L4.35278 7.7623L12.0731 14.3171L19.6544 7.75616L18.3456 6.24384L12.0606 11.6829Z'%3E%3C/path%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM12.0606 11.6829L5.64722 6.2377L4.35278 7.7623L12.0731 14.3171L19.6544 7.75616L18.3456 6.24384L12.0606 11.6829Z'%3E%3C/path%3E%3C/svg%3E");
}