Skip to content

Commit

Permalink
fixup! Add Showcase to Splash
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Jun 10, 2024
1 parent 122443b commit 7c2d301
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions static-site/src/components/splash/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import Title from "./title";
import * as Styles from "./styles";
import { SmallSpacer, BigSpacer, HugeSpacer, FlexCenter, Line } from "../../layouts/generalComponents";
import Footer from "../Footer";
import { Showcase } from "../ListResources/Showcase";
import { CardImgWrapper, CardOuter, Showcase } from "../Showcase";
import { cards } from "./showcase.yaml";
import { createGroupCards } from "./groupCards";
import { CardInner, CardTitle } from '../Cards/styles';

const Section = ({id, title, abstract, cards, buttonText, buttonLink}) => (
<div id={id} className="col-md-6" style={{paddingBottom: "40px"}}>
Expand Down Expand Up @@ -78,7 +79,7 @@ const Splash = () => {
</Styles.H1>

<BigSpacer/>
<Showcase cards={cards} />
<Showcase cards={cards} CardComponent={UrlShowcaseTile} />

<BigSpacer/>

Expand Down Expand Up @@ -216,3 +217,19 @@ const Splash = () => {
}

export default Splash;


const UrlShowcaseTile = ({ card }) => {
return (
<CardOuter>
<CardInner>
<a href={card.url}>
<CardTitle $squashed>
{card.name}
</CardTitle>
<CardImgWrapper filename={card.img}/>
</a>
</CardInner>
</CardOuter>
)
}

0 comments on commit 7c2d301

Please sign in to comment.