1
+ export default function ContributePage ( ) {
2
+ return (
3
+ < div className = "container mx-auto px-4 py-8 max-w-4xl" >
4
+ < h1 className = "text-4xl font-bold mb-8" > How to Contribute</ h1 >
5
+
6
+ < div className = "prose dark:prose-invert max-w-none" >
7
+ < h2 > Adding New Tutorials</ h2 >
8
+ < p >
9
+ We welcome contributions from the community! Here's how you can add new tutorials:
10
+ </ p >
11
+
12
+ < h3 > 1. Create a Markdown File</ h3 >
13
+ < p >
14
+ Create a new markdown file in the appropriate language directory under < code > content/</ code > .
15
+ For example: < code > content/javascript/my-tutorial.md</ code >
16
+ </ p >
17
+
18
+ < div className = "bg-muted p-4 rounded-lg my-4" >
19
+ < pre className = "text-sm" >
20
+ { `---
21
+ title: "Tutorial Title"
22
+ description: "A brief description of the tutorial"
23
+ technologies: Tech1, Tech2
24
+ difficulty: "beginner"
25
+ url: "https://youtube.com/..."
26
+ image: "https://example.com/preview.jpg"
27
+ ---
28
+
29
+ ## Tutorial Content
30
+
31
+ Your tutorial content here...` }
32
+ </ pre >
33
+ </ div >
34
+
35
+ < h3 > 2. Required Fields</ h3 >
36
+ < ul >
37
+ < li > < code > title</ code > : The name of your tutorial</ li >
38
+ < li > < code > description</ code > : A brief description (150-200 characters)</ li >
39
+ < li > < code > technologies</ code > : Comma-separated list of technologies used</ li >
40
+ < li > < code > difficulty</ code > : One of: beginner, intermediate, advanced</ li >
41
+ < li > < code > url</ code > : YouTube video or article URL</ li >
42
+ < li > < code > image</ code > : Preview image URL (16:9 ratio recommended)</ li >
43
+ </ ul >
44
+
45
+ < h3 > 3. Content Guidelines</ h3 >
46
+ < ul >
47
+ < li > Use clear, concise language</ li >
48
+ < li > Include code examples where relevant</ li >
49
+ < li > Break down complex concepts</ li >
50
+ < li > Add screenshots or diagrams when helpful</ li >
51
+ < li > Link to additional resources</ li >
52
+ </ ul >
53
+
54
+ < h3 > 4. Submit Your Contribution</ h3 >
55
+ < p >
56
+ 1. Fork the repository< br />
57
+ 2. Create a new branch< br />
58
+ 3. Add your tutorial< br />
59
+ 4. Submit a pull request
60
+ </ p >
61
+
62
+ < div className = "bg-muted p-4 rounded-lg my-4" >
63
+ < h4 className = "text-sm font-semibold mb-2" > Need Help?</ h4 >
64
+ < p className = "text-sm" >
65
+ If you need assistance or have questions, feel free to:
66
+ </ p >
67
+ < ul className = "text-sm mt-2" >
68
+ < li > Open an issue on GitHub</ li >
69
+ < li > Join our Discord community</ li >
70
+ < li > Check our detailed contribution guide</ li >
71
+ </ ul >
72
+ </ div >
73
+ </ div >
74
+ </ div >
75
+ ) ;
76
+ }
0 commit comments