docs(core): standalone tutorial cards in 3 columns (#15027)

This commit is contained in:
Isaac Mann 2023-02-15 21:11:24 -05:00 committed by GitHub
parent ae5d6e5c48
commit fd6f427997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -18,6 +18,10 @@ Get a pre-configured setup. Nx configures your favorite frameworks and lets you
{% /persona %}
{% /personas %}
{% cards cols="3" %}
{% persona type="react" title="Create a Standalone React app" url="/getting-started/react-standalone-tutorial" %}
A modern React setup with built-in support for Vite, ESLint, Cypress and more. Think CRA but modern, always up-to-date and scalable.
@ -42,7 +46,7 @@ A modern Node server with scaffolding for Express, Fastify or Koa. There's also
{% /persona %}
{% /personas %}
{% /cards %}
## Adopting Nx

View File

@ -21,9 +21,7 @@ export function Cards({
};
return (
<div
className={`not-prose mt-8 grid grid-cols-1 gap-6 ${gridColums[cols]}`}
>
<div className={`mt-8 grid grid-cols-1 gap-6 ${gridColums[cols]}`}>
{children}
</div>
);
@ -63,7 +61,7 @@ export function Card({
src={`https://img.youtube.com/vi/${hasYoutubeId}/default.jpg`}
/>
)}
<div className="flex flex-col p-3 pr-0">
<div className="flex flex-col p-3 pr-0 pb-0">
<a href={url} title={title} className="flex items-center font-semibold">
<span className="absolute inset-0" aria-hidden="true"></span>
{!hasYoutubeId ? iconMap[type] : null}