Compare commits

...

11 commits

18 changed files with 101 additions and 114 deletions

View file

@ -1,8 +1,8 @@
<section id="{{ subpage.data.title | slug }}" class="{{ subpage.data.classes }} wrapper-full hero-section">
<section id="{{ subpage.data.title | slug }}" class="wrapper-full hero">
<div>
<h1 class="hero-title">{% if subpage.data.displayedTitle %}{{ subpage.data.displayedTitle }}{% else %}{{ subpage.data.title }}{% endif %}</h1>
<p>{{subpage.data.description}}</p>
{{ subpage.templateContent }}
{% render 'partials/components/socials.liquid', socials: author.socials, mail: author.mail, showLabel: true %}
{% render 'partials/components/socials', socials: author.socials, mail: author.mail, showLabel: true %}
</div>
</section>

View file

@ -4,7 +4,7 @@
{% include "partials/metas.html" %}
</head>
<body>
{% include "partials/header.html" %}
{% include "partials/header.liquid" %}
<main tabindex="-1" id="main-content">
{% block content %}

View file

@ -1,9 +1,6 @@
<section id="{{ subpage.data.title | slug }}" class="{{ subpage.data.classes }} wrapper-full">
{% if subpage.data.img %}
<img src="{{subpage.data.img.src}}" alt="{{subpage.data.img.alt}}">
{% endif %}
{% if subpage.data.showTitle != false %}
<h2>{{ subpage.data.title }}</h2>
<h2>{% if subpage.data.displayedTitle %}{{ subpage.data.displayedTitle }}{% else %}{{ subpage.data.title }}{% endif %}</h2>
{% endif %}
{{ subpage.templateContent }}
</section>

View file

@ -0,0 +1,16 @@
<li>
<article class="card" {% if background %}style="--background: {{ background }}"{% endif %}>
<div class="top">
<span></span>
<div class="links">
{%- for link in links -%}
<a href="{{ link.link }}" target="_blank" title="{{ link.title }}" class="{{ link.icon }}"></a>
{%- endfor -%}
</div>
</div>
<div class="content">
<h3>{{ title }}</h3>
<p>{{ description }}</p>
</div>
</article>
</li>

View file

@ -0,0 +1,12 @@
{% if projects %}
<ul class="project-grid">
{%- for project in projects -%}
{% assign data = project.data %}
{% render "partials/components/card",
background: data.background,
links: data.links,
title: data.title,
description: data.description %}
{%- endfor -%}
</ul>
{% endif %}

View file

@ -1,12 +1,14 @@
<ol class="timeline">
{%- for elements in timeline -%}
{% assign data = elements.data %}
{% render 'partials/components/timeline-item',
start: data.startDate,
end: data.endDate,
link: data.link,
title: data.title,
location: data.location,
description: data.description %}
{%- endfor -%}
</ol>
{% if timeline %}
<ol class="timeline">
{%- for elements in timeline -%}
{% assign data = elements.data %}
{% render 'partials/components/timeline-item',
start: data.startDate,
end: data.endDate,
link: data.link,
title: data.title,
location: data.location,
description: data.description %}
{%- endfor -%}
</ol>
{% endif %}

View file

@ -7,6 +7,6 @@
{% endif %}
</ul>
{% render 'partials/components/socials.liquid', socials: author.socials, mail: author.mail, showLabel: false %}
{% render 'partials/components/socials', socials: author.socials, mail: author.mail, showLabel: false %}
</div>
</footer>

View file

