feat: responsive card pages
This commit is contained in:
@@ -2,39 +2,41 @@ import Button from '../../components/Button/Button';
|
||||
import Card from '../../components/Card/Card';
|
||||
import './HomePage.css';
|
||||
|
||||
function HomePage({
|
||||
dspCount,
|
||||
connectedCount,
|
||||
onAddDSP,
|
||||
}: {
|
||||
interface HomePageProps {
|
||||
dspCount: number;
|
||||
connectedCount: number;
|
||||
onAddDSP: () => void;
|
||||
}) {
|
||||
}
|
||||
|
||||
function HomePage({ dspCount, connectedCount, onAddDSP }: HomePageProps) {
|
||||
return (
|
||||
<Card>
|
||||
<dl className="specs">
|
||||
<div className="spec">
|
||||
<dt>Connected</dt>
|
||||
<dd>
|
||||
{connectedCount} DSP{connectedCount !== 1 ? 's' : ''}
|
||||
</dd>
|
||||
</div>
|
||||
<div className="home-page">
|
||||
<Card>
|
||||
<div className="card-content">
|
||||
<dl className="specs">
|
||||
<div className="spec">
|
||||
<dt>Connected</dt>
|
||||
<dd>
|
||||
{connectedCount} DSP{connectedCount !== 1 ? 's' : ''}
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
<div className="spec">
|
||||
<dt>Devices</dt>
|
||||
<dd>
|
||||
{dspCount} DSP{dspCount !== 1 ? 's' : ''} configured
|
||||
</dd>
|
||||
</div>
|
||||
</dl>
|
||||
<div className="spec">
|
||||
<dt>Devices</dt>
|
||||
<dd>
|
||||
{dspCount} DSP{dspCount !== 1 ? 's' : ''} configured
|
||||
</dd>
|
||||
</div>
|
||||
</dl>
|
||||
|
||||
<div className="panel-actions">
|
||||
<Button variant="primary" onClick={onAddDSP}>
|
||||
Add a DSP
|
||||
</Button>
|
||||
</div>
|
||||
</Card>
|
||||
<div className="home-panel-actions">
|
||||
<Button variant="primary" onClick={onAddDSP}>
|
||||
Add a DSP
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user