Skip to content

Commit

Permalink
Merge pull request WebXDAO#478 from s2sharpit/dynamic-title
Browse files Browse the repository at this point in the history
adding title to every page
  • Loading branch information
mkubdev authored Jul 12, 2023
2 parents 0ab1c21 + 583acf6 commit a28661d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
9 changes: 5 additions & 4 deletions src/app/blogs/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import Head from "next/head";
import Image from "next/image";
// import { Blogs } from '../components/Global'
import { Metadata } from "next";

export const metadata: Metadata = {
title: "Blog",
};


async function getData() {
Expand Down Expand Up @@ -30,9 +34,6 @@ export default async function BlogPage({

return (
<>
<Head>
<title>Blog | WebXDAO</title>
</Head>
<section className="py-8">
<div className="container mx-auto max-w-5xl">
<h1 className="my-2 w-full text-center text-4xl font-bold leading-tight text-white">
Expand Down
4 changes: 4 additions & 0 deletions src/app/contributors/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import ContributorCard from "@/components/ContributorCard";
import { Metadata } from "next";

export const metadata: Metadata = {
title: "Contributors",
};

async function getContributorData() {
// fetch contributors using Github REST API
Expand Down
15 changes: 8 additions & 7 deletions src/app/projects/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import Star from "../../components/star";
import Star from "@/components/star";
import { fontGilroy } from "@/lib/fonts";
import { cn } from "@/lib/utils";
import Head from "next/head";
import ProjectCard from "../../components/ProjectCard";
import ProjectCard from "@/components/ProjectCard";
import { Metadata } from 'next';

export const metadata: Metadata = {
title: 'Projects',
}

async function getRepoData() {
const res = await fetch("https://api.github.com/orgs/WebXDAO/repos");
Expand All @@ -16,12 +20,9 @@ async function getRepoData() {

export default async function Projects() {
const projectsData = await getRepoData();
console.log(projectsData);
// console.log(projectsData);
return (
<>
<Head>
<title>Projects | WebXDAO</title>
</Head>
<section className="w-full overflow-hidden py-8">
<div className="container mx-auto flex max-w-5xl flex-row flex-wrap justify-around lg:flex-nowrap">
<h1
Expand Down
11 changes: 6 additions & 5 deletions src/app/team/page.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import Star from "../../components/star";
import Star from "@/components/star";
import { fontGilroy } from "@/lib/fonts";
import { cn } from "@/lib/utils";
import Head from "next/head";
import TeamCard from "@/components/TeamCard";
import { Metadata } from 'next';

export const metadata: Metadata = {
title: 'Team',
}

export default async function Team() {
return (
<>
<Head>
<title>Team | WebXDAO</title>
</Head>
<section className="w-full overflow-hidden py-8">
<div className="container mx-auto flex max-w-5xl flex-row flex-wrap justify-around lg:flex-nowrap ">
<h1
Expand Down

0 comments on commit a28661d

Please sign in to comment.