make main page look better
This commit is contained in:
parent
437d7bd4d8
commit
b92f2df4b2
@ -68,7 +68,48 @@ func main() {
|
||||
fmt.Printf("Error counting events: %v\n", err)
|
||||
}
|
||||
|
||||
fmt.Fprintf(w, `<b>Welcome</b> to scrapestr!<br>Number of events stored: %d`, count)
|
||||
// Improved HTML content
|
||||
fmt.Fprintf(w, `
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Scrapestr Relay</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f4f4f4;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
}
|
||||
.container {
|
||||
background-color: #fff;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
text-align: center;
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
}
|
||||
p {
|
||||
color: #666;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Welcome to Scrapestr!</h1>
|
||||
<p>Number of events stored: %d</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
`, count)
|
||||
})
|
||||
|
||||
fmt.Println("running on :3334")
|
||||
|
Loading…
x
Reference in New Issue
Block a user