strip
This commit is contained in:
parent
d692200d4f
commit
3fb6e228c6
1 changed files with 14 additions and 12 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
import { Container } from '@/components/ui/Container' // Adjust path as needed
|
||||||
|
|
||||||
type Stat = {
|
type Stat = {
|
||||||
value: string
|
value: string
|
||||||
|
|
@ -13,10 +14,9 @@ export function StatsStripBlock({ stats }: StatsStripProps) {
|
||||||
if (!Array.isArray(stats) || stats.length === 0) return null
|
if (!Array.isArray(stats) || stats.length === 0) return null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div className="border-b border-foreground/8">
|
||||||
className="grid border-b border-foreground/8"
|
<Container className="px-0">
|
||||||
style={{ gridTemplateColumns: `repeat(${stats.length}, 1fr)` }}
|
<div className="grid" style={{ gridTemplateColumns: `repeat(${stats.length}, 1fr)` }}>
|
||||||
>
|
|
||||||
{stats.map((stat, i) => (
|
{stats.map((stat, i) => (
|
||||||
<div
|
<div
|
||||||
key={i}
|
key={i}
|
||||||
|
|
@ -27,5 +27,7 @@ export function StatsStripBlock({ stats }: StatsStripProps) {
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
</Container>
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue