Skip to content

Commit df2f326

Browse files
committed
add title in the pages
1 parent 6cc352a commit df2f326

6 files changed

Lines changed: 54 additions & 18 deletions

File tree

pages/about.jsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
import Head from "next/head";
12
import React from "react";
23

34
export default function AboutPage() {
45
return (
5-
<main className="flex justify-center items-center min-h-screen">
6-
<h1 className="text-white">About page will be here</h1>
7-
</main>
6+
<>
7+
<Head>
8+
<title>React Devs Kenya - About</title>
9+
</Head>
10+
<main className="flex justify-center items-center min-h-screen">
11+
<h1 className="text-white">About page will be here</h1>
12+
</main>
13+
</>
814
);
915
}

pages/contact.jsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import React from "react";
2+
import Head from "next/head";
23

34
export default function ContactPage() {
45
return (
5-
<main className="flex justify-center items-center min-h-screen">
6-
<h1 className="text-white">Contact page will be here</h1>
7-
</main>
6+
<>
7+
<Head>
8+
<title>React Devs Kenya - Contact</title>
9+
</Head>
10+
<main className="flex justify-center items-center min-h-screen">
11+
<h1 className="text-white">Contact page will be here</h1>
12+
</main>
13+
</>
814
);
915
}

pages/events.jsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import React from "react";
2+
import Head from "next/head";
23

34
export default function EventsPage() {
45
return (
5-
<main className="flex justify-center items-center min-h-screen">
6-
<h1 className="text-white">Events page will be here</h1>
7-
</main>
6+
<>
7+
<Head>
8+
<title>React Devs Kenya - Events</title>
9+
</Head>
10+
<main className="flex justify-center items-center min-h-screen">
11+
<h1 className="text-white">Events page will be here</h1>
12+
</main>
13+
</>
814
);
915
}

pages/forum.jsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import React from "react";
2+
import Head from "next/head";
23

34
export default function ForumPage() {
45
return (
5-
<main className="flex justify-center items-center min-h-screen">
6-
<h1 className="text-white">Forum page will be here</h1>
7-
</main>
6+
<>
7+
<Head>
8+
<title>React Devs Kenya - Forum</title>
9+
</Head>
10+
<main className="flex justify-center items-center min-h-screen">
11+
<h1 className="text-white">Forum page will be here</h1>
12+
</main>
13+
</>
814
);
915
}

pages/members.jsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import React from "react";
2+
import Head from "next/head";
23

34
export default function MembersPage() {
45
return (
5-
<main className="flex justify-center items-center min-h-screen">
6-
<h1 className="text-white">Members page will be here</h1>
7-
</main>
6+
<>
7+
<Head>
8+
<title>React Devs Kenya - About</title>
9+
</Head>
10+
<main className="flex justify-center items-center min-h-screen">
11+
<h1 className="text-white">Members page will be here</h1>
12+
</main>
13+
</>
814
);
915
}

pages/news.jsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import React from "react";
2+
import Head from "next/head";
23

34
export default function NewsPage() {
45
return (
5-
<main className="flex justify-center items-center min-h-screen">
6-
<h1 className="text-white">News page will be here</h1>
7-
</main>
6+
<>
7+
<Head>
8+
<title>React Devs Kenya - News</title>
9+
</Head>
10+
<main className="flex justify-center items-center min-h-screen">
11+
<h1 className="text-white">News page will be here</h1>
12+
</main>
13+
</>
814
);
915
}

0 commit comments

Comments
 (0)