Skip to content

Commit

Permalink
Fix Home page card heights (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
swirle13 committed Nov 15, 2023
1 parent dcdc25b commit 7b6aef5
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,20 @@ export default function Home({ t }): JSX.Element {
<Row xs={1} md={2} lg={3} className="g-4 p-3">
{t("home.linkedPages").map((_, idx) => (
<Col key={idx}>
<Card>
<Card className="h-100">
<Card.Img variant="top" src="" />
<Card.Body>
<Card.Title>{_.name}</Card.Title>
<Card.Text>{_.desc}</Card.Text>
<Row className='self-end m-1'>
<Button variant="secondary" href={_.link} className='align-bottom'>
<Col id="horizontalCardTextCol" className="px-0 d-flex">
<Row id="horizontalCardTextRow" className="g-0 flex-grow-1 d-flex" /* xs={1} */>
<Card.Body>
<Card.Title>{_.name}</Card.Title>
<Card.Text>{_.desc}</Card.Text>
</Card.Body>
<Button variant="secondary" className='align-self-end pt-auto m-3 flex-shrink-1'
href={_.link}>
{_.btn}
</Button>
</Row>
</Card.Body>
</Col>
</Card>
</Col>
))}
Expand Down

0 comments on commit 7b6aef5

Please sign in to comment.