mirror of
https://github.com/rjNemo/deno_hello
synced 2026-06-06 01:56:40 +00:00
remove html file
This commit is contained in:
parent
8998c65967
commit
1acc1232ba
2 changed files with 1 additions and 60 deletions
|
|
@ -9,6 +9,7 @@ Web app which returns the iconic Hello, World in various locales
|
||||||
- [x] Use with CLI
|
- [x] Use with CLI
|
||||||
- [x] Basic HTTP server
|
- [x] Basic HTTP server
|
||||||
- [ ] HTML frontend
|
- [ ] HTML frontend
|
||||||
|
- [ ] Deployment
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|
|
||||||
60
index.html
60
index.html
|
|
@ -1,60 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
max-width: 650px;
|
|
||||||
margin: 40px auto;
|
|
||||||
padding: 0 10px;
|
|
||||||
font: 18px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
||||||
color: #444
|
|
||||||
}
|
|
||||||
|
|
||||||
h1, h2, h3 {
|
|
||||||
line-height: 1.2
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
body {
|
|
||||||
color: white;
|
|
||||||
background: #444
|
|
||||||
}
|
|
||||||
|
|
||||||
a:link {
|
|
||||||
color: #5bf
|
|
||||||
}
|
|
||||||
|
|
||||||
a:visited {
|
|
||||||
color: #ccf
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport"
|
|
||||||
content="width=device-width, initial-scale=1.0, maximum-scale=5.0, minimum-scale=1.0">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
||||||
<meta name="description" content="Simple client for Hello deno back end">
|
|
||||||
<title>Hello client</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Hello client</h1>
|
|
||||||
<pre id="result"></pre>
|
|
||||||
</body>
|
|
||||||
<script>
|
|
||||||
const consoleSignatureStyle = "font-size: 16px;" +
|
|
||||||
"background: linear-gradient(to right, #e66465, #9198e5);" +
|
|
||||||
"color: white;" +
|
|
||||||
"text-align: center;" +
|
|
||||||
"padding: 10px 15px;" +
|
|
||||||
"width: 100%;" +
|
|
||||||
"border-radius: 20px;";
|
|
||||||
|
|
||||||
const welcomeMessage = "Welcome to Hello client ⚙️"
|
|
||||||
console.log(`%c ${welcomeMessage}`, consoleSignatureStyle)
|
|
||||||
|
|
||||||
let data = document.querySelector("#result")
|
|
||||||
fetch("http://localhost:8000/")
|
|
||||||
.then(res => res.json())
|
|
||||||
.then(json => data.innerHTML = JSON.stringify(json, null, 2))
|
|
||||||
</script>
|
|
||||||
</html>
|
|
||||||
Loading…
Reference in a new issue