Skip to content

Commit

Permalink
Merge pull request #11 from JonasGLund99/frontend
Browse files Browse the repository at this point in the history
Added a css file that a component imports
  • Loading branch information
AsbjoernJC authored Mar 8, 2024
2 parents 2325b4b + cf187b9 commit 840ab67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 36 deletions.
11 changes: 0 additions & 11 deletions TimeTrace/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@ import HelloWorld from './components/HelloWorld.vue'
</script>

<template>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src="/vite.svg" class="logo" alt="Vite logo" />
</a>
<a href="https://vuejs.org/" target="_blank">
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
</a>
<h1 class="text-3xl font-bold underline">
</h1>

</div>
<HelloWorld msg="Vite + Vue" />
</template>

Expand Down
3 changes: 3 additions & 0 deletions TimeTrace/src/components/HelloWorld.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.title {
font-size: 60px;
}
27 changes: 2 additions & 25 deletions TimeTrace/src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,12 @@ const count = ref(0)
</script>

<template>
<h1 class="text-3xl hover:bg-sky-700 font-bold underline">
<h1 class="text-3xl bg-sky-700 title">
Hello world!
</h1>
<h1>{{ msg }}</h1>

<div class="card">
<button type="button" @click="count++">count is {{ count }}</button>
<p>
Edit
<code>components/HelloWorld.vue</code> to test HMR
</p>
</div>

<p>
Check out
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
>create-vue</a
>, the official Vue + Vite starter
</p>
<p>
Install
<a href="https://github.com/vuejs/language-tools" target="_blank">Volar</a>
in your IDE for a better DX
</p>
<p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
</template>

<style scoped>
.read-the-docs {
color: #888;
}
@import './HelloWorld.css';
</style>

0 comments on commit 840ab67

Please sign in to comment.