File tree Expand file tree Collapse file tree 16 files changed +1186
-789
lines changed Expand file tree Collapse file tree 16 files changed +1186
-789
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- extends : [ 'next/core-web-vitals' , 'plugin:storybook/recommended' ] ,
2
+ extends : [ 'next/core-web-vitals' ] ,
3
3
}
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ yarn-error.log*
27
27
28
28
# local env files
29
29
.env * .local
30
+ .env
30
31
31
32
# vercel
32
33
.vercel
Original file line number Diff line number Diff line change
1
+ {
2
+ "typescript.tsdk" : " node_modules/typescript/lib"
3
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
11
11
} from '@chakra-ui/react'
12
12
import { ArrowForwardIcon } from '@chakra-ui/icons'
13
13
import Image from 'next/image'
14
+ import NextLink from 'next/link'
14
15
15
16
const Hero = ( ) => {
16
17
return (
@@ -45,6 +46,7 @@ const Hero = () => {
45
46
< Link
46
47
href = { '/getting-started' }
47
48
alignSelf = { { base : 'center' , md : 'flex-start' } }
49
+ as = { NextLink }
48
50
>
49
51
< Button
50
52
colorScheme = "pink"
Original file line number Diff line number Diff line change
1
+ import NavBar from '@components/NavBar'
2
+ import Footer from '@components/footer/Footer'
3
+ import { Box } from '@chakra-ui/react'
4
+
5
+ const Layout = ( { children } : { children : React . ReactNode } ) => {
6
+ return (
7
+ < >
8
+ < NavBar />
9
+ < Box
10
+ p = "1.25em"
11
+ px = "5%"
12
+ mx = { { base : '2rem' , md : '6rem' , lg : '10rem' } }
13
+ as = "main"
14
+ >
15
+ { children }
16
+ </ Box >
17
+ < Footer />
18
+ </ >
19
+ )
20
+ }
21
+
22
+ export default Layout
Original file line number Diff line number Diff line change @@ -19,7 +19,12 @@ import { PomodoroTimer } from '@components/PomodoroTimer'
19
19
function NavBar ( ) {
20
20
const router = useRouter ( )
21
21
return (
22
- < Box >
22
+ < Box
23
+ p = "1.25em"
24
+ px = "5%"
25
+ mx = { { base : '2rem' , md : '6rem' , lg : '10rem' } }
26
+ as = "header"
27
+ >
23
28
< Flex justify = "left" alignItems = "center" >
24
29
< Link as = { NextLink } variant = "logo" href = { '/' } >
25
30
{ router . pathname . endsWith ( '/[slug]' ) ? (
@@ -79,7 +84,7 @@ function NavBar() {
79
84
GET STARTED
80
85
</ Link >
81
86
</ MenuItem >
82
- < MenuItem >
87
+ { /* <MenuItem>
83
88
<Link
84
89
as={NextLink}
85
90
href="/lessons"
@@ -92,7 +97,7 @@ function NavBar() {
92
97
>
93
98
Tracks
94
99
</Link>
95
- </ MenuItem >
100
+ </MenuItem> */ }
96
101
</ MenuList >
97
102
</ Menu >
98
103
</ Flex >
@@ -131,7 +136,7 @@ function NavBar() {
131
136
Get Started
132
137
</ Link >
133
138
134
- < Link
139
+ { /* <Link
135
140
as={NextLink}
136
141
href="/lessons"
137
142
passHref
@@ -142,7 +147,7 @@ function NavBar() {
142
147
}
143
148
>
144
149
Tracks
145
- </ Link >
150
+ </Link> */ }
146
151
147
152
{ /* <Button colorScheme="gray" variant="solid">
148
153
<ConnectButton chainStatus="icon" showBalance={false} />
Original file line number Diff line number Diff line change
1
+ import { NextSeo } from 'next-seo'
2
+
3
+ interface PageSeoLayoutProps {
4
+ title : string
5
+ description ?: string
6
+ children ?: React . ReactNode
7
+ }
8
+
9
+ const PageSeoLayout = ( {
10
+ title,
11
+ description,
12
+ children,
13
+ } : PageSeoLayoutProps ) => {
14
+ return (
15
+ < >
16
+ < NextSeo
17
+ title = { `Developer DAO Academy | ${ title } ` }
18
+ description = { description }
19
+ openGraph = { {
20
+ type : 'website' ,
21
+ locale : 'en_US' ,
22
+ url : `https://${ process . env . NEXT_PUBLIC_VERCEL_URL } /landing-page-screenshot.png` ,
23
+ site_name : `Developer DAO Academy` ,
24
+ title : `Developer DAO Academy | ${ title } ` ,
25
+ description : `${ description } ` ,
26
+ images : [
27
+ {
28
+ url : `https://${ process . env . NEXT_PUBLIC_VERCEL_URL } /landing-page-screenshot.png` ,
29
+ alt : 'Developer DAO Academy' ,
30
+ type : 'image/png' ,
31
+ } ,
32
+ ] ,
33
+ } }
34
+ twitter = { {
35
+ handle : '@devdao_academy' ,
36
+ site : '@devdao_academy' ,
37
+ cardType : 'summary_large_image' ,
38
+ } }
39
+ additionalLinkTags = { [
40
+ {
41
+ rel : 'icon' ,
42
+ href : '/favicon/favicon.ico' ,
43
+ } ,
44
+ ] }
45
+ />
46
+ { children }
47
+ </ >
48
+ )
49
+ }
50
+
51
+ export default PageSeoLayout
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ export default function Footer() {
14
14
return (
15
15
< Box
16
16
// bg={useColorModeValue('#00000f', '#1d1e20')}
17
+ p = "1.25em"
18
+ px = "5%"
19
+ mx = { { base : '2rem' , md : '6rem' , lg : '10rem' } }
20
+ as = "footer"
17
21
color = { useColorModeValue ( 'gray.700' , 'gray.200' ) }
18
22
>
19
23
< Container
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ export function ContributorFooter({
26
26
{ authors . length > 1 ? 'Authors' : 'Author' }
27
27
</ Text >
28
28
< VStack spacing = { 4 } alignItems = "left" >
29
- { authors . map ( ( contrib ) => {
30
- return < Contributor handle = { contrib } avatarSize = "2xl" />
29
+ { authors . map ( ( contrib , idx ) => {
30
+ return < Contributor key = { idx } handle = { contrib } avatarSize = "2xl" />
31
31
} ) }
32
32
</ VStack >
33
33
</ Box >
@@ -39,8 +39,8 @@ export function ContributorFooter({
39
39
{ reviewers . length > 1 ? 'Reviewers' : 'Reviewer' }
40
40
</ Text >
41
41
< VStack spacing = { 4 } alignItems = "left" >
42
- { reviewers . map ( ( contrib ) => {
43
- return < Contributor handle = { contrib } avatarSize = "lg" />
42
+ { reviewers . map ( ( contrib , idx ) => {
43
+ return < Contributor key = { idx } handle = { contrib } avatarSize = "lg" />
44
44
} ) }
45
45
</ VStack >
46
46
</ Box >
@@ -56,8 +56,10 @@ export function ContributorFooter({
56
56
: 'Additional Contributor' }
57
57
</ Text >
58
58
< VStack spacing = { 4 } alignItems = "left" >
59
- { contributors . map ( ( contrib ) => {
60
- return < Contributor handle = { contrib } avatarSize = "lg" />
59
+ { contributors . map ( ( contrib , idx ) => {
60
+ return (
61
+ < Contributor key = { idx } handle = { contrib } avatarSize = "lg" />
62
+ )
61
63
} ) }
62
64
</ VStack >
63
65
</ Box >
You can’t perform that action at this time.
0 commit comments