/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/src/components/about/OurValues.tsx
139 строк
5 KB
Brijesh Bittu
[docs-infra] Re-apply changes from previous revert (#48243)
13 апр 2026, 12:44
Не верифицирован
13 апр 2026, 12:44
c973a09
Код
Авторство
О чём код?
import Box from '@mui/material/Box'; import Button from '@mui/material/Button'; import Grid from '@mui/material/Grid'; import Paper from '@mui/material/Paper'; import Typography from '@mui/material/Typography'; import KeyboardArrowRightRounded from '@mui/icons-material/KeyboardArrowRightRounded'; import { Link } from '@mui/internal-core-docs/Link'; import GradientText from 'docs/src/components/typography/GradientText'; import { ROUTES } from '@mui/internal-core-docs/constants'; import Section from 'docs/src/layouts/Section'; import SectionHeadline from '@mui/internal-core-docs/SectionHeadline'; const values = [ { title: 'User-obsessed 💙', description: "We never lose sight of who we're serving and why.", lightIcon: 'url(/static/branding/about/illustrations/community-light.svg)', darkIcon: 'url(/static/branding/about/illustrations/community-dark.svg)', width: 92, height: 84, }, { title: 'Keep it simple 🚫', description: "We're so not corporate—and we like it that way.", lightIcon: 'url(/static/branding/about/illustrations/bureaucracy-light.svg)', darkIcon: 'url(/static/branding/about/illustrations/bureaucracy-dark.svg)', width: 81, height: 94, }, { title: 'Chase "better" 🌱', description: "We're driven by an unending desire to improve.", lightIcon: 'url(/static/branding/about/illustrations/better-light.svg)', darkIcon: 'url(/static/branding/about/illustrations/better-dark.svg)', width: 89, height: 89, }, { title: 'Trust and deliver together 🚀', description: 'We choose to cultivate unity as the core of achievement.', lightIcon: 'url(/static/branding/about/illustrations/trust-light.svg)', darkIcon: 'url(/static/branding/about/illustrations/trust-dark.svg)', width: 75, height: 92, }, ]; export default function OurValues() { return ( <Section cozy> <SectionHeadline overline="Our values" title={ <Typography variant="h2"> The MUI <GradientText>team pact</GradientText> </Typography> } description="The MUI team pact describes the values we embody as a company, which help guide us toward the experiences and results we aim to deliver." /> <Button component={Link} noLinkStyle href={ROUTES.handbook} endIcon={<KeyboardArrowRightRounded fontSize="small" />} variant="contained" sx={{ width: { xs: '100%', sm: 'fit-content' } }} > View our handbook </Button> <Grid container spacing={3} sx={{ mt: { xs: 1, sm: 2 } }}> {values.map(({ title, description, darkIcon, lightIcon, height, width }) => ( <Grid key={title} size={{ xs: 12, md: 3 }}> <Paper variant="outlined" sx={(theme) => ({ p: 2.5, height: '100%', display: 'flex', flexDirection: 'column', gap: 1.5, background: `${(theme.vars || theme).palette.gradients.linearSubtle}`, ...theme.applyDarkStyles({ bgcolor: 'primaryDark.900', background: `${(theme.vars || theme).palette.gradients.linearSubtle}`, borderColor: 'primaryDark.700', }), })} > <Box sx={{ height: 94 }}> <Box sx={[ { width, height, }, (theme) => ({ background: `${lightIcon}`, ...theme.applyDarkStyles({ background: `${darkIcon}`, }), }), ]} /> </Box> <Box sx={{ flexGrow: 1 }}> <Typography component="h3" variant="body2" sx={[ { fontWeight: 'semiBold', }, (theme) => ({ mb: 0.5, color: (theme.vars || theme).palette.text.primary, '&::first-letter': { color: (theme.vars || theme).palette.primary.main, }, ...theme.applyDarkStyles({ '&::first-letter': { color: (theme.vars || theme).palette.primary[400], }, }), }), ]} > {title} </Typography> <Typography variant="body2" sx={{ color: 'text.secondary' }}> {description} </Typography> </Box> </Paper> </Grid> ))} </Grid> </Section> ); }