-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26de8ea
commit 232c53b
Showing
16 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import { useState, useEffect } from "react"; | ||
import Markdown from "markdown-to-jsx"; | ||
|
||
import MarkDownDoc from "../documents/team.md"; | ||
|
||
import Blockquote from "../components/Blockquote"; | ||
|
||
const ProductShowcasePage = () => { | ||
const [mddText, setMddText] = useState(""); | ||
|
||
// Fetch Terms of Use | ||
useEffect(() => { | ||
fetch(MarkDownDoc) | ||
.then((res) => res.text()) | ||
.then((text) => setMddText(text)); | ||
}); | ||
return ( | ||
<> | ||
<section | ||
style={{ | ||
backgroundImage: "url('/imgs/Soar_AUT_2.png')", | ||
backgroundSize: "cover", | ||
backgroundPosition: "center 0px", | ||
}} | ||
className="relative flex items-center justify-center h-64 bg-gray-100 bg-no-repeat bg-cover bg-center" | ||
></section> | ||
<section className="container px-6 py-8 mx-auto lg:py-16"> | ||
<div> | ||
<Markdown | ||
options={{ | ||
overrides: { | ||
h1: { | ||
props: { | ||
className: | ||
"text-3xl font-medium text-gray-800 md:text-2xl lg:text-3xl", | ||
}, | ||
}, | ||
h2: { | ||
props: { | ||
className: | ||
"text-2xl font-semibold text-gray-700 capitalize", | ||
}, | ||
}, | ||
h3: { | ||
props: { | ||
className: "text-xl font-semibold text-gray-700 capitalize", | ||
}, | ||
}, | ||
ul: { | ||
props: { | ||
className: "list-disc list-outside ms-8", | ||
}, | ||
}, | ||
ol: { | ||
props: { | ||
className: "list-decimal list-outside ms-8", | ||
}, | ||
}, | ||
blockquote: { | ||
component: Blockquote, | ||
}, | ||
a: { | ||
props: { | ||
className: "text-blue-500 underline", | ||
target: "_blank", | ||
}, | ||
}, | ||
}, | ||
}} | ||
children={mddText} | ||
/> | ||
</div> | ||
</section> | ||
</> | ||
); | ||
}; | ||
export default ProductShowcasePage; |