-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.js
More file actions
31 lines (27 loc) · 1022 Bytes
/
index.js
File metadata and controls
31 lines (27 loc) · 1022 Bytes
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
import WelcomeBanner from '@/components/WelcomeBanner';
import styles from '@/styles/Home.module.scss';
import chapters from '@/data/chapters';
import WelcomeSectionCard from '@/components/WelcomeSectionCard';
import { countItems, getItems } from '@/helpers/getCardData';
import Logo from '@/components/Logo';
export default function Home() {
const { get_started, development_cycle, share } = chapters;
const sections = [...get_started, ...development_cycle, ...share];
return (
<div className={styles.container}>
<div className={styles.wrapper}>
<Logo />
<section className={styles.banner}>
<WelcomeBanner />
</section>
<section className={styles.contents}>
{sections.map(({ id, title, data, Icon }, index) => (
<WelcomeSectionCard key={id + index} title={title} totalItem={countItems(data)} items={getItems(data)}>
<Icon />
</WelcomeSectionCard>
))}
</section>
</div>
</div>
);
}