Skip to content

Commit

Permalink
Add html
Browse files Browse the repository at this point in the history
  • Loading branch information
or-yam committed Mar 20, 2023
1 parent 75e2f19 commit dc38f03
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 9 deletions.
43 changes: 43 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
id="favicon"
rel="icon"
href="https://res.cloudinary.com/wilco/image/upload/wilco-assets/logos/favicon_bfmgpi.ico"
/>
<title>Wilco stats</title>
</head>
<style>
body {
height: 100vh;
margin: 0;
padding: 0;
background-color: #303237;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #ffffff;
}
pre {
font-size: larger;
}
p {
font-size: large;
}
</style>
<body>
<h1>Wilco badge generator</h1>
<img src="https://wilcobadge.vercel.app/api/handler?wilconame=aloncarmel" />

<h2>How to use</h2>
<p>Paste this image tag in your HTML / Markdown file</p>
<pre>
<span><</span><span>img src="https://wilcobadge.vercel.app/api/handler?wilconame=[YOUR WILCO NAME]" /<span>></span></span>
</pre>
</body>
</html>
10 changes: 1 addition & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
//! THIS FILE NOT REALLY MEAN SOMETHING THE API IS WHAT DO THE JOB
import fs from 'node:fs';
import express from 'express';

const app = express();
app.use(express.static('.'));

const listener = app.listen(3000, function () {
console.log('Your app is listening on port ' + 3000);
});
console.log({ '🏄‍♂️': '🦦' });

0 comments on commit dc38f03

Please sign in to comment.