Skip to content

Commit

Permalink
adjustment title and remove HelloWorld component
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasferreiralimax committed Feb 7, 2024
1 parent be7a3b8 commit 22bf237
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 56 deletions.
4 changes: 2 additions & 2 deletions docs/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import pkg from '../../package.json';
import HelloWorld from './components/HelloWorld.vue'
import Title from './components/Title.vue'
import VueTechsLogos from 'vue-techs-logos'
import DarkModeVue from 'darkmode-vue'
Expand All @@ -12,7 +12,7 @@ const appVersion: string = pkg.version;
<DarkModeVue class="darkmode-button" :hiddenLabel="true"/>
<img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
<div class="wrapper">
<HelloWorld :msg="`vue-techs-logos@${appVersion}`" />
<Title :title="`vue-techs-logos@${appVersion}`" />
<div class="code-content">
<div>
<h1>Install</h1>
Expand Down
43 changes: 0 additions & 43 deletions docs/src/components/HelloWorld.vue

This file was deleted.

27 changes: 27 additions & 0 deletions docs/src/components/Title.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<script setup lang="ts">
defineProps<{
title: string
}>()
</script>

<template>
<div class="title">
<h1 class="green">{{ title }}</h1>
</div>
</template>

<style scoped>
h1 {
font-size: 2rem;
top: -10px;
text-align: center;
}
@media (min-width: 1024px) {
h1 {
font-weight: 500;
font-size: 2.8rem;
text-align: left;
}
}
</style>
11 changes: 0 additions & 11 deletions docs/src/components/__tests__/HelloWorld.spec.ts

This file was deleted.

11 changes: 11 additions & 0 deletions docs/src/components/__tests__/Title.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { describe, it, expect } from 'vitest'

import { mount } from '@vue/test-utils'
import Title from '../Title.vue'

describe('Title', () => {
it('renders properly', () => {
const wrapper = mount(Title, { props: { title: 'VueTechsLogos' } })
expect(wrapper.text()).toContain('VueTechsLogos')
})
})

0 comments on commit 22bf237

Please sign in to comment.