-
-
Notifications
You must be signed in to change notification settings - Fork 152
Expand file tree
/
Copy pathindex.tsx
More file actions
90 lines (74 loc) · 2.79 KB
/
index.tsx
File metadata and controls
90 lines (74 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import clsx from "clsx";
import style from "./index.module.css";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import Layout from "@theme/Layout";
import Heading from "@theme/Heading";
import Head from "@docusaurus/Head";
import Header from "../components/HomePage/Header";
import ResourcesSection from "../components/HomePage/ResourcesSection";
import ScrollTopToButton from "../components/Buttons/bottom/ScrollTopToButton";
import ScrollBottomToTop from "../components/Buttons/top/ScrollBottomToTop";
import { LandingCommunity } from "../components/HomePage/Community";
import { CommunityStatsProvider } from "../context/CommunityStats";
import Faq from "./Faq";
import Organizations from "../components/HomePage/organizations";
import TweetsSection from "../components/HomePage/TweetsSection";
import WhyChooseCodeHarbor from "../components/WhyChooseCodeHarbor";
export default function Home() {
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="Welcome to CodeHarborHub. Learn the basics to advanced concepts of web development. html, css, javascript, react, node.js, dsa, and more."
>
<Head>
<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5832817025080991"
crossOrigin="anonymous"
/>
<script
async
custom-element="amp-auto-ads"
src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js"
/>
<meta name="google-adsense-account" content="ca-pub-5832817025080991" />
</Head>
<main className={style.main__home}>
<div className={style.home__header}>
<Header />
</div>
<hr className={style.home__hr} />
<div className={style.home__header}>
<WhyChooseCodeHarbor />
</div>
<hr className={style.home__hr} />
<div>
<ResourcesSection />
</div>
<hr className={style.home__hr} />
<CommunityStatsProvider>
<LandingCommunity className="codeharborhub" />
</CommunityStatsProvider>
<hr className={style.home__hr} />
<div className={style.home__divider}>
<Heading as="h2" className={clsx("text--center")}>
Our GitHub Organizations
</Heading>
</div>
<Organizations />
<hr className={style.home__hr} />
<TweetsSection />
<hr className={style.home__hr} />
<div className={style.home__divider}>
<Heading as="h2" className={clsx("text--center", style.mainHeading)}>
Frequently Asked Questions
</Heading>
</div>
<Faq />
<ScrollTopToButton />
<ScrollBottomToTop />
</main>
</Layout>
);
}