temperature-alarm/frontend/index.html

36 lines
974 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Temperature Alarm</title>
<link rel="stylesheet" href="/styles/frontpage.css">
<script type="module">
import { isLoggedIn } from "./shared/utils.js";
if (isLoggedIn()) {
location.href = "/home";
}
</script>
</head>
<body>
<main>
<div id="title">
<h1>
<img id="logo" src="/img/logo.webp" alt="Logo">
Temperature Alarm
</h1>
<div id="buttons-wrapper">
<a href="/login">
<button class="secondary">Login</button>
</a>
<a href="/register">
<button class="primary">Sign up</button>
</a>
</div>
</div>
</main>
</body>
</html>