forked from cerc-io/snowballtools-base
🔧 chore: add render component
This commit is contained in:
parent
6c42a22972
commit
8f0c39022d
@ -26,6 +26,7 @@ import {
|
|||||||
import { renderInputs } from './renders/input';
|
import { renderInputs } from './renders/input';
|
||||||
import { RADIO_OPTIONS } from './renders/radio';
|
import { RADIO_OPTIONS } from './renders/radio';
|
||||||
import { SEGMENTED_CONTROLS_OPTIONS } from './renders/segmentedControls';
|
import { SEGMENTED_CONTROLS_OPTIONS } from './renders/segmentedControls';
|
||||||
|
import { renderHorizontalSteps, renderVerticalSteps } from './renders/steps';
|
||||||
import {
|
import {
|
||||||
renderTabWithBadges,
|
renderTabWithBadges,
|
||||||
renderTabs,
|
renderTabs,
|
||||||
@ -56,6 +57,17 @@ const Page: React.FC = () => {
|
|||||||
|
|
||||||
<div className="w-full h border border-gray-200 px-20 my-10" />
|
<div className="w-full h border border-gray-200 px-20 my-10" />
|
||||||
|
|
||||||
|
{/* Steps */}
|
||||||
|
<div className="flex flex-col gap-10 items-center justify-between">
|
||||||
|
<div className="flex flex-col gap-10 items-center justify-between">
|
||||||
|
<h1 className="text-2xl font-bold">Steps</h1>
|
||||||
|
<div className="flex flex-col gap-10 items-center justify-center">
|
||||||
|
{renderVerticalSteps()}
|
||||||
|
{renderHorizontalSteps()}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Tag */}
|
{/* Tag */}
|
||||||
<div className="flex flex-col gap-10 items-center justify-between">
|
<div className="flex flex-col gap-10 items-center justify-between">
|
||||||
<div className="flex flex-col gap-10 items-center justify-between">
|
<div className="flex flex-col gap-10 items-center justify-between">
|
||||||
|
41
packages/frontend/src/pages/components/renders/steps.tsx
Normal file
41
packages/frontend/src/pages/components/renders/steps.tsx
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { Steps } from 'components/shared/Steps';
|
||||||
|
|
||||||
|
export const renderVerticalSteps = () => {
|
||||||
|
return (
|
||||||
|
<Steps
|
||||||
|
currentIndex={1}
|
||||||
|
steps={[
|
||||||
|
{
|
||||||
|
label: 'Create repository',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Deploy',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: `What's next?`,
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const renderHorizontalSteps = () => {
|
||||||
|
return (
|
||||||
|
<Steps
|
||||||
|
orientation="horizontal"
|
||||||
|
currentIndex={1}
|
||||||
|
steps={[
|
||||||
|
{
|
||||||
|
label: 'Create repository',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Deploy',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: `What's next?`,
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user