-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathquestion-blocks.tsx
76 lines (70 loc) · 3.21 KB
/
question-blocks.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import React from 'react';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faFlag, faClipboard } from '@fortawesome/free-regular-svg-icons';
import { faUserGroup } from '@fortawesome/free-solid-svg-icons';
function QuestionBlocks() {
const { siteConfig } = useDocusaurusContext();
return (
<section>
<div className="max-w-6xl mx-auto px-4 sm:px-6">
<div className="py-12 md:py-20">
{/* Items */}
<div
className="max-w-sm mx-auto grid gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-16 items-start md:max-w-2xl lg:max-w-none"
data-aos-id-blocks
>
{/* 1st item */}
<div
className="relative flex flex-col items-center"
data-aos="fade-up"
data-aos-delay="100"
data-aos-anchor="[data-aos-id-blocks]"
>
<div className="w-16 h-16 mb-4 rounded-full bg-purple-600 relative">
<FontAwesomeIcon className="absolute top-5 left-6 text-purple-100 fa-xl" icon={faFlag} />
</div>
<h4 className="h4 mb-2">What's a Feature Flag?</h4>
<p className="text-lg text-gray-500 dark:text-gray-300 text-center">
Feature flags are a software development technique that allows teams to enable, disable or change the
behavior of certain features or code paths in a product or service, without modifying the source code.
</p>
</div>
{/* 2nd item */}
<div
className="relative flex flex-col items-center"
data-aos="fade-up"
data-aos-anchor="[data-aos-id-blocks]"
>
<div className="w-16 h-16 mb-4 rounded-full bg-purple-600 relative">
<FontAwesomeIcon className="absolute top-5 left-[18px] text-purple-100 fa-xl" icon={faUserGroup} />
</div>
<h4 className="h4 mb-2">What's OpenFeature?</h4>
<p className="text-lg text-gray-500 dark:text-gray-300 text-center">
{siteConfig.customFields.description as string}
</p>
</div>
{/* 3rd item */}
<div
className="relative flex flex-col items-center"
data-aos="fade-up"
data-aos-delay="200"
data-aos-anchor="[data-aos-id-blocks]"
>
<div className="w-16 h-16 mb-4 rounded-full bg-purple-600 relative">
<FontAwesomeIcon className="absolute top-5 left-6 text-purple-100 fa-xl" icon={faClipboard} />
</div>
<h4 className="h4 mb-2">Why standardize?</h4>
<p className="text-lg text-gray-500 dark:text-gray-300 text-center">
Standardizing feature flags unifies tools and vendors behind a common interface, avoiding vendor lock-in
at the code level. It provides a framework for building extensions and integrations that can be shared
across the community.
</p>
</div>
</div>
</div>
</div>
</section>
);
}
export default QuestionBlocks;