Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
46 lines
1.4 KiB
TypeScript
46 lines
1.4 KiB
TypeScript
import AspectRatio from '@mui/joy/AspectRatio';
|
|
import Card from '@mui/joy/Card';
|
|
import CardContent from '@mui/joy/CardContent';
|
|
import CardOverflow from '@mui/joy/CardOverflow';
|
|
import Typography from '@mui/joy/Typography';
|
|
|
|
export default function RowCard() {
|
|
return (
|
|
<Card orientation="horizontal" variant="outlined" sx={{ width: 260 }}>
|
|
<CardOverflow>
|
|
<AspectRatio ratio="1" sx={{ width: 90 }}>
|
|
<img
|
|
src="https://images.unsplash.com/photo-1507833423370-a126b89d394b?auto=format&fit=crop&w=90"
|
|
srcSet="https://images.unsplash.com/photo-1507833423370-a126b89d394b?auto=format&fit=crop&w=90&dpr=2 2x"
|
|
loading="lazy"
|
|
alt=""
|
|
/>
|
|
</AspectRatio>
|
|
</CardOverflow>
|
|
<CardContent>
|
|
<Typography textColor="success.plainColor" sx={{ fontWeight: 'md' }}>
|
|
Yosemite Park
|
|
</Typography>
|
|
<Typography level="body-sm">California, USA</Typography>
|
|
</CardContent>
|
|
<CardOverflow
|
|
variant="soft"
|
|
color="primary"
|
|
sx={{
|
|
px: 0.2,
|
|
writingMode: 'vertical-rl',
|
|
justifyContent: 'center',
|
|
fontSize: 'xs',
|
|
fontWeight: 'xl',
|
|
letterSpacing: '1px',
|
|
textTransform: 'uppercase',
|
|
borderLeft: '1px solid',
|
|
borderColor: 'divider',
|
|
}}
|
|
>
|
|
Ticket
|
|
</CardOverflow>
|
|
</Card>
|
|
);
|
|
}
|