2021-11-11 17:52:50 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
// This starter template is using Vue 3 <script setup> SFCs
|
|
|
|
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
|
|
|
|
import HelloWorld from './components/HelloWorld.vue'
|
|
|
|
</script>
|
|
|
|
|
2020-08-16 20:42:52 +08:00
|
|
|
<template>
|
|
|
|
<div class="logo-box">
|
2021-12-11 10:59:38 +08:00
|
|
|
<img style="height:140px;" src="./assets/electron.png" alt="Electron logo">
|
2021-11-05 16:52:09 +08:00
|
|
|
<span/>
|
2021-12-11 10:59:38 +08:00
|
|
|
<img style="height:140px;" alt="Vite logo" src="./assets/vite.svg" />
|
2021-11-05 16:52:09 +08:00
|
|
|
<span/>
|
2021-12-11 10:59:38 +08:00
|
|
|
<img style="height:140px;" alt="Vue logo" src="./assets/vue.png" />
|
2020-08-16 20:42:52 +08:00
|
|
|
</div>
|
2021-11-11 17:52:50 +08:00
|
|
|
<HelloWorld msg="Hello Vue 3 + TypeScript + Vite" />
|
2021-12-10 17:55:22 +08:00
|
|
|
<div class="static-public">
|
|
|
|
Place static files into the <code>src/renderer/public</code> folder
|
|
|
|
<img style="width:90px;" :src="'./images/node.png'" />
|
|
|
|
</div>
|
2020-08-16 20:42:52 +08:00
|
|
|
</template>
|
|
|
|
|
2021-11-11 17:52:50 +08:00
|
|
|
<style>
|
|
|
|
#app {
|
|
|
|
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
text-align: center;
|
|
|
|
color: #2c3e50;
|
|
|
|
margin-top: 60px;
|
2020-08-16 20:42:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.logo-box {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2021-11-05 16:52:09 +08:00
|
|
|
|
|
|
|
.logo-box span {
|
|
|
|
width: 74px;
|
|
|
|
}
|
2021-12-10 17:55:22 +08:00
|
|
|
|
|
|
|
.static-public {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.static-public code {
|
|
|
|
background-color: #eee;
|
|
|
|
padding: 2px 4px;
|
|
|
|
margin: 0 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
color: #304455;
|
|
|
|
}
|
2020-08-16 20:42:52 +08:00
|
|
|
</style>
|