forked from rupali-codes/LinksHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.tsx
57 lines (57 loc) · 2.23 KB
/
index.tsx
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
import React from 'react'
import Head from 'next/head'
import Logo from 'components/logo'
import TypewriterComponent from 'typewriter-effect'
import { sidebarData } from '../database/data'
export default function Home() {
//storing sub categories names for using in typewriter effect
const subCategoriesNames: string[] = []
sidebarData.forEach((c) => {
c.subcategory.forEach((a) => {
subCategoriesNames.push(a.name.toUpperCase())
})
})
return (
<>
<Head>
<title>LinksHub</title>
<meta
name="description"
content="LinksHub is the ultimate hub of ready-to-use tech resources. Discover free tools and libraries to streamline your development process and build better projects."
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#202c46"/>
<link rel="icon" href="/icon.png" className="rounded-full" />
</Head>
<section className="flex min-h-[calc(100%-68px)] flex-col">
<div className=" m-auto flex flex-col items-start gap-2">
<div className="m-auto md:text-7xl text-5xl gap-2 flex items-center justify-center">
<Logo />
<span>👾</span>
</div>
<div className="flex flex-col mt-6 justify-center items-start w-96 max-md:w-64">
<p className="text-md">
{' '}
LinksHub aims to provide developers with access to a wide range of
free resources and tools that they can use in their work. These
resources include links to free software, libraries, frameworks,
and other tools that can be used to build and deploy applications
and websites.
</p>
<br />
<p className="text-md">Navigate through menu for</p>
<TypewriterComponent
options={{
strings: subCategoriesNames,
wrapperClassName: 'text-md text-violet-600 dark:text-violet-400',
cursorClassName: 'text-md text-violet-600 dark:text-violet-400',
autoStart: true,
loop: true,
}}
/>
</div>
</div>
</section>
</>
)
}