Skip to content

Commit

Permalink
Update title styles in AtmosWorkflow component
Browse files Browse the repository at this point in the history
  • Loading branch information
milldr committed Sep 19, 2024
1 parent 6553a23 commit a990b36
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/AtmosWorkflow/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// AtmosWorkflow.tsx
// index.tsx

import React, { useEffect, useState } from 'react';
import CodeBlock from '@theme/CodeBlock';
Expand Down Expand Up @@ -39,17 +39,19 @@ export default function AtmosWorkflow({ workflow, stack = '', fileName }: AtmosW
<code>{fullFilePath}</code> file:
</Note>
{workflowData?.description && (
<p>
<h4 className=".workflow-title">
{workflowData.description}
</p>
</h4>
)}
<Steps>
<ul>
{workflowData?.steps.length ? (
workflowData.steps.map((step, index) => (
<li key={index}>
{step.type === 'title' ? (
<p>{step.content}</p>
<p className=".workflow-title">
{step.content}
</p>
) : (
<CodeBlock language="bash">{step.content}</CodeBlock>
)}
Expand Down
6 changes: 6 additions & 0 deletions src/components/AtmosWorkflow/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* styles.css */

.workflow-title {
font-size: 1.25em;
color: #2c3e50;
}

0 comments on commit a990b36

Please sign in to comment.