-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
67 lines (62 loc) · 1.73 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/tauri.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Master Lee</title>
<style>
.titlebar {
height: 30px;
background: #e6ecec;
user-select: none;
display: flex;
justify-content: flex-end;
position: fixed;
top: 0;
left: 0;
right: 0;
}
.titlebar-button {
display: inline-flex;
justify-content: center;
align-items: center;
width: 30px;
height: 30px;
}
.titlebar-button:hover {
background: #5bbec3;
}
</style>
</head>
<!-- <div data-tauri-drag-region class="titlebar">
<div class="titlebar-button" id="titlebar-minimize">
<img src="/window-minimize.svg" alt="minimize" />
</div>
<div class="titlebar-button" id="titlebar-maximize">
<img src="/window-maximize.svg" alt="maximize" />
</div>
<div class="titlebar-button" id="titlebar-close">
<img src="/window-close.svg" alt="close" />
</div>
</div> -->
<body>
<div id="app"></div>
<script type="module">
import { createApp } from "vue";
import "./src/style.css";
import App from "./src/App.vue";
// import { appWindow } from '@tauri-apps/api/window'
// document
// .getElementById('titlebar-minimize')
// .addEventListener('click', () => appWindow.minimize())
// // document
// // .getElementById('titlebar-maximize')
// // .addEventListener('click', () => appWindow.toggleMaximize())
// document
// .getElementById('titlebar-close')
// .addEventListener('click', () => appWindow.close())
createApp(App).mount("#app");
</script>
</body>
</html>