📦 EqualifyEverything / equalify-viewer

📄 Overview.tsx · 44 lines
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

interface OverviewProps {
    activeBlockers: number;
    uniqueUrls: number;
    ignoredBlockers: number;
}

const Overview = ({ activeBlockers, uniqueUrls, ignoredBlockers }: OverviewProps) => {

    return (
        <div className="card overview-section" style={{ marginBottom: '2rem' }}>
            <h2 style={{ marginBottom: '1rem', fontSize: '1.25rem', fontWeight: 600 }}>Accessibility Overview</h2>
            <p style={{ color: 'var(--neutral-600)', marginBottom: '1.5rem' }}>
                This dashboard aggregates accessibility violations detected across the selected dataset.
                Use the data below to identify high-priority pages and track progress over time.
            </p>

            <div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(200px, 1fr))', gap: '1.5rem' }}>
                <div>
                    <div style={{ fontSize: '0.875rem', color: 'var(--neutral-500)', fontWeight: 500 }}>Active Blockers</div>
                    <div style={{ fontSize: '2rem', fontWeight: 700, color: 'var(--color-primary-main)' }}>
                        {activeBlockers.toLocaleString()}
                    </div>
                </div>
                <div>
                    <div style={{ fontSize: '0.875rem', color: 'var(--neutral-500)', fontWeight: 500 }}>Unique Pages (Selected Dataset)</div>
                    <div style={{ fontSize: '2rem', fontWeight: 700, color: 'var(--neutral-900)' }}>
                        {uniqueUrls.toLocaleString()}
                    </div>
                </div>
                <div>
                    <div style={{ fontSize: '0.875rem', color: 'var(--neutral-500)', fontWeight: 500 }}>Manually Ignored (Selected Dataset)</div>
                    <div style={{ fontSize: '2rem', fontWeight: 700, color: 'var(--neutral-600)' }}>
                        {ignoredBlockers.toLocaleString()}
                    </div>
                </div>
            </div>
        </div>
    );
};

export default Overview;