Skip to content

Commit

Permalink
adjustment example with Code
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasferreiralimax committed Jul 24, 2024
1 parent 27a9bdc commit be8d858
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/components/ModalInstall/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Code from '../Code';
import "./style.scss";

function ModalInstall(props: any) {
Expand All @@ -19,21 +20,21 @@ function ModalInstall(props: any) {
</button>
<div className="modal-content">
<h2>Install</h2>
<code>npm install --save react-techs-logos</code>
<Code language="shell">npm install --save react-techs-logos</Code>
<h2>Usage</h2>
<code>import ReactTechsLogs from 'react-techs-logos'</code>
<br />
<code>{`<ReactTechsLogos name="facebook" />`}</code>
<h2 className="title">Hidden Label</h2>
<code>{`<ReactTechsLogos name="facebook" hiddenLabel />`}</code>
<h2 className="title">List of techs filtered</h2>
<code>
<Code language="jsx">{`import ReactTechsLogs from 'react-techs-logos'
<ReactTechsLogos name="facebook" />`}</Code>
<h2 className="title">hiddenLabel</h2>
<Code language="jsx">{`<ReactTechsLogos name="facebook" hiddenLabel />`}</Code>
<h2 className="title">List</h2>
<Code language="jsx">
{`<ReactTechsLogos list={['vue', 'react', 'angular', 'ember']} />`}
</code>
<h2 className="title">List of techs hiddenLogos</h2>
<code>
</Code>
<h2 className="title">hiddenLogos</h2>
<Code language="jsx">
{`<ReactTechsLogos hiddenLogos={['android', 'apple', 'vue', 'react', 'angular', 'ember']} />`}
</code>
</Code>
</div>
</div>
);
Expand Down
2 changes: 2 additions & 0 deletions src/components/ModalInstall/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
margin-bottom: 0;
}
code {
padding: 1rem;
background: #fff;
color: #000;
white-space: pre;
}
}

Expand Down

0 comments on commit be8d858

Please sign in to comment.