-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
66 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,41 +6,76 @@ | |
<title>Sveio - Landing</title> | ||
<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=Inter:[email protected]&display=swap" rel="stylesheet" /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<link rel="stylesheet" href="/static/ui.css" /> | ||
<style> | ||
h2 { | ||
margin: 0; | ||
} | ||
|
||
a.button { | ||
margin-top: 1.3vh; | ||
margin-bottom: -1vh; | ||
input { | ||
border-radius: 999rem 0 0 999rem; | ||
} | ||
|
||
button { | ||
border-radius: 0 999rem 999rem 0 !important; | ||
border: 1px solid var(--primary) !important; | ||
} | ||
|
||
form { | ||
gap: 0 !important; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<main class="flex flex-col"> | ||
<h1>Sveio</h1> | ||
<h2> | ||
A geography game by <a href="https://github.com/Erb3">Erb3</a> inspired by | ||
<a href="https://github.com/abrenaut/posio">Posio</a>. | ||
A geography game by <a href="https://github.com/Erb3">Erb3</a> inspired | ||
by <a href="https://github.com/abrenaut/posio">Posio</a>. | ||
</h2> | ||
|
||
<p class="text-center"> | ||
You will be greeted by a map.<br />The name of a location will appear, click where you think it is. | ||
<br />Compete with your opponents to see who gets closest! | ||
You will be greeted by a map.<br />The name of a location will appear, | ||
click where you think it is. <br />Compete with your opponents to see | ||
who gets closest! | ||
</p> | ||
|
||
<div class="flex flex-col"> | ||
<a class="button" href="/game"> | ||
<svg xmlns="http://www.w3.org/2000/svg" height="24px" width="24px" viewBox="0 -960 960 960"> | ||
<path d="M320-200v-560l440 280-440 280Zm80-280Zm0 134 210-134-210-134v268Z" /> | ||
</svg> | ||
Join Game | ||
</a> | ||
<form class="flex"> | ||
<input | ||
type="text" | ||
name="username" | ||
id="username" | ||
placeholder="Username" | ||
autocomplete="username" | ||
/> | ||
<button type="submit" class="button"> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
height="24px" | ||
width="24px" | ||
viewBox="0 -960 960 960" | ||
> | ||
<path | ||
d="M320-200v-560l440 280-440 280Zm80-280Zm0 134 210-134-210-134v268Z" | ||
/> | ||
</svg> | ||
Join | ||
</button> | ||
</form> | ||
<a href="https://github.com/Erb3/Sveio">View Code</a> | ||
</div> | ||
</main> | ||
<script defer> | ||
document.querySelector("form").addEventListener("submit", (e) => { | ||
e.preventDefault(); | ||
location.href = | ||
"/game?username=" + document.querySelector("input").value; | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters