Apprenez la programmation grâce à l'apprentissage par projet alias fonction.
Découvrez la liste des fonctions disponibles :
@@ -43,7 +43,7 @@ const Home = () => {
{/* Slide 2 */}
Le partage est essentiel afin de progresser.
Par conséquent chaque fonction a un article expliquant comment elle fonctionne et
diff --git a/website/public/css/general.css b/website/public/css/general.css
index 9639d9f..dc8f532 100644
--- a/website/public/css/general.css
+++ b/website/public/css/general.css
@@ -26,9 +26,6 @@ p {
font-size: 18px;
line-height: 1.9;
}
-h2 {
- font-size: 1.8em;
-}
a:hover {
text-decoration: underline;
}
@@ -76,6 +73,10 @@ a:hover {
.align-items-center {
align-items: center;
}
+.title-important {
+ color: var(--important);
+ font-weight: 500;
+}
a, .important {
color: var(--important);
text-decoration: none;
diff --git a/website/public/css/pages/FunctionComponent.css b/website/public/css/pages/FunctionComponent.css
new file mode 100644
index 0000000..501e516
--- /dev/null
+++ b/website/public/css/pages/FunctionComponent.css
@@ -0,0 +1,18 @@
+.FunctionComponent__top {
+ display: flex;
+ align-items: center;
+ position: relative;
+ flex-direction: column;
+ word-wrap: break-word;
+ box-shadow: 0px 0px 6px 6px rgba(0, 0, 0, .25);
+ border: 1px solid black;
+ border-radius: 1rem;
+ margin-top: 50px;
+}
+.FunctionComponent__title {
+ margin: 0;
+}
+.FunctionComponent__description {
+ word-break: break-all;
+ margin-bottom: 0;
+}
\ No newline at end of file
diff --git a/website/public/css/pages/index.css b/website/public/css/pages/index.css
index 8c198f5..aacd2fd 100644
--- a/website/public/css/pages/index.css
+++ b/website/public/css/pages/index.css
@@ -4,9 +4,6 @@
justify-content: center;
align-items: center;
}
-.Home__title-important {
- font-weight: 500;
-}
.Home__logo-spin {
cursor: pointer;
}
diff --git a/website/utils/redirect.js b/website/utils/redirect.js
new file mode 100644
index 0000000..643e8da
--- /dev/null
+++ b/website/utils/redirect.js
@@ -0,0 +1,6 @@
+function redirect (ctx, path) {
+ ctx.res.writeHead(302, { Location: path });
+ ctx.res.end();
+}
+
+module.exports = redirect;
\ No newline at end of file