🎨 Code quality improvement

This commit is contained in:
Florian Sylvain
2022-02-08 01:35:35 +01:00
parent 7b023cb4a6
commit 83e633839b
6 changed files with 22 additions and 15 deletions
View File
@@ -0,0 +1 @@
{"rules":{"block-no-empty":true,"comment-no-empty":true,"string-no-newline":true,"function-linear-gradient-no-nonstandard-direction":true,"media-feature-name-no-unknown":true,"color-no-invalid-hex":true,"font-family-no-duplicate-names":true,"no-duplicate-at-import-rules":true,"no-empty-source":true,"declaration-block-no-duplicate-properties":[true,{"ignore":["consecutive-duplicates-with-different-values"]}],"selector-type-no-unknown":[true,{"ignoreTypes":["/^(mat|md|fa)-/"],"ignore":["custom-elements"]}],"at-rule-no-unknown":[true,{"ignoreAtRules":["value","at-root","content","debug","each","else","error","for","function","if","include","mixin","return","warn","while","extend","use","/^@.*/"]}],"no-duplicate-selectors":true,"font-family-no-missing-generic-family-keyword":true,"no-extra-semicolons":true,"no-invalid-double-slash-comments":true,"selector-pseudo-element-no-unknown":[true,{"ignorePseudoElements":["ng-deep","v-deep"]}],"selector-pseudo-class-no-unknown":[true,{"ignorePseudoClasses":["local","global","export","import"]}],"keyframe-declaration-no-important":true,"property-no-unknown":[true,{"ignoreProperties":["composes","/^mso-/"],"ignoreSelectors":["/^:export.*/","/^:import.*/"]}],"declaration-block-no-shorthand-property-overrides":true,"unit-no-unknown":[true,{"ignoreUnits":["x"]}],"function-calc-no-invalid":true}}
+6
View File
@@ -0,0 +1,6 @@
projectKey=portfolio
serverUrl=http://localhost:9000
serverVersion=9.3.0.51899
dashboardUrl=http://localhost:9000/dashboard?id=portfolio
ceTaskId=AX7VZn1SGctBSVitJkEm
ceTaskUrl=http://localhost:9000/api/ce/task?id=AX7VZn1SGctBSVitJkEm
+8 -8
View File
@@ -150,7 +150,7 @@
<p> <p>
My first project in Python (with Pygame). It's a simple pong, with a main menu, a pause menu and a game over. My first project in Python (with Pygame). It's a simple pong, with a main menu, a pause menu and a game over.
</p> </p>
<a target="_blank" href="https://github.com/Floriansylvain/Pong"> <a rel="noopener" target="_blank" href="https://github.com/Floriansylvain/Pong">
Go to GitHub Project Go to GitHub Project
</a> </a>
<a onclick="javascript:switchArticle(null)">Close</a> <a onclick="javascript:switchArticle(null)">Close</a>
@@ -162,10 +162,10 @@
<p> <p>
My very first project on Unity. It's a simple pong with some effects and a rather calm atmosphere. My very first project on Unity. It's a simple pong with some effects and a rather calm atmosphere.
</p> </p>
<a target="_blank" href="https://github.com/Floriansylvain/Pong3D"> <a rel="noopener" target="_blank" href="https://github.com/Floriansylvain/Pong3D">
Go to GitHub Project Go to GitHub Project
</a> </a>
<a target="_blank" href="https://floriansylvain.fr/Pong3D/index.html"> <a rel="noopener" target="_blank" href="https://floriansylvain.fr/Pong3D/index.html">
Play Play
</a> </a>
<a onclick="javascript:switchArticle(null)">Close</a> <a onclick="javascript:switchArticle(null)">Close</a>
@@ -177,7 +177,7 @@
<p> <p>
Risitas_Bot is a Discord bot that can connect your Twitch chat to a Discord channel in real time, make your friends laugh by playing the meme "Issou!" on command in a voice channel and even give you some statistics about your Osu! account and last ranked games. Risitas_Bot is a Discord bot that can connect your Twitch chat to a Discord channel in real time, make your friends laugh by playing the meme "Issou!" on command in a voice channel and even give you some statistics about your Osu! account and last ranked games.
</p> </p>
<a target="_blank" href="https://github.com/Floriansylvain/Risitas_Bot"> <a rel="noopener" target="_blank" href="https://github.com/Floriansylvain/Risitas_Bot">
Go to GitHub Project Go to GitHub Project
</a> </a>
<a onclick="javascript:switchArticle(null)">Close</a> <a onclick="javascript:switchArticle(null)">Close</a>
@@ -189,7 +189,7 @@
<p> <p>
Work of students of DUT info 1 (IUT of Marne-la-Vallée). The students had to create a sound production inspired by the short film "Calls" by Timothée Hochet. Work of students of DUT info 1 (IUT of Marne-la-Vallée). The students had to create a sound production inspired by the short film "Calls" by Timothée Hochet.
</p> </p>
<a target="_blank" href="https://www.youtube.com/watch?v=TGBN_lxMbSM"> <a rel="noopener" target="_blank" href="https://www.youtube.com/watch?v=TGBN_lxMbSM">
Watch on YouTube Watch on YouTube
</a> </a>
<a onclick="javascript:switchArticle(null)">Close</a> <a onclick="javascript:switchArticle(null)">Close</a>
@@ -201,7 +201,7 @@
<p> <p>
The goal was to retrieve the dataset provided by theses.fr, to normalize it, and to create a site allowing to consult these data, first in the form of a simple but visually pleasant list, then in a second time to summarize the research in the form of graphics (and a map). The goal was to retrieve the dataset provided by theses.fr, to normalize it, and to create a site allowing to consult these data, first in the form of a simple but visually pleasant list, then in a second time to summarize the research in the form of graphics (and a map).
</p> </p>
<a target="_blank" href="https://projet.floriansylvain.fr/ProjetProgWeb/"> <a rel="noopener" target="_blank" href="https://projet.floriansylvain.fr/ProjetProgWeb/">
Visit WebSite Visit WebSite
</a> </a>
<a onclick="javascript:switchArticle(null)">Close</a> <a onclick="javascript:switchArticle(null)">Close</a>
@@ -234,10 +234,10 @@
</a> </a>
<footer> <footer>
<a target="_blank" href="https://www.linkedin.com/in/florian-sylvain-0651021a9"> <a rel="noopener" target="_blank" href="https://www.linkedin.com/in/florian-sylvain-0651021a9">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>
</a> </a>
<a target="_blank" href="https://github.com/Floriansylvain"> <a rel="noopener" target="_blank" href="https://github.com/Floriansylvain">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
</a> </a>
</footer> </footer>
+3 -3
View File
@@ -15,7 +15,7 @@ const projectsContentList = document.querySelectorAll('.article-content');
const projectsIDs = Array.from(projectsContentList) const projectsIDs = Array.from(projectsContentList)
.map((project) => project.id); .map((project) => project.id);
let lastScrollTop = window.pageYOffset; let lastScrollTop = window.scrollY;
function loadCSS() { function loadCSS() {
"use strict"; "use strict";
@@ -54,7 +54,7 @@ function updateTitle() {
const titlePos = mainTitle.getBoundingClientRect(); const titlePos = mainTitle.getBoundingClientRect();
if (titlePos.bottom > 0) { if (titlePos.bottom > 0) {
const distanceToTop = window.pageYOffset + titlePos.top; const distanceToTop = window.scrollY + titlePos.top;
const elementHeight = mainTitle.offsetHeight; const elementHeight = mainTitle.offsetHeight;
const opacity = 1 - ((y - distanceToTop) / elementHeight) * 2; const opacity = 1 - ((y - distanceToTop) / elementHeight) * 2;
@@ -115,7 +115,7 @@ function switchArticle(article) {
function updateScrollDirectionElems() { function updateScrollDirectionElems() {
"user strict"; "user strict";
const scrollTop = window.pageYOffset; const scrollTop = window.scrollY;
let opacity = "100%"; let opacity = "100%";
let visibility = "visible"; let visibility = "visible";
+4 -4
View File
@@ -21,7 +21,7 @@ body {
margin: 0; margin: 0;
color: #fff; color: #fff;
font-family: Manrope, 'sans-serif'; font-family: Manrope, sans-serif;
font-variation-settings: 'wght' 500; font-variation-settings: 'wght' 500;
background-color: #121212; background-color: #121212;
@@ -56,7 +56,7 @@ nav a:first-letter {
nav a { nav a {
position: relative; position: relative;
font-family: Manrope, 'sans-serif'; font-family: Manrope, sans-serif;
opacity: 0; opacity: 0;
@@ -223,7 +223,7 @@ a {
text-align: center; text-align: center;
font-family: Manrope, 'sans-serif'; font-family: Manrope, sans-serif;
font-variation-settings: 'wght' 500; font-variation-settings: 'wght' 500;
font-size: 2em; font-size: 2em;
letter-spacing: 0.1em; letter-spacing: 0.1em;
@@ -315,7 +315,7 @@ a {
top: 25px; top: 25px;
left: -35px; left: -35px;
font-family: Overpass, 'sans-serif'; font-family: Overpass, sans-serif;
font-size: 52px; font-size: 52px;
line-height: 0; line-height: 0;
} }