-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web): add nice-looking landing page with bot stats
Made with <3 & Bulma for Discord
- Loading branch information
1 parent
7dd535a
commit 8534bab
Showing
3 changed files
with
136 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Yappy, the GitLab Monitor</title> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" /> | ||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.4.0/css/bulma.min.css"> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/dansup/bulma-templates/master/css/landing.css"> | ||
<style> | ||
html { | ||
overflow-y: auto !important; | ||
} | ||
.hero.is-dark { | ||
background: linear-gradient(rgba(25, 181, 254, 0.6),rgba(246, 36, 89, 0.6)),linear-gradient(rgba(0, 0, 0, 0.6),rgba(0, 0, 0, 0.6)); | ||
} | ||
.nav-left.title { | ||
font-size: 30px; | ||
padding-top: 15px; | ||
margin-bottom: 0; | ||
} | ||
.description { | ||
width: 96%; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<section class="hero is-fullheight is-dark"> | ||
<div class="hero-head"> | ||
<div class="container"> | ||
<nav class="nav"> | ||
<div class="container"> | ||
<div class="nav-left title"> | ||
Yappy, the Gitlab Monitor | ||
</div> | ||
<div class="nav-right nav-menu"> | ||
<span class="nav-item"> | ||
{{status}} | ||
</span> | ||
<span class="nav-item"></span> | ||
<span class="nav-item"> | ||
<a class="button is-default" href="https://discordapp.com/oauth2/authorize?permissions=67193856&scope=bot&client_id=303661490114789391"> | ||
Invite | ||
</a> | ||
</span> | ||
</div> | ||
</div> | ||
</nav> | ||
</div> | ||
</div> | ||
|
||
<div class="hero-body"> | ||
<div class="container has-text-centered"> | ||
<div class="columns is-vcentered"> | ||
<div class="column is-5"> | ||
<figure class="image is-4by3"> | ||
<img src="http://placehold.it/375x300" class="promo-img" alt="Yappy Gitlab Screenshot"> | ||
</figure> | ||
</div> | ||
<div class="column is-6 is-offset-1"> | ||
<h1 class="title is-2"> | ||
Introducing Yappy, the GitLab Monitor | ||
</h1> | ||
<br> | ||
<h2 class="subtitle is-4 description"> | ||
It's time to say hello to Gitlab repo events right in your Discord server. <br> | ||
Simply set up webhooks to a server, init repo in channel, and you're good-to-go! | ||
</h2> | ||
<br> | ||
<div class="columns stats"> | ||
<div class="column"> | ||
<p> | ||
<strong>Guilds</strong><br> | ||
{{bot.guilds.size}} | ||
</p> | ||
</div> | ||
<div class="column"> | ||
<p> | ||
<strong>Channels</strong><br> | ||
{{bot.channels.size}} | ||
</p> | ||
</div> | ||
<div class="column"> | ||
<p> | ||
<strong>Users</strong><br> | ||
{{bot.users.size}} | ||
</p> | ||
</div> | ||
<div class="column"> | ||
<p> | ||
<strong>Repos</strong><br> | ||
{{repos.size}} | ||
</p> | ||
</div> | ||
</div> | ||
<br> | ||
<a class="button is-large is-success is-outlined" href="https://discordapp.com/oauth2/authorize?permissions=67193856&scope=bot&client_id=303661490114789391"> | ||
Add Yappy GitLab | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="hero-foot"> | ||
<div class="container"> | ||
<div class="tabs is-centered"> | ||
<ul> | ||
<li><a>Copyright 2017 Yappy</a></li> | ||
<li><a href="http://bulma.io">Made with Bulma</a></li> | ||
<li><a href="http://discordapp.com">Made for Discord</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</body> | ||
</html> |