@ -1,17 +0,0 @@
{% include "partials/skip-link.html" %}
<header id="site-header">
<span></span>
<div>
<nav>
<ul>
{% for item in collections.subpages %}
{% if item.data.excludeFromNav != true %}
<li>
<a href="#{{ item.data.title | slug }}">{{ item.data.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</nav>
</div>
</header>

View file

@ -0,0 +1,7 @@
{% include "partials/skip-link.html" %}
<header id="site-header">
<span></span>
<div>
{% include "partials/navigation" %}
</div>
</header>

View file

@ -0,0 +1,11 @@
<nav>
<ul>
{% for item in collections.subpages %}
{% if item.data.excludeFromNav != true %}
<li>
<a href="#{{ item.data.title | slug }}">{{ item.data.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</nav>

View file

@ -1,20 +0,0 @@
<ul>
{%- for project in projects -%}
<li>
<article {% if project.data.background %}style="--background: {{ project.data.background }}"{% endif %}>
<div class="top">
<span></span>
<div class="links">
{%- 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">
<h3>{{ project.data.title }}</h3>
<p>{{ project.data.description }}</p>
</div>
</article>
</li>
{%- endfor -%}
</ul>

View file

@ -7,9 +7,9 @@ permalink: /
{% for subpage in collections.subpages %}
{% if subpage.data.excludeFromList != true %}
{% if subpage.data.template == 'hero' %}
{% include 'hero.liquid' %}
{% include 'hero' %}
{% else %}
{% include 'page.liquid' %}
{% include 'page' %}
{% endif %}
{% endif %}
{% endfor %}

View file

@ -21,12 +21,9 @@ classes: 'competences-section langues-section'
<div class="col">
<h2>Langues</h2>
<ul style="list-style-type: initial">
<li>HTML</li>
<li>CSS</li>
<li>Bootstrap</li>
<li>Javascript</li>
<li>jQuery</li>
<li>Eleventy</li>
<li>Français (langue maternelle)</li>
<li>Anglais</li>
<li>Allemand (Connaissance scolaires)</li>
</ul>
</div>
</div>

View file

@ -2,10 +2,9 @@
title: Download
showTitle: false
order: 4
classes: 'download-section'
---
<div class="flex-container justify-center">
<div class="flex-container justify-center download">
<p>You want to print this document ?</p>
<i>--></i>
<button type="button" onclick="window.print()" class="btn btn-download icon--right icon-download">Download as PDF</button>

View file

@ -1,7 +1,6 @@
---
title: Experiences
order: 3
classes: 'experiences-section'
---
{% assign experiences = collections.experiences %}

View file

@ -1,8 +1,7 @@
---
title: Projects
order: 2
classes: 'projects-section'
---
{% assign projects = collections.projects %}
{% include 'partials/project.liquid' %}
{% include 'partials/components/project-grid' %}

View file

@ -1,7 +1,7 @@
:root {
--bg-gradient: linear-gradient(180deg, rgb(var(--brand-primary-medium)) 0%, rgb(var(--brand-primary-medium)) 5%, rgb(var(--brand-primary-low)) 30%, rgb(var(--brand-primary-lower)) 50%, rgb(var(--brand-secondary-lower)) 51%, rgb(var(--brand-secondary-low)) 65%, rgb(var(--brand-secondary-medium)) 98%, rgb(var(--brand-secondary-medium)) 100%);
--background: rgb(var(--brand-primary-low));
--background: rgb(var(--brand-primary-medium));
--text: rgb(var(--neutral-highest));
--text-2: rgba(var(--neutral-highest), .8);

View file

@ -85,7 +85,7 @@ i {
}
}
.hero-section {
.hero {
height: 90vh;
height: 90svh;
@ -116,65 +116,60 @@ i {
}
}
.projects-section {
ul {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
gap: 1rem;
}
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
gap: 1rem;
li {
border-radius: var(--border-radius);
overflow: hidden;
}
article {
--background: url('https://placehold.co/200x150'); // Default background
position: relative;
height: 100%;
padding: .4rem;
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 2.5rem;
z-index: 1;
background: var(--background);
background-repeat: no-repeat;
background-size: cover;
}
}
.card {
--background: url('https://placehold.co/200x150'); // Default background
position: relative;
height: 100%;
padding: .4rem;
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 2.5rem;
z-index: 1;
background: var(--background);
background-repeat: no-repeat;
background-size: cover;
a {
&:hover {
color: #3a3a3a;
transition: color .2s ease-in-out;
}
&:before,
&:after {
--icon-size: 1.2rem;
}
}
.top {
width: 100%;
display: flex;
justify-content: space-between;
}
.links {
display: flex;
gap: .35rem;
align-self: flex-end;
}
.content {
padding: 1rem .4rem 0 .4rem;
}
}
.about-section,
.competences-section,
.projects-section,
.experiences-section,
.download-section {
section {
padding-block: 2rem;
margin-block: 3.5rem;
}
@ -293,19 +288,9 @@ i {
}
}
.experiences-section {
p {
margin: 0;
}
}
.download-section {
text-align: center;
> div {
gap: .8rem;
}
.download {
gap: .8rem;
p {
font-size: 1.4rem;
}