Skip to content

Commit 089a67c

Browse files
committed
'updates'
1 parent bb1274a commit 089a67c

6 files changed

Lines changed: 48 additions & 6 deletions

File tree

assets/hedvig.woff2

30.6 KB
Binary file not shown.

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
</head>
99
<body>
1010
<div class="top">
11-
<span id="icon">
11+
<span id="icon" onclick="window.location.href='/'">
1212
<img src="assets/icon.png">
1313
</span>
1414
<span id="signoff">
15-
<p><span style="border: 2px solid cornflowerblue; border-radius: 10px; border-width: 5px;" onclick="logout()">Sign off</span></p>
15+
<p><span onclick="logout()">Sign off</span></p>
1616
</span>
1717
</div>
1818

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h2>Register new user:</h2>
1717
<button id="register">Register</button>
1818
</div>
1919
<p><span id="info"></span></p>
20-
<p><a style="text-decoration: none;" href="/login.html">&lt;-- Back</a><p>
20+
<p><a style="text-decoration: none;" href="/login">&lt;-- Back</a><p>
2121
<script src="register.js"></script>
2222
</body>
2323
</html>

script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
if (localStorage.getItem("messago-token") == null && localStorage.getItem("messago-username") == null) {
22
console.log(localStorage.getItem("messago-token"))
33
console.log(localStorage.getItem("messago-username"))
4-
window.location.href = "/login/login.html";
4+
window.location.href = "/login";
55
}
66
fetch("http://127.0.0.1:8081/check", {
77
method: "POST",
@@ -12,7 +12,7 @@ fetch("http://127.0.0.1:8081/check", {
1212
}).then(res => res.json()).then(n => {
1313
console.log("exists? ", n.exists);
1414
if (!n.exists) {
15-
window.location.href = "/login/login.html";
15+
window.location.href = "/login";
1616
}
1717
});
1818

@@ -25,5 +25,5 @@ window.onload = loadFeed;
2525

2626
function logout() {
2727
localStorage.clear();
28-
window.location.href = "/login/login.html";
28+
window.location.href = "/login";
2929
}

styles/style.css

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
@font-face {
2+
font-family: "Hedvig";
3+
src: url("/assets/hedvig.woff2");
4+
}
5+
6+
:root {
7+
--blue: #2776FF;
8+
}
9+
10+
html {
11+
font-family: "Hedvig";
12+
}
13+
14+
.top {
15+
display: flex;
16+
flex-wrap: wrap;
17+
width: 100vw;
18+
position: relative;
19+
}
20+
21+
.top span {
22+
margin-right: 50px;
23+
}
24+
25+
.top span#signoff {
26+
position: relative;
27+
left: 88dvw;
28+
margin-top: 10px;
29+
}
30+
31+
span#icon img {
32+
margin: 15px;
33+
width: 45px;
34+
}
35+
36+
span#signoff p span {
37+
color: white;
38+
background: var(--blue);
39+
border: 2px solid var(--blue);
40+
border-radius: 10px;
41+
border-width: 5px;
42+
}

0 commit comments

Comments
 (0)