Commit 1440e24 1 parent e9830a4 commit 1440e24 Copy full SHA for 1440e24
File tree 3 files changed +22
-0
lines changed
3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1
1
import Link from "next/link" ;
2
+ import { getMetadata } from "~~/utils/scaffold-eth/getMetadata" ;
2
3
3
4
// ToDo:
4
5
// - Review the existing FAQs
@@ -51,6 +52,11 @@ const faqs = [
51
52
} ,
52
53
] ;
53
54
55
+ export const metadata = getMetadata ( {
56
+ title : "FAQ" ,
57
+ description : "Check out the FAQ for the BuidlGuidl CTF" ,
58
+ } ) ;
59
+
54
60
export default function FaqsPage ( ) {
55
61
return (
56
62
< div className = "mx-auto max-w-7xl px-6 py-16 sm:py-24 lg:px-8" >
Original file line number Diff line number Diff line change 1
1
import Image from "next/image" ;
2
2
import { UserData } from "~~/components/UserData" ;
3
3
import { getChallenges } from "~~/utils/getChallenges" ;
4
+ import { getMetadata } from "~~/utils/scaffold-eth/getMetadata" ;
4
5
5
6
interface ProfilePageProps {
6
7
params : {
7
8
address : string ;
8
9
} ;
9
10
}
10
11
12
+ export async function generateMetadata ( { params } : ProfilePageProps ) {
13
+ const { address } = params ;
14
+ const displayAddress = address ?. slice ( 0 , 4 ) + "..." + address ?. slice ( - 4 ) ;
15
+ return getMetadata ( {
16
+ title : `${ displayAddress } Profile` ,
17
+ description : `Check out ${ address } progress in the BuidlGuidl CTF` ,
18
+ } ) ;
19
+ }
20
+
11
21
export default async function ProfilePage ( { params } : ProfilePageProps ) {
12
22
const { address } = params ;
13
23
const challenges = await getChallenges ( ) ;
Original file line number Diff line number Diff line change 2
2
3
3
import { useQuery } from "@tanstack/react-query" ;
4
4
import type { NextPage } from "next" ;
5
+ import { getMetadata } from "~~/utils/scaffold-eth/getMetadata" ;
5
6
6
7
const thStyles = "whitespace-nowrap px-3 py-3.5" ;
7
8
const tdStyles = "whitespace-nowrap px-3 py-4" ;
8
9
10
+ export const metadata = getMetadata ( {
11
+ title : "Stats" ,
12
+ description : "Check out the stats for the BuidlGuidl CTF" ,
13
+ } ) ;
14
+
9
15
const Stats : NextPage = ( ) => {
10
16
const {
11
17
isPending,
You can’t perform that action at this time.
0 commit comments