File tree Expand file tree Collapse file tree 5 files changed +40
-56
lines changed Expand file tree Collapse file tree 5 files changed +40
-56
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
import pkg from ' ../../package.json' ;
3
- import HelloWorld from ' ./components/HelloWorld .vue'
3
+ import Title from ' ./components/Title .vue'
4
4
import VueTechsLogos from ' vue-techs-logos'
5
5
import DarkModeVue from ' darkmode-vue'
6
6
@@ -12,7 +12,7 @@ const appVersion: string = pkg.version;
12
12
<DarkModeVue class =" darkmode-button" :hiddenLabel =" true" />
13
13
<img alt =" Vue logo" class =" logo" src =" ./assets/logo.svg" width =" 125" height =" 125" />
14
14
<div class =" wrapper" >
15
- <HelloWorld :msg =" `vue-techs-logos@${appVersion}`" />
15
+ <Title :title =" `vue-techs-logos@${appVersion}`" />
16
16
<div class =" code-content" >
17
17
<div >
18
18
<h1 >Install</h1 >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ <script setup lang="ts">
2
+ defineProps <{
3
+ title: string
4
+ }>()
5
+ </script >
6
+
7
+ <template >
8
+ <div class =" title" >
9
+ <h1 class =" green" >{{ title }}</h1 >
10
+ </div >
11
+ </template >
12
+
13
+ <style scoped>
14
+ h1 {
15
+ font-size : 2rem ;
16
+ top : -10px ;
17
+ text-align : center ;
18
+ }
19
+
20
+ @media (min-width : 1024px ) {
21
+ h1 {
22
+ font-weight : 500 ;
23
+ font-size : 2.8rem ;
24
+ text-align : left ;
25
+ }
26
+ }
27
+ </style >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { describe , it , expect } from 'vitest'
2
+
3
+ import { mount } from '@vue/test-utils'
4
+ import Title from '../Title.vue'
5
+
6
+ describe ( 'Title' , ( ) => {
7
+ it ( 'renders properly' , ( ) => {
8
+ const wrapper = mount ( Title , { props : { title : 'VueTechsLogos' } } )
9
+ expect ( wrapper . text ( ) ) . toContain ( 'VueTechsLogos' )
10
+ } )
11
+ } )
You can’t perform that action at this time.
0 commit comments