-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlgorithmSection.tsx
More file actions
64 lines (60 loc) · 2.14 KB
/
AlgorithmSection.tsx
File metadata and controls
64 lines (60 loc) · 2.14 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
import { useTranslations } from 'next-intl';
import { SectionHeader } from '@/components/molecules/SectionHeader';
import { AlgorithmCard } from '@/components/molecules/about/AlgorithmCard';
import { AggregationFlow } from '@/components/molecules/AggregationFlow';
export function AlgorithmSection() {
const t = useTranslations('AboutPage');
return (
<section className="mb-32">
<SectionHeader title={t('algorithm.title')} subtitle={t('algorithm.subtitle')} className="mb-16" />
<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
<AlgorithmCard
title={t('algorithm.indifference_title')}
description={t('algorithm.indifference_desc')}
icon="sentiment_neutral"
delay={0.1}
formula={
<div className="flex flex-col gap-1 text-center">
<span>{t('algorithm.indifference_formula_both')}</span>
<span>{t('algorithm.indifference_formula_one')}</span>
</div>
}
/>
<AlgorithmCard
title={t('algorithm.quadratic_title')}
description={t('algorithm.quadratic_desc')}
icon="function"
delay={0.2}
formula={
<div className="flex flex-col gap-1 text-[10px]">
<span>Overlap: A = 50 + 50(1 - r)²</span>
<span>Gap: A = 50(1 - r)²</span>
</div>
}
/>
<AlgorithmCard
title={t('algorithm.modifiers_title')}
description={t('algorithm.modifiers_desc')}
icon="tune"
delay={0.3}
formula={
<div className="flex flex-col gap-1 text-center">
<span>{t('algorithm.modifiers_formula_base')}</span>
<span className="opacity-70">Max: +15 / -20</span>
</div>
}
/>
</div>
<AggregationFlow
title={t('algorithm.aggregation_title')}
description={t('algorithm.aggregation_desc')}
steps={[
t('algorithm.step_axis'),
t('algorithm.step_section'),
t('algorithm.step_complexity'),
t('algorithm.step_global'),
]}
/>
</section>
);
}