1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-27 13:49:10 +02:00

docs: initial spike for the component

This commit is contained in:
Thomas Heartman 2024-01-26 22:23:01 +04:00
parent b2c127c058
commit 78f3ef9a1a
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78
2 changed files with 93 additions and 0 deletions

View File

@ -0,0 +1,55 @@
import React from 'react';
const LinkBox = ({ level, header, description }) => {
return (
<article>
<div>
<span className='level'>{level}</span>
<h3>{header}</h3>
<p>{description}</p>
</div>
<button>Start learning</button>
</article>
);
};
const links = [
{
level: 'Beginners',
header: 'Foundational',
description:
'For all roles working with Unleash - Developers, Product owners, Leaders',
},
{
level: 'Advanced',
header: 'Advanced for Developers',
description:
'For Developers only, after Foundational content has been reviewed',
},
{
level: 'Advanced',
header: 'Managing Unleash for DevOps/Admins',
description:
'For DevOps, Platform leads and Admins only after Foundational content has been reviewed',
},
];
const Component = () => {
return (
<div className='links-container'>
<ol className='links-wrapper'>
{links.map(({ level, header, description }) => (
<li>
<LinkBox
level={level}
header={header}
description={description}
/>
</li>
))}
</ol>
</div>
);
};
export default Component;

View File

@ -211,6 +211,44 @@ li.theme-doc-sidebar-item-category-level-1 > div::before {
/* end video content container */
/* begin certification links */
.links-container {
container-type: inline-size;
ol {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-flow: row;
width: 100%;
justify-content: space-between;
}
li {
margin: 0;
padding: 0;
width: 30%;
}
article {
aspect-ratio: 1;
border-radius: var(--ifm-global-radius);
background: var(--ifm-color-primary-contrast-background);
padding: calc(var(--ifm-spacing-vertical) * 2);
display: grid;
grid-template-rows: auto min-content;
.level {
border: 2px solid var(--unleash-color-purple);
border-radius: 60px;
padding-inline: calc(var(--ifm-spacing-horizontal) * .5);
}
}
}
/* end certification links */
/* docusaurus-plugin-openapi-docs styling
Taken from