added all components and assembeled an okayish looking website
This commit is contained in:
parent
33621b1556
commit
d5e25dac3e
44 changed files with 38970 additions and 1587 deletions
22
src/components/info-card/InfoCard.tsx
Normal file
22
src/components/info-card/InfoCard.tsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
import React from "react";
|
||||
import InfoCardProps from "../../types/InfoCardProps";
|
||||
|
||||
export default function InfoCard(props: {style?: any, className?: string, info: InfoCardProps}) {
|
||||
return (
|
||||
<div style={props.style} className={props.className}>
|
||||
<div style={{maxWidth: "100vw"}}>
|
||||
<h3>{props.info.title}</h3>
|
||||
<p>
|
||||
{props.info.description}
|
||||
</p>
|
||||
<div>
|
||||
<h4>{props.info.listTitle}</h4>
|
||||
<div className={"row"} style={{color: "green", fontFamily: "monospace"}}>
|
||||
{props.info.list.map(s => <p className={"col-6 "+(props.info.listClassName || "col-md-4")}>{s}</p>)}
|
||||
</div>
|
||||
</div>
|
||||
{props.info.link != null && <a href={props.info.link}>{props.info.linkTitle || "Relevant Link"}</a>}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue