Skip to content

Commit

Permalink
feat: added / html page
Browse files Browse the repository at this point in the history
  • Loading branch information
WBRK-dev committed Oct 6, 2024
1 parent 82ca323 commit 428fa06
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const app = express();
app.use(cors);
routes(app);

app.use("/", express.static("public"));

app.listen(PORT, () => console.log(`Server listening on port ${PORT}`));

export default app;
Binary file added public/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions public/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
font-family: "Inter", sans-serif;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;

background: url("./bg.png");
color: #fff;
}

* {
margin: 0;
}

.main {
display: flex;
flex-direction: column;
align-items: center;

padding: 2rem .5rem;
}

.links {
display: flex;
gap: .5rem;

margin-top: 1rem;
}

.links a {
color: #1135ff;
text-decoration: none;
}

.links span {
color: #aaaaaa;
}
19 changes: 19 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vidstream API</title>
<link rel="stylesheet" href="./index.css">
</head>
<body>
<div class="main">
<h1>Vidstream API</h1>
<div class="links">
<a href="https://github.com/WBRK-dev/vidstream-api" target="_blank">Github</a>
<span></span>
<a href="https://github.com/WBRK-dev/vidstream-api?tab=readme-ov-file#api-documentation" target="_blank">Documentation</a>
</div>
</div>
</body>
</html>

0 comments on commit 428fa06

Please sign in to comment.