diff --git a/public/images/demos/Demos thumbnails 1.png b/public/images/demos/Demos thumbnails 1.png new file mode 100644 index 00000000000..ac2841680bd Binary files /dev/null and b/public/images/demos/Demos thumbnails 1.png differ diff --git a/public/images/demos/Demos thumbnails 2.png b/public/images/demos/Demos thumbnails 2.png new file mode 100644 index 00000000000..a5b86705672 Binary files /dev/null and b/public/images/demos/Demos thumbnails 2.png differ diff --git a/public/images/demos/Demos thumbnails 3.png b/public/images/demos/Demos thumbnails 3.png new file mode 100644 index 00000000000..ab5a48f2b63 Binary files /dev/null and b/public/images/demos/Demos thumbnails 3.png differ diff --git a/public/images/demos/Demos thumbnails 4.png b/public/images/demos/Demos thumbnails 4.png new file mode 100644 index 00000000000..da2a2a0a583 Binary files /dev/null and b/public/images/demos/Demos thumbnails 4.png differ diff --git a/src/components/Demos.astro b/src/components/Demos.astro new file mode 100644 index 00000000000..0cf482cfe2e --- /dev/null +++ b/src/components/Demos.astro @@ -0,0 +1,90 @@ +--- +import { Tag, Typography } from "@chainlink/blocks" +import styles from "./Demos.module.css" + +export interface Demo { + image: string + title: string + description: string + tags: string[] + href: string +} + +const demos: Demo[] = [ + { + image: "/images/demos/Demos thumbnails 1.png", + title: "Custom Data Feed", + description: + "See how you can bring your financial data onchain in a variety of different ways by creating a Net Asset Value feed, Proof of Reserve feed, or other custom data feed.", + tags: ["CRE", "DATA FEEDS"], + href: "/", + }, + { + image: "/images/demos/Demos thumbnails 2.png", + title: "Delivery vs. Payment (DvP)", + description: + "Learn how to sell a variety of assets via a Delivery vs. Payment transaction using the Chainlink Runtime Environment (CRE).", + tags: ["CRE"], + href: "/", + }, + { + image: "/images/demos/Demos thumbnails 3.png", + title: "Digital Transfer Agent (DTA)", + description: + "Learn how to invest in a variety of funds via a Digital Transfer Agent (DTA) transaction using the Chainlink Runtime Environment (CRE).", + tags: ["CRE"], + href: "/", + }, + { + image: "/images/demos/Demos thumbnails 4.png", + title: "Explore Chainlink", + description: "Explore how the Chainlink standard powers tokenization and onchain finance through", + tags: ["CRE", "CCIP", "DATA FEEDS"], + href: "/", + }, +] +--- + +
+ Demos +
+ { + demos.map((demo) => ( + +
+ {demo.title} +
+
+
+ + {demo.title} + + + {demo.description} + +
+ +
+
+ )) + } +
+
diff --git a/src/components/Demos.module.css b/src/components/Demos.module.css new file mode 100644 index 00000000000..b01d18d44ee --- /dev/null +++ b/src/components/Demos.module.css @@ -0,0 +1,95 @@ +.demosSection { + width: 100%; + display: flex; + flex-direction: column; + gap: var(--space-6x); +} + +.grid { + display: grid; + grid-template-columns: repeat(4, 1fr); + border: 1px solid var(--border); +} + +.card { + display: flex; + flex-direction: column; + padding: var(--space-6x); + overflow: hidden; + transition: box-shadow 0.2s ease; + gap: var(--space-4x); + + &:hover { + background-color: var(--muted); + } + + &:hover .footerTag { + background-color: var(--background); + } + + &:hover .footerArrow { + opacity: 1; + } +} + +.card:not(:last-child) { + border-right: 1px solid var(--border); +} + +.imageContainer { + width: 100%; + aspect-ratio: 16 / 9; + overflow: hidden; +} + +.image { + width: 100%; + height: 100%; + object-fit: cover; +} + +.body { + margin-bottom: var(--space-4x); +} +.content { + display: flex; + flex-direction: column; + gap: var(--space-4x); + flex: 1; +} + +.tags { + display: flex; + flex-wrap: wrap; + gap: var(--space-1x); +} + +.footer { + display: flex; + justify-content: space-between; + + margin-top: auto; + padding-top: var(--space-4x); +} + +.footerArrow { + opacity: 0; + display: flex; + align-items: end; +} +@media screen and (max-width: 1024px) { + .grid { + grid-template-columns: repeat(2, 1fr); + } +} + +@media screen and (max-width: 570px) { + .grid { + grid-template-columns: repeat(1, 1fr); + } + + .card:not(:last-child) { + border-bottom: 1px solid var(--border); + border-right: none; + } +} diff --git a/src/components/JourneyCards/JourneyCards.astro b/src/components/JourneyCards/JourneyCards.astro index 77735771660..db9f8a7075a 100644 --- a/src/components/JourneyCards/JourneyCards.astro +++ b/src/components/JourneyCards/JourneyCards.astro @@ -92,36 +92,39 @@ const columns = [ ] --- -
- { - columns.map((column) => ( -
-
- - {column.title} - -
- {column.items.map((item) => ( - -
- {item.title} - - {item.description} - -
- - -
- ))} -
- )) - } -
+
+ Start your Chainlink journey +
+ { + columns.map((column) => ( +
+
+ + {column.title} + +
+ {column.items.map((item) => ( + +
+ {item.title} + + {item.description} + +
+ + +
+ ))} +
+ )) + } +
+