-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
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,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; |