FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
proxytechsupport-nextjs/components/Stats.tsx at main · techdeepcode/proxytechsupport-nextjs · GitHub
techdeepcode
/
proxytechsupport-nextjs
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
proxytechsupport-nextjs
/
components
/
Stats.tsx
Copy path
More file actions
More file actions
Latest commit
History
History
History
85 lines (82 loc) · 2.54 KB
Breadcrumbs
proxytechsupport-nextjs
/
components
/
Stats.tsx
Copy path
File metadata and controls
85 lines (82 loc) · 2.54 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
77
78
79
80
81
82
83
84
85
import
{
stats
}
from
'@/data/stats'
;
const
PAGE_BG
=
'var(--pts-dark)'
;
const
BAR_BG
=
'linear-gradient(180deg, var(--pts-surface-dark-raised) 0%, var(--pts-dark) 100%)'
;
const
TEAL
=
'var(--pts-accent)'
;
const
CAPTION
=
'rgba(255, 255, 255, 0.72)'
;
export
default
function
Stats
(
)
{
return
(
<
section
style
=
{
{
background
:
PAGE_BG
,
padding
:
'4rem 1rem'
,
borderTop
:
'1px solid rgba(255, 255, 255, 0.06)'
,
borderBottom
:
'1px solid rgba(255, 255, 255, 0.06)'
,
}
}
>
<
div
style
=
{
{
width
:
'100%'
,
maxWidth
:
'var(--pts-content-max)'
,
margin
:
'0 auto'
}
}
>
<
style
>
{
`
.stats-bar {
display: grid;
width: 100%;
gap: 0;
text-align: center;
background:
${
BAR_BG
}
;
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.16);
box-shadow:
0 12px 40px rgba(0, 0, 0, 0.35),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
overflow: hidden;
grid-template-columns: 1fr;
}
.stats-bar-cell {
padding: 1.75rem 1.25rem;
}
.stats-bar-cell + .stats-bar-cell {
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 1024px) {
.stats-bar {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stats-bar-cell + .stats-bar-cell {
border-top: none;
border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.stats-bar-cell {
padding: 2.25rem 1.5rem;
}
}
.stats-num {
font-size: clamp(1.85rem, 3.5vw, 2.75rem);
font-weight: 800;
color:
${
TEAL
}
;
line-height: 1.1;
margin-bottom: 0.65rem;
letter-spacing: -0.02em;
}
.stats-caption {
font-size: 0.875rem;
color:
${
CAPTION
}
;
line-height: 1.5;
max-width: 280px;
margin: 0 auto;
}
@media (min-width: 1024px) {
.stats-caption {
max-width: none;
}
}
`
}
</
style
>
<
div
className
=
"stats-bar"
>
{
stats
.
map
(
(
stat
)
=>
(
<
div
key
=
{
stat
.
number
}
className
=
"stats-bar-cell"
>
<
div
className
=
"stats-num"
>
{
stat
.
number
}
</
div
>
<
div
className
=
"stats-caption"
>
{
stat
.
label
}
</
div
>
</
div
>
)
)
}
</
div
>
</
div
>
</
section
>
)
;
}
Back
|
FazBrowse Home
|
New Git URL