diff --git a/_data/menu.yml b/_data/menu.yml
new file mode 100644
index 0000000..3d35483
--- /dev/null
+++ b/_data/menu.yml
@@ -0,0 +1,24 @@
+
+- about:
+ en:
+ name: call for participants
+ url: /about
+ fr:
+ name: à propos
+ url: /a-propos
+
+- participate:
+ en:
+ name: submit a proposal
+ url: "/how-to-participate"
+ fr:
+ name: soumettre une proposition
+ url: /participer
+
+# - attend:
+# en:
+# name: attend
+# url: /attend
+# fr:
+# name: l'événement
+# url: /evenement
\ No newline at end of file
diff --git a/_includes/common/header.html b/_includes/common/header.html
new file mode 100644
index 0000000..7ae3af6
--- /dev/null
+++ b/_includes/common/header.html
@@ -0,0 +1,11 @@
+
\ No newline at end of file
diff --git a/_includes/common/lang-selector.html b/_includes/common/lang-selector.html
index ea4984d..96a3561 100644
--- a/_includes/common/lang-selector.html
+++ b/_includes/common/lang-selector.html
@@ -1,5 +1,38 @@
-{% if page.lang == 'en' %}
+{% assign posts=site.posts | where:"ref", page.ref | sort: 'lang' %}
+{% assign newpages=site.pages | where:"ref", page.ref | sort: 'lang' %}
+
+
+{% if posts.size > 1 %}
+ {% for post in posts %}
+ {% if post.lang != page.lang %}
+
+ {% if page.lang == 'en' %}
+ {{ include.fr-text }}
+ {% else %}
+ {{ include.en-text }}
+ {% endif %}
+
+ {% endif %}
+ {% endfor %}
+
+{% elsif newpages.size > 1 %}
+ {% for pege in newpages %}
+ {% if pege.lang != page.lang and page.ref != '' %}
+ {% if page.lang == 'en' %}
+ {{ include.fr-text }}
+ {% else %}
+ {{ include.en-text }}
+ {% endif %}
+ {% endif %}
+ {% endfor %}
+
+
+{% elsif page.lang == 'en' %}
{{ include.fr-text }}
+ {{ site.data.menu[page.ref]}}
{% else %}
{{ include.en-text }}
-{% endif %}
\ No newline at end of file
+ {{ site.data.menu[page.ref]}}
+{% endif %}
+
+
diff --git a/_includes/common/navigation.html b/_includes/common/navigation.html
new file mode 100644
index 0000000..288825c
--- /dev/null
+++ b/_includes/common/navigation.html
@@ -0,0 +1,14 @@
+
+
\ No newline at end of file
diff --git a/_sass/includes/header.scss b/_sass/includes/header.scss
index 8e77ff6..3173485 100644
--- a/_sass/includes/header.scss
+++ b/_sass/includes/header.scss
@@ -1,21 +1,34 @@
header.page-header {
- .lang {
- position: absolute;
+ .lang,
+ .nav-link {
color: $text;
- top: $size-32;
- right: $size-32;
background-color: white;
padding: $size-8;
transition: box-shadow 0.8s cubic-bezier(0.075, 0.82, 0.165, 1);
+ z-index: 1;
&:hover {
box-shadow: 5px 5px 0 rgba($white, 0.5), 10px 10px 0 rgba($white, 0.4), 15px 15px 0 rgba($white, 0.3);
transition: box-shadow 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}
+ }
+ nav {
+ position: absolute;
+ top: $size-32;
+ right: $size-32;
+ display: flex;
+ flex-direction: column;
+ align-items: flex-end;
+ .menu {
+ display: flex;
+ }
+ }
+
+ .lang,
+ .nav-link {
+ margin: 0 4px 8px 0;
@include touch {
- top: $size-16;
- right: $size-16;
font-size: 0.8em;
}
}
@@ -27,3 +40,29 @@ header.page-header {
display: inline-block;
}
}
+
+#rf-logo-wrapper {
+ transition: all 0.8s ease-in-out;
+ a {
+ font-weight: normal;
+
+ &:hover,
+ &:visited {
+ font-style: normal;
+ }
+ }
+
+ &.hidden {
+ opacity: 0.0001;
+ margin-top: -100px;
+ }
+
+ .rf-logo {
+ margin: $size-64 0 $size-64 $size-32;
+
+ @include touch {
+ max-width: 90%;
+ margin-left: 5%;
+ }
+ }
+}
diff --git a/_sass/layouts/page-with-header.scss b/_sass/layouts/page-with-header.scss
deleted file mode 100644
index 873edf1..0000000
--- a/_sass/layouts/page-with-header.scss
+++ /dev/null
@@ -1,17 +0,0 @@
-#rf-logo-wrapper {
- transition: all 0.8s ease-in-out;
-
- &.hidden {
- opacity: 0.0001;
- margin-top: -100px;
- }
-
- .rf-logo {
- margin: $size-64 0 $size-64 $size-32;
-
- @include touch {
- max-width: 90%;
- margin-left: 5%;
- }
- }
-}
diff --git a/_sass/pages/how-to-participate.scss b/_sass/pages/how-to-participate.scss
new file mode 100644
index 0000000..1139ad2
--- /dev/null
+++ b/_sass/pages/how-to-participate.scss
@@ -0,0 +1,15 @@
+#page-participate {
+ h2 {
+ display: block;
+ }
+ &.lang-en h2 {
+ margin: 0 203px 16px 0;
+ }
+ &.lang-fr h2 {
+ margin: 0 40px 16px 0;
+ }
+
+ .content p:last-of-type {
+ margin-top: 24px;
+ }
+}
diff --git a/index.html b/index.html
index 6cfe4f9..3898490 100644
--- a/index.html
+++ b/index.html
@@ -1,10 +1,38 @@
---
-layout: page-with-header
+layout: content-page
lang: en
+title: index
+className: index
+ref: index
---
-{% capture maintext %}
- {% include text/intro-text-en.md %}
+{% capture intro %}
+ {% include text/en/intro.md %}
{% endcapture %}
-{{ maintext | markdownify }}
\ No newline at end of file
+
+
+
{{ intro | markdownify }}
+
{{ site.data.translations.latest[page.lang]}}
+
+ {% for post in site.posts %}
+ {% if post.lang == page.lang %}
+ -
+
+
+
+ {% endif %}
+ {% endfor %}
+
+
+