Skip to content

Commit

Permalink
Create AppGuides.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvianen committed Aug 25, 2024
1 parent 50ae6ad commit f44df8e
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions src/components/AppGuides.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
const TWBS_DOCS_URL = "https://getbootstrap.com/docs/5.3";

const GUIDES = [
{
url: `${TWBS_DOCS_URL}/getting-started/introduction/`,
title: "Stylescape quick start guide",
},
{
url: `${TWBS_DOCS_URL}/getting-started/webpack/`,
title: "Stylescape Webpack guide",
},
{
url: `${TWBS_DOCS_URL}/getting-started/parcel/`,
title: "Stylescape Parcel guide",
},
{
url: `${TWBS_DOCS_URL}/getting-started/vite/`,
title: "Stylescape Vite guide",
},
{
url: `${TWBS_DOCS_URL}/getting-started/contribute/`,
title: "Contributing to Stylescape",
},
];

const AppGuides: React.FC = () => {
return (
<>
<h2>Guides</h2>
<p>
Read more detailed instructions and documentation on using or
contributing to Stylescape.
</p>
{GUIDES.map((guide) => {
return (
<li key={guide.title} className="d-flex align-items-center mb-2">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
fill="currentColor"
className="bi bi-arrow-right-circle-fill me-2"
viewBox="0 0 16 16"
>
<path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0M4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5z" />
</svg>
<a href={guide.url} target="_blank" rel="noopener">
{guide.title}
</a>
</li>
);
})}
</>
);
};

export default AppGuides;

0 comments on commit f44df8e

Please sign in to comment.