diff --git a/src/lib/components/button.svelte b/src/lib/components/button.svelte index 5ab81d9..64e6b55 100755 --- a/src/lib/components/button.svelte +++ b/src/lib/components/button.svelte @@ -1,4 +1,4 @@ - +
{ @@ -40,6 +44,9 @@ on:mouseleave={(event) => { button_animation(event, false); }} + on:click={(event) => { + action(); + }} > {label}
diff --git a/src/lib/components/navbar.svelte b/src/lib/components/navbar.svelte index 4f32f0f..1b267b5 100644 --- a/src/lib/components/navbar.svelte +++ b/src/lib/components/navbar.svelte @@ -101,6 +101,9 @@
{mainjson.tab.projects}
+
+ {mainjson.tab.about} +
{mainjson.tab.blog}
diff --git a/src/lib/components/person.svelte b/src/lib/components/person.svelte index da63fe2..a4b1e35 100755 --- a/src/lib/components/person.svelte +++ b/src/lib/components/person.svelte @@ -6,6 +6,7 @@ export let name = "John Doe"; export let pronouns = ""; export let description = "Normal human being I swear"; + export let url = "https://github.com"
@@ -22,7 +23,7 @@

{description}

-
diff --git a/src/lib/json/hub.json b/src/lib/json/hub.json index 0c98650..fc674a2 100644 --- a/src/lib/json/hub.json +++ b/src/lib/json/hub.json @@ -6,5 +6,6 @@ "name": "Yohan Boujon", "pronouns": "il/lui", "description": "Informatics and electronics engineer" - } + }, + "projects":"Mes projets" } \ No newline at end of file diff --git a/src/lib/json/main.json b/src/lib/json/main.json index eac47b8..93590ad 100644 --- a/src/lib/json/main.json +++ b/src/lib/json/main.json @@ -3,6 +3,7 @@ { "hub": "Hub", "projects": "Projets", + "about": "À propos", "blog": "Blog", "lab": "Labo" }, diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index f3fe808..87f494d 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -28,5 +28,9 @@ name={hubjson.person.name} pronouns={hubjson.person.pronouns} description={hubjson.person.description} + url="/about" /> +
+

{hubjson.projects}

+
diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte new file mode 100644 index 0000000..ce9fcc4 --- /dev/null +++ b/src/routes/about/+page.svelte @@ -0,0 +1,16 @@ + + +
+
+
+
+

About

+
+
+