Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 29 additions & 10 deletions src/components/JourneyCards/JourneyCards.astro
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,32 @@ const tabs = columns.map((column) => ({
badge: item.badge,
})),
}))

const rows = columns[0].items.map((_, rowIndex) => ({
items: columns.map((col) => col.items[rowIndex]),
}))
---

<section>
<section class="desktop">
<Typography variant="h4" className="section-title">Start your Chainlink journey</Typography>
<div class="journey-cards">
{
columns.map((column) => (
<div class="journey-column">

<div class="journey-rows">
<div class="journey-row journey-row--header">
{
columns.map((column) => (
<header class="column-header">
<Typography variant="h5" className="column-title">
{column.title}
</Typography>
</header>
{column.items.map((item) => (
))
}
</div>
{
rows.map((row, i) => (
<div class="journey-row">
{row.items.map((item, j) => (
<a href={item.href} class="journey-card">
<div class="card-content">
<Typography variant="body-semi">{item.title}</Typography>
Expand Down Expand Up @@ -152,18 +163,23 @@ const tabs = columns.map((column) => ({
display: block;
}

.journey-cards {
.journey-rows {
display: grid;
gap: 0;
}

.journey-row {
display: grid;
grid-template-columns: repeat(3, 1fr);
}

.journey-column {
display: flex;
flex-direction: column;
.journey-row:not(.journey-row--header) > * {
border-left: 1px solid var(--border);
}

.journey-card {
display: grid;
grid-template-rows: auto 1fr auto;
gap: var(--space-6x);
padding: var(--space-6x);
}
Expand All @@ -188,7 +204,10 @@ const tabs = columns.map((column) => ({
display: flex;
flex-direction: column;
gap: var(--space-2x);
margin-bottom: var(--space-8x);
}

.card-content > :last-child {
min-height: 3em;
}

.journey-footer {
Expand Down
Loading