Skip to content

Commit

Permalink
adjustment code with new component for highlight.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasferreiralimax committed Jul 23, 2024
1 parent 9fdc7a7 commit 543ab08
Showing 1 changed file with 17 additions and 31 deletions.
48 changes: 17 additions & 31 deletions src/components/ModalInstall.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup>
// import { computed } from 'vue';
import Code from './Code.vue'
const props = defineProps(['active', 'closeModal'])
</script>

Expand All @@ -13,27 +13,25 @@ const props = defineProps(['active', 'closeModal'])
</button>
<div class="modal-content">
<h2>Install</h2>
<code class="code-wrapper">
{{ `npm run install vue-techs-logos` }}
</code>
<Code language="shell">npm run install vue-techs-logos</Code>
<h2>Usage</h2>
<code class="code-wrapper">
{{ `import VueTechsLogos from 'vue-techs-logos'
<Code language="jsx">
{{ `import VueTechsLogos from 'vue-techs-logos'

<VueTechsLogos name="vue" />` }}
</code>
<h2>Hidden label</h2>
<code class="code-wrapper">
{{ `<VueTechsLogos name="vue" :hiddenLabel="true" />` }}
</code>
<h2>List of technologies limited</h2>
<code class="code-wrapper">
{{ `<VueTechsLogos :list="['vue','JavaScript', 'react', 'angular']" />` }}
</code>
<h2>List of technologies full with hiddenLogos</h2>
<code class="code-wrapper">
{{ `<VueTechsLogos :hiddenLogos="['vue','javascript', 'react', 'angular', 'android']" />` }}
</code>
</Code>
<h2>hiddenLabel</h2>
<Code language="jsx">
{{ `<VueTechsLogos name="vue" :hiddenLabel="true" />` }}
</Code>
<h2>List</h2>
<Code language="jsx">
{{ `<VueTechsLogos :list="['vue','JavaScript', 'react', 'angular']" />` }}
</Code>
<h2>hiddenLogos</h2>
<Code language="jsx">
{{ `<VueTechsLogos :hiddenLogos="['vue','javascript', 'react', 'angular', 'android']" />` }}
</Code>
</div>
</div>
</template>
Expand Down Expand Up @@ -73,18 +71,6 @@ const props = defineProps(['active', 'closeModal'])
code:last-of-type {
margin-bottom: 0;
}
.code-wrapper {
background-color: #fff;
color: #000;
}
}
.darkmode {
.modal-content .code-wrapper {
background-color: #000;
color: #fff;
}
}
.modal-button {
Expand Down

0 comments on commit 543ab08

Please sign in to comment.