-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.html
102 lines (89 loc) · 3.04 KB
/
settings.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<link rel="manifest" href="manifest.json" />
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Puter AI</title>
<link rel="icon" type="image/vnd.icon" href="favicon.ico">
<script>console.log("Settings ready. Ready to... set things i guess.")</script>
<!-- Material Design Web CDN -->
<script type="importmap">
{
"imports": {
"@material/web/": "https://esm.run/@material/web/"
}
}
</script>
<script type="module">
import '@material/web/all.js';
import { styles as typescaleStyles } from '@material/web/typography/md-typescale-styles.js';
document.adoptedStyleSheets.push(typescaleStyles.styleSheet);
</script>
<!-- Noto Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&family=Noto+Sans&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Noto Sans', sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
flex-direction: column;
}
#container {
text-align: center;
}
#infos {
margin: 0 auto;
}
:root {
--md-sys-color-primary: #007bff;
--md-sys-color-secondary: #007bffdc;
--md-ref-typeface-brand: 'Noto Sans';
--md-ref-typeface-plain: 'Noto Sans';
}
md-button {
--mdc-theme-primary: #007bff;
--mdc-theme-on-primary: white;
font-family: 'Noto Sans', sans-serif;
}
md-filled-button:disabled,
md-outlined-button:disabled {
--mdc-theme-primary: #b8b8b8;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
</style>
<script src="https://js.puter.com/v2/"></script>
<script src="account-settings.js"></script>
</head>
<body>
<md-filled-button id="back-button" onclick="window.location.href = 'index.html';">Exit settings</md-filled-button>
<h1>Puter AI Settings</h1>
<h2>Puter account settings</h2>
<div class="button-container">
<md-filled-button id="login-button" onclick="puter.auth.signIn();">Log in a Puter account</md-filled-button>
<md-filled-button id="logoff-button" onclick="puter.auth.signOut();">Log out of your Puter account</md-filled-button>
</div>
<div id="user-info">
<!-- User information -->
</div>
<div id="container">
<div id="infos">
<h3>Infos</h3>
<p>Puter AI PWA - v2.2.2</p>
<p>Copyright © Zac0511 - 2024</p>
</div>
</div>
</body>
</html>