feat(design): بازگرداندن ریتم تناوب پسزمینهٔ بخشها — هر صفحه با بخش سیاه شروع و سیاه/خاکستری یکیدرمیان ادامه مییابد (پراپ tone برای بخشهای مشترک چندصفحهای)
This commit is contained in:
@@ -6,7 +6,7 @@ import { useFieldSaver } from '../../admin/AdminContext'
|
||||
import { InlineEdit } from '../admin/InlineEdit'
|
||||
import { AddItemButton, EditableItem } from '../../admin/Editable'
|
||||
|
||||
export function Services() {
|
||||
export function Services({ tone = 'black' }: { tone?: 'black' | 'gray' } = {}) {
|
||||
const { services } = useSite()
|
||||
const heading = useSectionHeading('services')
|
||||
const save = useFieldSaver()
|
||||
@@ -18,7 +18,7 @@ export function Services() {
|
||||
})
|
||||
|
||||
return (
|
||||
<section className="bg-ink py-24 lg:py-32" aria-labelledby="services-title">
|
||||
<section className={`${tone === 'black' ? 'bg-char' : 'bg-ink'} py-24 lg:py-32`} aria-labelledby="services-title">
|
||||
<div className="mx-auto max-w-site px-6 lg:px-10">
|
||||
<Reveal className="max-w-2xl text-start">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user